I have download "Twilio Voice Quickstart for Android" Pre-Built App from github .
In this apps set to number dynamicly
twiMLParams.put("to", contact.getText().toString());
And on server php code get to number
$to = isset($_POST["to"]) ? $_POST["to"] : "";
if (!isset($to) || empty($to)) {
$to = isset($_GET["to"]) ? $_GET["to"] : "";
}
And callerNumber is static
$callerNumber = '1234567890';
I want to set callerNumber (callerId) dynamicly from my apps . Is it possible ?
Thank's
Well not sure. But you can try this.
Try sending your callerID with the receiverID like this
twiMLParams.put("to", contact.getText().toString()+","+callerId);
In the server side just explode the $to
veriable.
$to = isset($_GET["to"]) ? $_GET["to"] : "";
$toFrom = explode(",", $to);
$to = $toFrom[0];
$from = $toFrom[1];
Hope that will solve your problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.