Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
13363 Vizualizări

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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.



Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
4
mai 17
7395
0
aug. 16
3886
1
nov. 15
5278
0
aug. 24
4002
0
mar. 15
3875