Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ''''''''ORIGINATE URL'''''''''''''
- http://192.168.3.103:8088/asterisk/rawman?action=originate&channel=sip/10.3.1.1/918059941511&extension=500&context=default&priority=1
- ''''php code to send originate command'''''
- '''supposed to call extension 500 in the 'incoming' context'''
- $call_url = $this->server . "/rawman" .
- "?action=originate&channel=sip/10.3.1.1/" /*. "282".*/. "91" . $next_call['phone_number'] . /**/
- "&extension=".$exten."&context=".$this->context."&priority=1";
- echo "<h1>".$call_url."</h1>";
- curl_setopt($ch, CURLOPT_URL, $call_url);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_FAILONERROR, 1);
- curl_setopt($ch, CURLOPT_COOKIEFILE, $this->auth_cookie);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $urlresult = curl_exec($ch);
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement