- Joined
- Dec 19, 2007
- Messages
- 145
- Reaction score
- 0
Hi;
I have two elastix servers connected used IAX2 trunk.
The first (A) is elastix 1.5.2-2 (old one but running without any issues) with ext 8xx and the second (B)is elastix 2.x.x. with extensions 10xx
Both servers are behind the NAT. The first (A) is 1:1 nated the second one (B) is located behind cisco router with cisco nat and UDP 4569 nated to the elastix IP address.
Server A is configured as below:
The secon side B:
I have configured outbound routes for both sides
I can call from side B to side A, but in the secon way i have "all circuit bussy" mesage
the log on calling server looks like this:
fixlocalprefix: Dialpattern 100x matched. 1005 -> 1005
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/888-b5705510", "OUTNUM=1005") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/888-b5705510", "custom=IAX2/ccAP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/888-b5705510", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)trwW") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/888-b5705510", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/888-b5705510", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/888-b5705510", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/888-b5705510", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/888-b5705510", "IAX2/ccAP/1005|300|trwW") in new stack
-- Called ccAP/1005
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00004ms SCall: 16384 DCall: 00000 [78.x.x.x:4569]
VERSION : 2
CALLED NUMBER : 1005
CODEC_PREFS : (alaw|ulaw|gsm)
CALLING NUMBER : 888
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : KT
LANGUAGE : en
USERNAME : ccAP
FORMAT : 8
CAPABILITY : 4136959
ADSICPE : 2
DATE TIME : 2011-06-13 12:29:30
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00004ms SCall: 00001 DCall: 16384 [78.x.x.x:4569]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00004ms SCall: 16384 DCall: 00001 [78.x.x.x:4569]
-- Hungup 'IAX2/ccAP-16384'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/888-b5705510", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/888-b5705510", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/888-b5705510", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [1005@from-internal:6] Macro("SIP/888-b5705510", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/888-b5705510", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/888-b5705510> Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/888-b5705510", "pls-try-call-later|noanswer") in new stack
-- <SIP/888-b5705510> Playing 'pls-try-call-later' (language 'en')
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
The second side shows:
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00001ms SCall: 16384 DCall: 00000 [195.x.x.x:4569]
VERSION : 2
CALLED NUMBER : 1005
CODEC_PREFS : (alaw|ulaw|gsm)
CALLING NUMBER : 888
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : KS
LANGUAGE : en
USERNAME : ccAP
FORMAT : 8
CAPABILITY : 4136959
ADSICPE : 2
DATE TIME : 2011-06-13 12:32:58
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00001ms SCall: 16384 DCall: 00001 [195.x.x.x:4569]
I do not have any idea how to make it works and why the call is being rejected.
Could somebody help me in this issue?
I have two elastix servers connected used IAX2 trunk.
The first (A) is elastix 1.5.2-2 (old one but running without any issues) with ext 8xx and the second (B)is elastix 2.x.x. with extensions 10xx
Both servers are behind the NAT. The first (A) is 1:1 nated the second one (B) is located behind cisco router with cisco nat and UDP 4569 nated to the elastix IP address.
Server A is configured as below:
Code:
trunk name ccAP
peer details:
host=78.x.x.x
username=ccAP
secret=*********
type=peer
qualify=yes
context=from-internal
trunk=yes
allow=all
user context: tspCC
host=78.x.x.x
secret=*********
type=user
context=from-internal
allow=all
The secon side B:
Code:
trunk name: tspCC
host=195.x.x.x
username=tspCC
secret=*********
type=peer
qualify=yes
context=from-internal
trunk=yes
allow=all
user context: ccAP
host=195.x.x.x
secret=********
type=user
context=from-internal
allow=all
I have configured outbound routes for both sides
Code:
Side A iax2 peers status:
Name/Username Host Mask Port Status
ccAP/ccAP 78.x.x.x (S) 255.255.255.255 4569 (T) OK (39 ms)
users:
Username Secret Authen Def.Context A/C Codec Pref
tspCC ******** 000000000000003 from-internal No Host
Side B:
Name/Username Host Mask Port Status
tspCC/tspCC 195.x.x.x (S) 255.255.255.255 4569 (T) OK (42 ms)
users:
Username Secret Authen Def.Context A/C Codec Pref
ccAP ******** 000000000000003 from-internal No Host
I can call from side B to side A, but in the secon way i have "all circuit bussy" mesage
the log on calling server looks like this:
fixlocalprefix: Dialpattern 100x matched. 1005 -> 1005
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/888-b5705510", "OUTNUM=1005") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/888-b5705510", "custom=IAX2/ccAP") in new stack
-- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/888-b5705510", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)trwW") in new stack
-- Executing [s@macro-dialout-trunk:16] Macro("SIP/888-b5705510", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/888-b5705510", "") in new stack
-- Executing [s@macro-dialout-trunk:17] GotoIf("SIP/888-b5705510", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/888-b5705510", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:19] Dial("SIP/888-b5705510", "IAX2/ccAP/1005|300|trwW") in new stack
-- Called ccAP/1005
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00004ms SCall: 16384 DCall: 00000 [78.x.x.x:4569]
VERSION : 2
CALLED NUMBER : 1005
CODEC_PREFS : (alaw|ulaw|gsm)
CALLING NUMBER : 888
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : KT
LANGUAGE : en
USERNAME : ccAP
FORMAT : 8
CAPABILITY : 4136959
ADSICPE : 2
DATE TIME : 2011-06-13 12:29:30
Rx-Frame Retry[Yes] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass: REJECT
Timestamp: 00004ms SCall: 00001 DCall: 16384 [78.x.x.x:4569]
Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00004ms SCall: 16384 DCall: 00001 [78.x.x.x:4569]
-- Hungup 'IAX2/ccAP-16384'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:20] Goto("SIP/888-b5705510", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/888-b5705510", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/888-b5705510", "TRUNK Dial failed due to CHANUNAVAIL (hangupcause: 0) - failing through to other trunks") in new stack
-- Executing [1005@from-internal:6] Macro("SIP/888-b5705510", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/888-b5705510", "all-circuits-busy-now|noanswer") in new stack
-- <SIP/888-b5705510> Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/888-b5705510", "pls-try-call-later|noanswer") in new stack
-- <SIP/888-b5705510> Playing 'pls-try-call-later' (language 'en')
Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
The second side shows:
Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass: NEW
Timestamp: 00001ms SCall: 16384 DCall: 00000 [195.x.x.x:4569]
VERSION : 2
CALLED NUMBER : 1005
CODEC_PREFS : (alaw|ulaw|gsm)
CALLING NUMBER : 888
CALLING PRESNTN : 0
CALLING TYPEOFN : 0
CALLING TRANSIT : 0
CALLING NAME : KS
LANGUAGE : en
USERNAME : ccAP
FORMAT : 8
CAPABILITY : 4136959
ADSICPE : 2
DATE TIME : 2011-06-13 12:32:58
Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass: ACK
Timestamp: 00001ms SCall: 16384 DCall: 00001 [195.x.x.x:4569]
I do not have any idea how to make it works and why the call is being rejected.
Could somebody help me in this issue?