dsfovbm931034814 2018-03-06 05:07
浏览 82

Twilio“Twilio Voice Quickstart for Android”如何动态设置'来电显示'?

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

  • 写回答

1条回答 默认 最新

  • doujiyuan0211 2018-03-06 05:30
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料