andygee1
asked on
IAX2 connection between sites gives no such context/extension with cause code 3
When we call from site a to site b with the 4-digit extension then the call will go through just fine. If we call from site b to site a then I get an error as follows:
VERSION : 2
CALLED NUMBER : 6110
CODEC_PREFS : (ulaw|alaw|gsm)
CALLING NUMBER : 2110
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Test
LANGUAGE : en
USERNAME : priv
FORMAT : 4
CAPABILITY : 57358
ADSICPE : 0
DATE TIME : 2008-05-16 14:55:44
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
Timestamp: 00055ms SCall: 00004 DCall: 13716 [192.168.50.40:4569]
CAUSE : No such context/extension
CAUSE CODE : 3
Based off of what I see the context is priv. Can you give me any ideas where to look for this problem?
VERSION : 2
CALLED NUMBER : 6110
CODEC_PREFS : (ulaw|alaw|gsm)
CALLING NUMBER : 2110
CALLING PRESNTN : 67
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : Test
LANGUAGE : en
USERNAME : priv
FORMAT : 4
CAPABILITY : 57358
ADSICPE : 0
DATE TIME : 2008-05-16 14:55:44
Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass: REJECT
Timestamp: 00055ms SCall: 00004 DCall: 13716 [192.168.50.40:4569]
CAUSE : No such context/extension
CAUSE CODE : 3
Based off of what I see the context is priv. Can you give me any ideas where to look for this problem?
ASKER
Based on your comment then the context in the iax_custom.conf file should be priv correct?
Here is what my iax config looks like on both machines, they are the exact same on both. Any ideas why it's not using this priv?
[priv]
type=friend
dbsecret=dundi/secret
context=dundi-priv-local
trunk=yes
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-e164-local
trunk=yes
Thanks!!!
Here is what my iax config looks like on both machines, they are the exact same on both. Any ideas why it's not using this priv?
[priv]
type=friend
dbsecret=dundi/secret
context=dundi-priv-local
trunk=yes
[dundi]
type=user
dbsecret=dundi/secret
context=dundi-e164-local
trunk=yes
Thanks!!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
[siteb_username]
type=user
context=mycontext
auth=md5
secret=user_pass
permit=<site_b_IP_address>
At site b, to make the call, there will be a peer definition in the iax.conf file somewhat like this:
[sitea_iax]
type=peer
username=siteb_username
auth=md5
secret=user_pass
host=<site_a_IP_address>
qualify=yes
These are one-way connections. I've shown what is needed for site b to call site a. These are required in addition to any existing entries that define the site b peer in site a and the site a user in site b.