IAX2 trunk callerid display problem and one-way

Discussion in 'General' started by haywoodcox, May 26, 2010.

  1. haywoodcox

    Joined:
    Jun 11, 2009
    Messages:
    79
    Likes Received:
    0
    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
     
  2. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0
    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
     
  3. haywoodcox

    Joined:
    Jun 11, 2009
    Messages:
    79
    Likes Received:
    0
    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.
     
  4. Patrick_elx

    Joined:
    Dec 14, 2008
    Messages:
    1,120
    Likes Received:
    0

Share This Page