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 theconf_handler.phpin thecallbackurl`, 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.


Comments

  1. 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

Post a Comment

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -