简体   繁体   English

星号起源不起作用

[英]Asterisk originate not working

I am trying to make vtiger work with asterisk 1.6 (freepbx server). 我正在尝试使vtiger与星号1.6(freepbx服务器)一起使用。 I have managed to get to the point where I can connect to the asterisk manager interface (AMI) and write to it. 我设法到达可以连接到星号管理器界面(AMI)并写入的位置。 But for some weird reason, the originate would not work. 但是出于某些奇怪的原因,原点无法工作。 I am using - 我在用 -

Action: Originate
Channel: SIP/2000
Exten: 1000
Context: from-internal
Priority: 1
Callerid: 2000
Async: yes 

I tried reading the responses from AMI after making a direct call and it always had a random number after the channel. 我试过在直接拨打电话后从AMI读取响应,并且在频道后始终有一个随机数。 For example - 例如 -

Event: Dial
Privilege: call,all
SubEvent: Begin
Channel: SIP/1000-0000000c
Destination: SIP/2000-0000000d
CallerIDNum: 1000
CallerIDName: 1000
UniqueID: 1359790601.12
DestUniqueID: 1359790601.13
Dialstring: 2000

Can this be an issue or am I missing anything here? 这可能是一个问题,还是我在这里错过了任何东西? Any pointers would be most helpful. 任何指针将是最有帮助的。 Would be happy to provide any details. 很乐意提供任何详细信息。

Random number added,becuase can be more then one channel to same extension. 添加了随机数,因为同一扩展名可能超过一个频道。

Cordinly to info you provided it do call. 严格按照您提供的信息进行呼叫。 No way determine using this info why it "not working" for you, sorry. 抱歉,无法确定使用此信息为什么对您“无效”。

Use asterisk -rvvv 使用asterisk -rvvv

to check what happens on asterisk. 检查星号上发生了什么。 Also will be nice read some book like "Aterisk the future of telephony"(or hire consultant able determine what you dooing wrong). 读一些类似《电话的未来》(或聘请顾问可以确定您做错的事情)的书也将很不错。

I managed to fix the issue, so here is how the debugging went - 我设法解决了这个问题,因此调试如下-

  1. started asterisk CLI using asterisk -rvvv 使用asterisk -rvvv启动星号CLI
  2. used a CLI originate command 使用CLI原始命令

    channel originate SIP/1000 extension 2000@from-internal 通道发起SIP / 1000扩展2000 @ from-internal

  3. step 2 showed an error on the extension being busy (error 486 to be specific). 步骤2在分机正忙时显示错误(具体为错误486)。
  4. googled error to find out that the extension 1000 is being used by a hard phone and that can cause issues 搜寻错误,以找出扩充功能1000正在被硬电话使用,并且可能导致问题
  5. changed the manager extension to 2000 in manager.conf and tried making the call using 在manager.conf中将经理扩展名更改为2000,并尝试使用

    channel originate SIP/2000 extension 1000@from-internal 通道发起SIP / 2000扩展1000 @ from-internal

  6. step 5 worked, but calls from PHP still failed. 第5步有效,但是来自PHP的调用仍然失败。 added debugging to find that the AMI was returning a permission denied 添加调试以发现AMI返回拒绝的权限

  7. found out that from 1.6 onwards you need to have originate in the manager.conf read/write options 发现从1.6开始,您需要起源于manager.conf读/写选项

Now it works perfectly fine. 现在,它可以正常工作。 Hope this helps someone, though I think this case might be a very personalized issue. 希望这对某人有帮助,尽管我认为此案可能是一个非常个性化的问题。

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

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