php - How to use Plivo call API -
i using plivo , have calls answered welcome.php
welcome url
.
when call answered, pass conf_handler.php
, enter conference:
$conf_attr = array( 'callbackurl' => $host.'conf_handler.php', 'callbackmethod' => "post", ); $r->addconference($conf_name,$conf_attr); echo($r->toxml());
how can store both calluuid
, call_duration
(once hang up) variables within conf_handler.php
? posted page callbackmethod? or need somehow use them (how this?) http://plivo.com/docs/api/call/#call_detail
you can both ways.
1) from hangup_url
(within welcome.php
). when call answered, plivo sends post request set of parameters including two. can parse request there. (check out "request parameters" section @ http://plivo.com/docs/xml/request/)
2) from callbackurl
(within conf_handler.php'). once set the
conf_handler.phpin the
callbackurl`, plivo send set of parameters described @ http://plivo.com/docs/xml/dial/#dialcallbackurl
after that, need parse post request , store variables. (perhaps refer http://www.tutorialspoint.com/php/php_get_post.htm)
let me know if isn't clear. , work @ plivo.
Millennials are accustomed to swift communication and with technology on the rise, no business will last long if it falls behind the shift in consumer trends. When it comes to real-time communication, nothing beats SMS API which developers can use to connect their software or website with a texting platform to engage a global audience.
ReplyDelete