如何获取星号中的电话号码(来电显示) [英] How to get the phone number(callerID) in asterisk

查看:1247
本文介绍了如何获取星号中的电话号码(来电显示)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去四年来我们一直在使用VICIDIAL,现在我们正在更新星号.您能在以下查询中为我提供帮助吗?

We've been using VICIDIAL for the past 4 years and we're updating our asterisk now. Can you please assist me on the below query?

一旦呼叫已到达我们的IVR,我们需要将移动电话号码传递给脚本,无论该号码是否存在于我们的数据库中.如果存在,它将进行一个活动,否则将进行另一个活动.我们已经创建了php脚本,并且可以正常工作,但是我不确定如何将我的电话号码从星号转移到php脚本?

Once the call has been reached to our IVR, we need to pass the Mobile number to our script whether it exists in our database or not. If it exists it will go one campaign, else it will go to another campaign. We've created the php script and it's working fine but I'm not sure how to transfer my phone number from asterisk to the php script?

我粘贴了计划使用的示例脚本.你能看看这个吗?

I've pasted the sample script which I'm planning to use. Can you please have a look on this?

exten => s,n,NoOp("Caller ID IS: ${CALLERID(number)}")
exten => s,n,Set(foo=${CURL(http://server.test.com/appln/test.php?data='${CALLERID(number)}')})

推荐答案

请检查此链接:

http://www.asteriskdocs.org/zh/3rd_Edition/asterisk-book-html-chunk/IVR_id246940.html

以下代码对我有用:

exten => s,n,NoOp(Caller ID IS: ${CALLERID(num)})
exten => s,n,Set(foo=${CURL(http://server.test.com/appln/test.php?data=${CALLERID(num)})})
exten => s,n,NoOp(${foo})

这篇关于如何获取星号中的电话号码(来电显示)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆