dongshiqin1352 2013-09-16 18:27
浏览 102
已采纳

Asterisk:外部Web应用程序(php)需要获取来电号码的信息

We are running small service business and for customers we set up small call center ( to attend customers calls ) using Asterisk server & ( x-lite app) and that is working very well.

And Now we want ot offer our our customer managers ( who receive calls) option of extracting our product information from our backend PHP Web application ( local server in different machine where asterisk server is running . We developed one web app and from there they get all the information of our products .

according to our policy we send that information to the called customer through SMS , now we are using our local wep php app to send information as SMS by CoPyING / TYPING the Mobile no of the incoming calls from x-lite (dialer) number display to my web application input form.

Now , I want to know is there any asterisk-api available to use in php web application to get the information of calling number ( while , call is still alive ) and then we can use that phone number to get more information about that caller which are stored in our separte database ??? I header about AGI and AMI but i am not sure what exactly i need in this case

  • 写回答

1条回答 默认 最新

  • duanbi2760 2013-09-16 23:03
    关注

    There's a number of ways you could approach this.

    If you're looking for rich interaction of the call as it's routed, and as the call interacts with the dialplan -- you'll want AGI to alter it's routing and make intelligent decisions about where the call goes, and to store and retrieve more granular and customized information about the call.

    But, if you're just looking for information on a call that's in progress, without changing the dialplan -- you might want to approach it from AMI, just to get a list of calls in progress. This is what I would recommend for this task from how you described it.

    AMI is something you use over a TCP socket, and is rather straight forward. You can always find an example API, however, for what you need -- directly accessing AMI might be the best choice. It's a simple protocol and the official documentation is from the canonical source @ The Asterisk Wiki

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?