OCA / connector-telephony

Odoo modules for telephony integration
GNU Affero General Public License v3.0
152 stars 293 forks source link

Problem in the connection to Asterisk #131

Closed AdrianJoel closed 2 years ago

AdrianJoel commented 7 years ago

Hi.

I want to integrate Asterisk with Odoo 10. When I defined the Asterisk Server and clicked on "Test Connection to Asterisk" the following message appears:

Connection Test Sucessfull! Odoo can sucessfully login to the Asterisk Manager Interface.

But, when I clicked on Open Caller icon in the top right corner, the message is:

FAILURE! Problem in the connection to Asterisk

I am new in this topic. Please help :(

The manager.conf of my Asterisk Server:

; ; AMI - Asterisk Manager interface ; ; FreePBX needs this to be enabled. Note that if you enable it on a different IP, you need ; to assure that this can't be reached from un-authorized hosts with the ACL settings (permit/deny). ; Also, remember to configure non-default port or IP-addresses in amportal.conf. ; ; The AMI connection is used both by the portal and the operator's panel in FreePBX. ; ; FreePBX assumes an AMI connection to localhost:5038 by default. ; [general] enabled = yes port = 5038 bindaddr = 0.0.0.0 displayconnects=yes ;only effects 1.6+

[admin] secret = freePBX deny = 0.0.0.0/0.0.0.0 permit = 127.0.0.1/255.255.255.0 permit = 10.35.2.228/255.255.255.0 read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate writetimeout = 5000

include manager_additional.conf

include manager_custom.conf

Asterisk Server IP is: 10.35.2.216 Odoo Server: 10.35.2.228

alexis-via commented 7 years ago

Please start odoo with --log-level=debug and copy-paste the logs when you click on open caller icon.

AdrianJoel commented 7 years ago

@alexis-via I don't know how to do it. Can you tell me what do I have to do?

WSMDpro commented 7 years ago

<Asterisk.Manager.Manager connected as ##### to ###########> {} odoo.addons.asterisk_click2dial.models.asterisk_server: Result of Status AMI request: odoo.addons.asterisk_click2dial.models.asterisk_server: {} {} odoo.addons.asterisk_click2dial.models.asterisk_server: Calling party number: 'False'

I am working on it and got the same error. Moreover, Dial button is also not visible in v10

efernan commented 7 years ago

Hi.

The same problem, Odoo v10:

DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: User's phone: SIP/201 DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Asterisk server: X.X.X.X:5038 DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Result of Status AMI request: DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: {} DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Calling party number: 'False'

and when I clicked on Open Caller icon:

FAILURE! Problem in the connection to Asterisk

Thanks.

WSMDpro commented 7 years ago

We built a PBX connector for Asterisk, just launched this week. Would you like me to get you in touch with the team?

Jamie Funk

On Aug 24, 2017 6:15 AM, efernan notifications@github.com wrote:

Hi.

The same problem, Odoo v10:

DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: User's phone: SIP/201 DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Asterisk server: X.X.X.X:5038 DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Result of Status AMI request: DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: {} DEBUG odoodb odoo.addons.asterisk_click2dial.models.asterisk_server: Calling party number: 'False'

and when I clicked on Open Caller icon:

FAILURE! Problem in the connection to Asterisk

Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/OCA/connector-telephony/issues/131#issuecomment-324594723, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aa2W7Rssq_Wvgq96zqp0OpqTyCJ6igHHks5sbU1XgaJpZM4NYeFo.

efernan commented 7 years ago

Hi.

Yes, how do I it? Try the new version?

Thanks.

WSMDpro commented 7 years ago

What version of Odoo?

Thank you,

Jamie Funk | jfunk@b2bsoft.commailto:jfunk@b2bsoft.com | Office (212) 742-2301 x732 [cid:image001.jpg@01D2D486.62931C00]

From: efernan [mailto:notifications@github.com] Sent: Thursday, August 24, 2017 7:47 AM To: OCA/connector-telephony connector-telephony@noreply.github.com Cc: WSMDPro WSMDPro@b2bsoft.com; Comment comment@noreply.github.com Subject: Re: [OCA/connector-telephony] Problem in the connection to Asterisk (#131)

Hi.

Yes, how do I it? Try the new version?

Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/OCA/connector-telephony/issues/131#issuecomment-324612511, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aa2W7SQqUVFjosQvBFdMvo-C2QQXKdpmks5sbWKhgaJpZM4NYeFo.

efernan commented 7 years ago

Odoo 10.0-20170822 (Versión Community)

Thanks.

alexis-via commented 7 years ago

As you can see in the logs, the AMI Status request returns an empty answer. So the problem is on Asterisk's side. I advise you to use network capture tool (tcpdump, wireshark) on port TCP 5038 to get a better understanding of the AMI dialog between Odoo and Asterisk.

github-actions[bot] commented 2 years ago

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.