简体   繁体   English

星号:检测来电

[英]Asterisk: detect incoming call

In asterisk/elastix/freepbx, how do you.... 在星号/ elastix / freepbx中,您如何...。

1- detect an incoming call 1-检测来电

2- read the caller id 2-读取来电显示

3- do something...(perform function) 3-做某事...(执行功能)

?

在“传入”上下文中,您可以检查传入呼叫的​​callerId,如果callerId匹配,则可以执行dailplan或使用AGI所需的操作

My general advice: read Asterisk book . 我的一般建议:阅读Asterisk书 It will give you most answers. 它将为您提供大多数答案。

  1. Calls to your asterisk will land in some context, probably incoming , but you can define different contexts for different callers. 拨打星号的电话将进入某些上下文,可能是incoming ,但您可以为不同的呼叫者定义不同的上下文。

  2. There is function callerid , you can use it in your dialplan or AGI scripts 有函数callerid ,您可以在拨号计划或AGI脚本中使用它

  3. I use AGI scripts written in Python (there are libraries for Python, Perl and other popular languages), which connect to CRM WebService, check caller group by callerid and can prompt differently if call is from me or other employee and differently if one our customers is calling. 我使用用Python编写的AGI脚本(存在用于Python,Perl和其他流行语言的库),这些脚本可连接到CRM WebService,通过callerid检查呼叫者组,并且可以不同地提示呼叫是来自我还是其他员工,以及是否有不同的提示(如果我们是客户)正在打电话。 Different prompts are in different contexts and AGI only set some variables. 不同的提示在不同的上下文中,并且AGI仅设置一些变量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM