简体   繁体   English

将OpenERP与Asterisk集成

[英]Integration OpenERP with Asterisk

I'm trying to integrate OpenERP and Asterisk with asterisk_click2dial module. 我正在尝试将OpenERP和Asterisk与asterisk_click2dial模块集成在一起。 Calling from softphone to softphone works, but i cant call from OpenERP to softphone. 从软件电话到软件电话的呼叫有效,但是我无法从OpenERP到软件电话呼叫。

manager.conf: manager.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

asterisk server config (img) 星号服务器配置(img)

I'm sure, user settings are ok. 我敢肯定,用户设置还可以。

It doesn't works when AMI login is phone number, like in softphone config. AMI登录名是电话号码时(如软件电话配置中),此功能不起作用。

python debugg: python调试:

[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` !

asterisk server debugg: 星号服务器调试:

== connect attempt from '192.168.1.106' unable to authenticate

While catching SIP packages by Wireshark i saw only reciver number (101@192.168.1.100). 在通过Wireshark捕获SIP程序包时,我只看到接收方号码(101@192.168.1.100)。 I didn't see openerp user number (103), but only Unknown@192.168.1.106. 我没有看到openerp用户号码(103),但只有Unknown@192.168.1.106。 But i first time used Wireshark, so maybe it doesn't matter. 但是我第一次使用Wireshark,所以也许没关系。

Question is: why OpenERP can't call to softphone, but softphone to softphone can? 问题是:为什么OpenERP不能呼叫软件电话,但是软件电话可以软件电话?

Sorry for my english :) 对不起我的英语不好 :)

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. 如果OpenERP(我不熟悉)只能发送电话号码(或分机号)作为用户名,那么您需要在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]. 用户名部分位于上述[和]之间(本例中为[openerp]。如果您不能灵活地在OpenERP客户端上设置实际的用户名,则只需替换[openerp ]与[phone_no或ext_no]。

Then it should authenticate fine. 然后,它应该进行身份验证。 Wireshark isn't likely to be terribly helpful in this instance. 在这种情况下,Wireshark可能不会有很大的帮助。

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

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