Skip to content

Instantly share code, notes, and snippets.

@wwalker
Created June 8, 2009 17:03
Show Gist options
  • Save wwalker/125941 to your computer and use it in GitHub Desktop.
Save wwalker/125941 to your computer and use it in GitHub Desktop.
//Build an array of the options for calling
$call_options = array(array (
'exten' => '1000',
'priority' => '1',
'async' => 'true',
'variable' => 'destination=304'));
// Invoke the Adhearsion originate method via an HTTP POST of a JSON object
$ahn->invoke("call_into_context", 'SIP/303', 'inbound', $call_options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment