Skip to content

Instantly share code, notes, and snippets.

@ambiorixg12
Created December 26, 2020 22:13
Show Gist options
  • Select an option

  • Save ambiorixg12/314dfc5f896cdb6623ccc6f524158fee to your computer and use it in GitHub Desktop.

Select an option

Save ambiorixg12/314dfc5f896cdb6623ccc6f524158fee to your computer and use it in GitHub Desktop.
FreePBX Call foward API
<?php
// show the fowarding value
//echo shell_exec("asterisk -x \" database show CF/$_GET[exten] \" ");
//update the fowarding value
//echo shell_exec("asterisk -x \" database put CF $_GET[exten] 13052311212 \" ");
//command for deleting
echo shell_exec("asterisk -x \" database del CF $_GET[exten] \" ");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment