Last active
January 28, 2021 13:29
-
-
Save ambiorixg12/0ec9b84ded73a7a3f419f185398d7c52 to your computer and use it in GitHub Desktop.
FreePBX updating recording and extension secret
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| show all recording methods asterisk -x "database show AMPUSER/100/recording" | |
| show inbound external call asterisk -x "database show AMPUSER/100/recording/in/external" | |
| show recording for extenral call asterisk -x "database show AMPUSER/100/recording/out/external" | |
| enable force asterisk -x "database put AMPUSER/100/recording/out external force" | |
| disable rec asterisk -x "database put AMPUSER/100/recording/out external no" | |
| mysql -e "select id,data from sip where keyword='secret' or keyword='callerid' group by data order by id;" asterisk | |
| mysql -e "select id,data from sip where keyword='secret' and id=100 group by data order by id;" asterisk | |
| mysql -e "update sip set data='Ambiorix13' where id=100 and keyword='secret';" asterisk | |
| fwconsole reload | |
| ***Note A RELOAD IS NEEDED AFTER UPDATE SECRET**** | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment