Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
13366 Zobrazení

I had installed the Asterisk server in my local and installed all asterisk modules. When I press the 'Test connection to Asterisk' button in asterisk server record under Telephony menu under settings shows '

Connection Test Successfull!

Odoo can successfully login to the Asterisk Manager Interface.

Then I move to customer record and Dial a phone, It shows the warning

Error:
Click to dial with Asterisk failed.
Here is the error: 'py-Asterisk action failed: Extension does not exist.'             


Is anybody know the exact configuration of asterisk odoo connector

Avatar
Zrušit
Nejlepší odpověď

Hi, 

I had the same problem using our provider - the configuration that worked for me in extension is as follows: 

[provider-in]
exten => account_nb,1, Dial(SIP/101)                       ;

[provider-out]
exten => _XXX,1,Dial(SIP/${EXTEN}) ;
exten => _XXX.,1,Dial(SIP/${EXTEN}@account_nb)             ; 
exten => _+XX.,1,Dial(SIP/${EXTEN}@account_nb)             ; 

so this last extension _+XX. actually worked for us,

Best Regards

Avatar
Zrušit
Nejlepší odpověď

I don't agree on this. "From-internal"  is very likely the right context for originating calls .

If you compare with /etc/asterisk/extensions.conf it is clearly stated, that "from trunk" is for calls entering the dialplan from the outside world .

; from-trunk:
;
; Context is really just an aliax of from-pstn
;
[from-trunk]
include => from-pstn
;-------------------------------------------------------------------------------

;-------------------------------------------------------------------------------
; from-pstn:
;
; Entry context for calls from the outside world to hit FreePBX


Of course you need to make sure that the extension in the odoo users setting is the same internal extention number as the phone  to send the call to e.g. if the  odoo users Internal Number   is 160 , the extension 160 has to be the users internal desk phone number  (The phone which is supposed to ring after you click dial in Odoo)


The problem in newer versions of Asterisk ( from v12 on I guess) is that the AMI interface had been restricted and there a new security things in place which stop the CTD funtionality in Odoo from working like before.

For me the solution is to change the Asterisk Channel Type from SIP to LOCAL

 At least in freepbx thing started to work again without problems .

https://issues.asterisk.org/jira/browse/ASTERISK-22905

Avatar
Zrušit
Nejlepší odpověď

Hello Milan Thakkar,


Error:
Click to dial with Asterisk failed.
Here is the error: 'py-Asterisk action failed: Extension does not exist.'   

From the above error I think the problem is with the Dialplan Parameters  under settings-->Telephony--> Asterisk servers -->create a server --> Dialplan Parameters.

Under Dialplan parameters you can see Dialplan Context . You can enter 3 types of dialplan contexts.

1. from-internal : Originate an internal call

2. from-trunk  : Originate an external call via trunk

3. ext-local

From the above three I prefer you to try the "from-trunk" option in the dialplan context  and give Extension Priority =1 and then test it.



Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
kvě 17
7395
0
srp 16
3887
1
lis 15
5280
0
srp 24
4005
0
bře 15
3875