IAX2 trunk callerid display problem and one-way

haywoodcox

Joined
Jun 11, 2009
Messages
79
Likes
0
Points
0
#1
Hi all,

I recently deploy a Elastix 1.6 in one site, the other two sites were still using Asterisk 1.2
I have setup IAX2 trunk between each site, in Elastix PBX, i set it up using iax_custom.conf because I need to use RSA and keys for password.

Now I ran into two issues:

1) Only the new site could call to both Asterisk 1.2, but when make calls from other two sites would get busy tone.
2) Though could make call from the Elastix PBX, but the callerid display in the Asterisk 1.2 is "device <1725>", instead of the caller name I set in Elastix GUI, I tried change the setting in SIP Alias and Outbound CID but still make no difference.

Codes copy per below:

Asterisk 1.2 PBX

extensions.conf
exten => 1725,1,Dial(IAX2/elaxtix/1725,20)
exten => 1725,2,HangUp()

iax.conf
[elastix] ; IAX user name
disallow=all
allow=alaw
allow=ilbc
type=friend
inkeys=elastix ; peer public key
outkey=asterisk1 ; its private key
auth=rsa
host=xx.xx.xx.xx ;remote IP address
accountcode=new
context=default
qualify=yes
sendani=yes
trunk=yes
qualifyfreqok = 60000

Elastix PBX
iax_custom.conf
[asterisk1] ; IAX user name
disallow=all
allow=alaw
allow=ilbc
type=friend
username=elastix
inkeys=asterisk1 ; peer public key
outkey=elastix ; its private key
auth=rsa
host=xx.xx.xx.xx ;remote IP address
accountcode=old
context=from-internal
qualify=yes
sendani=yes
trunk=yes
qualifyfreqok = 60000
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#2
try to add the following in both config:

requirecalltoken=auto


also log in your server, and do an iax2 set debug to look at the iax frame error to see what's happening.

I had an issue with a iax2 login that was not properly presented. I had to manually add the proper user to iax_custom_post.conf
 

haywoodcox

Joined
Jun 11, 2009
Messages
79
Likes
0
Points
0
#3
Thanks Patrick,

Its work fine nwo after add requirecalltoken=auto
What is that meaning?

However, the callerid from Elastix to Asterisk 1.2 is still show the device 1725 instead of the username in Elastix. The callerid from call make from Asterisk 1.2 to Elastix is working fine.
 

Patrick_elx

Joined
Dec 14, 2008
Messages
1,120
Likes
0
Points
0
#4

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top