简体   繁体   English

操作员接听电话时播放记录

[英]Play record when operator pickup call

My description could be a little vague because I have not big experience in this field. 我的描述可能有点模糊,因为我在该领域没有丰富的经验。

The problem is that my web service should do the following steps. 问题是我的Web服务应执行以下步骤。

  1. Another service send phone number in my web service 另一个服务在我的Web服务中发送电话号码
  2. My web service takes that number and start calling into a particular queue in asterisk 我的Web服务使用该号码并开始调用星号中的特定队列
  3. After someone in this queue pickup call he\\she should hear a recorded audio message 在此队列中的某人接听电话后,他\\她应该听到录制的音频消息
  4. After that astersik should dial to the phone number from first step 之后,astersik应该从第一步开始拨打电话号码

Right now I can call to a local extension and then asterisk do the rest by calling to a client and connecting him with manager. 现在,我可以呼叫本地分机,然后星号通过呼叫客户端并将其与经理连接来完成其余的工作。

The first problem is that I don't know how to dial not to a local extension but to a queue in asterisk. 第一个问题是我不知道如何拨号而不是拨打本地分机,而是拨打星号中的队列。

The second issue is how to play audio only when manager pick up call made from my web service. 第二个问题是如何仅在经理接听我的Web服务发出的电话时播放音频。

Would be appreciate any help. 将不胜感激。

IF you use freepbx, you should put message in Call Confirm Announce 如果使用freepbx,则应在“呼叫确认通知”中放入消息

If you use custom dialplan, you should use M option for dial command and create macro which will play needed file. 如果使用自定义拨号计划,则应对拨号命令使用M选项,并创建将播放所需文件的宏。

For dial queue in freepbx you have use queue_num@from-internal. 对于freepbx中的拨号队列,您可以使用queue_num @ from-internal。 No way give any suggestion for custom dialplan 无法为自定义拨号计划提供任何建议

Note: doing system like that without understanding asterisk internal can result hi bills for international calls becuase of hackers. 注意:在不了解星号内部的情况下执行此类系统可能会由于黑客而导致国际通话费用较高。

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

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