Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ambiorixg12/0ec9b84ded73a7a3f419f185398d7c52 to your computer and use it in GitHub Desktop.

Select an option

Save ambiorixg12/0ec9b84ded73a7a3f419f185398d7c52 to your computer and use it in GitHub Desktop.
FreePBX updating recording and extension secret
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