Scripting API - DOCS
Script/code should be rendered as a txt file. You can use https://gist.github.com or your own server.
======
https://54.251.177.176/sessions?action=create&token=VOICE_TOKEN_HERE
sample.php<?php
call(array("91712345678"), array(
"timeout" => 120,
"callerID" => 'sip:91712345678@sip.tropo.net',
)
);
say("Hello! this a sample call from globe labs. Welcome to Tropo!");
hangup();
?> Note that the $subscriber variable is a parameter being passed in the trigger endpoint.
You can add more parameters as needed.
To trigger it, you must call this url below:
GET
https://54.251.177.176/sessions?action=create&token=<VOICE_TOKEN_HERE>&subscriber=<subscriber_number>
<?php
say("Hello! this a sample call from globe labs. Welcome to Tropo!");
hangup();
?> For subscribers to trigger the call. They would have to dial in the application's shortcode.
eg.
_Dial in_ ***2158-1234***