0

我正在尝试将 OpenERP 和 Asterisk 与 asterisk_click2dial 模块集成。从软件电话到软件电话的呼叫工作正常,但我不能从 OpenERP 呼叫到软件电话。

经理.conf:

[general]
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0

[openerp]
secret = openerp
deny=0.0.0.0/0.0.0.0
permit=0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

星号服务器配置(img)

我确定,用户设置没问题。

当AMI 登录是电话号码时,它不起作用,例如在软电话配置中。

蟒蛇调试:

[2012-04-17 14:17:44,072][asterisk] INFO:asterisk_click2dial:Asterisk Click2Dial from 103 to 101
[2012-04-17 14:17:44,078][asterisk] WARNING:web-services:The method action_dial_phone of the object crm.lead can not return `None` !

星号服务器调试:

== connect attempt from '192.168.1.106' unable to authenticate

在通过 Wireshark 捕获 SIP 包时,我只看到了接收方号码 (101@192.168.1.100)。我没有看到 openerp 用户号(103),但只有 Unknown@192.168.1.106。但我第一次使用 Wireshark,所以也许没关系。

问题是:为什么OpenERP不能打电话到软电话,而软电话到软电话可以?

对不起我的英语不好 :)

4

1 回答 1

0

You need to concentrate on the authentication side. If OpenERP (which I am not familiar with) can only send a phone number (or extension number) as a username, then you need to set that as your username in manager.conf. The username portion is what's between the [ and ] above (in this case it's [openerp]. If you do not have the flexibility to set an actual username on the client side of OpenERP, then you'll need to simply replace the [openerp] with [phone_no or ext_no].

Then it should authenticate fine. Wireshark isn't likely to be terribly helpful in this instance.

于 2012-04-18T04:31:25.740 回答