Trixbox to Trixbox Trunk problem?

imranmcse
Posts: 16
Member Since:
2007-03-20

I have two trixboxes connected through IAX trunk. Site A users are able to make calls to Site B , but Site B is not able to make calls to site A phones. Below is the trunk configurations on both sites.

Site B Configurations:
=======
1. Trunk Name: Dic
2. Peer Details:

context=from-internal
disallow=all
allow=speex
host=172.26.1.252
qualify=yes
secret=Dic-pass
type=peer
username=Dic-user

1. User Context: Shatha-user
2. User Details:

context=from-internal
host=172.26.1.252
secret=Shatha-pass
type=user

1. Created outbound route:
1. Dial Patterns: 8XX
2. trunk Sequence: IAX2/Dic

Site A Configuration:
===============

1. Trunk Name: Shatha
2. Peer Details:

context=from-internal
disallow=all
allow=speex
host=172.25.1.252
qualify=yes
secret=Shatha-pass
type=peer
username=Shatha-user

1. User Context: Dic-user
2. User Details:

context=from-internal
host=172.25.1.252
secret=Dic-pass
type=user

1. Created outbound route:
1. Dial Patterns: 2XX
2. trunk Sequence: IAX2/Shatha

Please help?



imranmcse
Posts: 16
Member Since:
2007-03-20
Here I am going to put call

Here I am going to put call logs from both sites when I dial remote site extension:
Site A (Which is working fine):
==============
TrixboxDIC*CLI>
-- Executing [213@from-internal:1] Macro("SIP/813-088050f8", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/813-088050f8", "user-callerid: device 813") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/813-088050f8", "AMPUSER=813") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/813-088050f8", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/813-088050f8", "1|Set|REALCALLERIDNUM=813") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/813-088050f8", "REALCALLERIDNUM is 813") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/813-088050f8", "AMPUSER=813") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/813-088050f8", "AMPUSERCIDNAME=Imran") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/813-088050f8", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/813-088050f8", "AMPUSERCID=813") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/813-088050f8", "CALLERID(all)="Imran" ") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/813-088050f8", "REALCALLERIDNUM=813") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/813-088050f8", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/813-088050f8", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/813-088050f8", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/813-088050f8", "Using CallerID "Imran" ") in new stack
-- Executing [213@from-internal:2] Set("SIP/813-088050f8", "_NODEST=") in new stack
-- Executing [213@from-internal:3] Macro("SIP/813-088050f8", "record-enable|813|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/813-088050f8", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/813-088050f8", "recordingcheck|20080805-051003|1217927403.199") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080805-051003|1217927403.199: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/813-088050f8", "No recording needed") in new stack
-- Executing [213@from-internal:4] Macro("SIP/813-088050f8", "dialout-trunk|2|213||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/813-088050f8", "DIAL_TRUNK=2") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/813-088050f8", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/813-088050f8", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/813-088050f8", "DIAL_NUMBER=213") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/813-088050f8", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/813-088050f8", "GROUP()=OUT_2") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/813-088050f8", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/813-088050f8", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/813-088050f8", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/813-088050f8", "outbound-callerid|2") in new stack
-- Executing [s@macro-outbound-callerid:1] GotoIf("SIP/813-088050f8", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing [s@macro-outbound-callerid:3] NoOp("SIP/813-088050f8", "REALCALLERIDNUM is 813") in new stack
-- Executing [s@macro-outbound-callerid:4] GotoIf("SIP/813-088050f8", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing [s@macro-outbound-callerid:9] Set("SIP/813-088050f8", "USEROUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:10] Set("SIP/813-088050f8", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/813-088050f8", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] GotoIf("SIP/813-088050f8", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing [s@macro-outbound-callerid:16] GotoIf("SIP/813-088050f8", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,18)
-- Executing [s@macro-outbound-callerid:18] GotoIf("SIP/813-088050f8", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing [s@macro-outbound-callerid:22] NoOp("SIP/813-088050f8", "CallerID set to "Imran" ") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/813-088050f8", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/813-088050f8", "OUTNUM=213") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/813-088050f8", "custom=IAX2/Shatha") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/813-088050f8", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/813-088050f8", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/813-088050f8", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/813-088050f8", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/813-088050f8", "IAX2/Shatha/213|300|") in new stack
-- Called Shatha/213
-- Call accepted by 172.25.1.252 (format speex)
-- Format for call is speex
-- IAX2/Shatha-9345 is ringing
-- Hungup 'IAX2/Shatha-9345'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/813-088050f8' in macro 'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 'SIP/813-088050f8'
-- Executing [h@macro-dialout-trunk:1] Macro("SIP/813-088050f8", "hangupcall|") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/813-088050f8", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/813-088050f8", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/813-088050f8", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/813-088050f8", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/813-088050f8", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/813-088050f8", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/813-088050f8' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/813-088050f8'

================
Site B (Which is not working fine):
================
-- Executing [813@from-internal:1] Macro("SIP/213-b7e1f518", "user-callerid|SKIPTTL|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("SIP/213-b7e1f518", "user-callerid: device 213") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/213-b7e1f518", "AMPUSER=213") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/213-b7e1f518", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/213-b7e1f518", "1|Set|REALCALLERIDNUM=213") in new stack
-- Executing [s@macro-user-callerid:5] NoOp("SIP/213-b7e1f518", "REALCALLERIDNUM is 213") in new stack
-- Executing [s@macro-user-callerid:6] Set("SIP/213-b7e1f518", "AMPUSER=213") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/213-b7e1f518", "AMPUSERCIDNAME=Imran") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/213-b7e1f518", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/213-b7e1f518", "AMPUSERCID=213") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/213-b7e1f518", "CALLERID(all)="Imran" ") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/213-b7e1f518", "REALCALLERIDNUM=213") in new stack
-- Executing [s@macro-user-callerid:12] ExecIf("SIP/213-b7e1f518", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:13] NoOp("SIP/213-b7e1f518", "TTL: ARG1: SKIPTTL") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/213-b7e1f518", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("SIP/213-b7e1f518", "Using CallerID "Imran" ") in new stack
-- Executing [813@from-internal:2] Set("SIP/213-b7e1f518", "_NODEST=") in new stack
-- Executing [813@from-internal:3] Macro("SIP/213-b7e1f518", "record-enable|213|OUT|") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/213-b7e1f518", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/213-b7e1f518", "recordingcheck|20080805-131344|1217927623.1299") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20080805-131344|1217927623.1299: Outbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("SIP/213-b7e1f518", "No recording needed") in new stack
-- Executing [813@from-internal:4] Macro("SIP/213-b7e1f518", "dialout-trunk|4|813||") in new stack
-- Executing [s@macro-dialout-trunk:1] Set("SIP/213-b7e1f518", "DIAL_TRUNK=4") in new stack
-- Executing [s@macro-dialout-trunk:2] ExecIf("SIP/213-b7e1f518", "0|Authenticate|") in new stack
-- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/213-b7e1f518", "0?disabletrunk|1") in new stack
-- Executing [s@macro-dialout-trunk:4] Set("SIP/213-b7e1f518", "DIAL_NUMBER=813") in new stack
-- Executing [s@macro-dialout-trunk:5] Set("SIP/213-b7e1f518", "DIAL_TRUNK_OPTIONS=tr") in new stack
-- Executing [s@macro-dialout-trunk:6] Set("SIP/213-b7e1f518", "GROUP()=OUT_4") in new stack
-- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/213-b7e1f518", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,9)
-- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/213-b7e1f518", "0?skipoutcid") in new stack
-- Executing [s@macro-dialout-trunk:10] Set("SIP/213-b7e1f518", "DIAL_TRUNK_OPTIONS=") in new stack
-- Executing [s@macro-dialout-trunk:11] Macro("SIP/213-b7e1f518", "outbound-callerid|4") in new stack
-- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/213-b7e1f518", "0|SetCallerPres|") in new stack
-- Executing [s@macro-outbound-callerid:2] GotoIf("SIP/213-b7e1f518", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,4)
-- Executing [s@macro-outbound-callerid:4] NoOp("SIP/213-b7e1f518", "REALCALLERIDNUM is 213") in new stack
-- Executing [s@macro-outbound-callerid:5] GotoIf("SIP/213-b7e1f518", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,10)
-- Executing [s@macro-outbound-callerid:10] Set("SIP/213-b7e1f518", "USEROUTCID=043640213") in new stack
-- Executing [s@macro-outbound-callerid:11] Set("SIP/213-b7e1f518", "EMERGENCYCID=") in new stack
-- Executing [s@macro-outbound-callerid:12] Set("SIP/213-b7e1f518", "TRUNKOUTCID=") in new stack
-- Executing [s@macro-outbound-callerid:13] GotoIf("SIP/213-b7e1f518", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,17)
-- Executing [s@macro-outbound-callerid:17] GotoIf("SIP/213-b7e1f518", "1?usercid") in new stack
-- Goto (macro-outbound-callerid,s,19)
-- Executing [s@macro-outbound-callerid:19] GotoIf("SIP/213-b7e1f518", "0?report") in new stack
-- Executing [s@macro-outbound-callerid:20] Set("SIP/213-b7e1f518", "CALLERID(all)=043640213") in new stack
-- Executing [s@macro-outbound-callerid:21] GotoIf("SIP/213-b7e1f518", "1?report:hidecid") in new stack
-- Goto (macro-outbound-callerid,s,23)
-- Executing [s@macro-outbound-callerid:23] NoOp("SIP/213-b7e1f518", "CallerID set to "" ") in new stack
-- Executing [s@macro-dialout-trunk:12] AGI("SIP/213-b7e1f518", "fixlocalprefix") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- AGI Script fixlocalprefix completed, returning 0
-- Executing [s@macro-dialout-trunk:13] Set("SIP/213-b7e1f518", "OUTNUM=813") in new stack
-- Executing [s@macro-dialout-trunk:14] Set("SIP/213-b7e1f518", "custom=IAX2/Dic") in new stack
-- Executing [s@macro-dialout-trunk:15] GotoIf("SIP/213-b7e1f518", "1?gocall") in new stack
-- Goto (macro-dialout-trunk,s,17)
-- Executing [s@macro-dialout-trunk:17] Macro("SIP/213-b7e1f518", "dialout-trunk-predial-hook|") in new stack
-- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/213-b7e1f518", "0?bypass|1") in new stack
-- Executing [s@macro-dialout-trunk:19] GotoIf("SIP/213-b7e1f518", "0?customtrunk") in new stack
-- Executing [s@macro-dialout-trunk:20] Dial("SIP/213-b7e1f518", "IAX2/Dic/813|300|") in new stack
-- Called Dic/813
-- Hungup 'IAX2/Dic-2'
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dialout-trunk:21] Goto("SIP/213-b7e1f518", "s-CHANUNAVAIL|1") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] GotoIf("SIP/213-b7e1f518", "1?noreport") in new stack
-- Goto (macro-dialout-trunk,s-CHANUNAVAIL,3)
-- Executing [s-CHANUNAVAIL@macro-dialout-trunk:3] NoOp("SIP/213-b7e1f518", "TRUNK Dial failed due to CHANUNAVAIL - failing through to other trunks") in new stack
-- Executing [813@from-internal:5] Macro("SIP/213-b7e1f518", "outisbusy|") in new stack
-- Executing [s@macro-outisbusy:1] Playback("SIP/213-b7e1f518", "all-circuits-busy-now|noanswer") in new stack
-- Playing 'all-circuits-busy-now' (language 'en')
-- Executing [s@macro-outisbusy:2] Playback("SIP/213-b7e1f518", "pls-try-call-later|noanswer") in new stack
-- Playing 'pls-try-call-later' (language 'en')
-- Executing [s@macro-outisbusy:3] Macro("SIP/213-b7e1f518", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("SIP/213-b7e1f518", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("SIP/213-b7e1f518", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("SIP/213-b7e1f518", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("SIP/213-b7e1f518", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("SIP/213-b7e1f518", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("SIP/213-b7e1f518", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/213-b7e1f518' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/213-b7e1f518' in macro 'outisbusy'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'SIP/213-b7e1f518'

It may help to diagnose the issue.



syadnom
Posts: 52
Member Since:
2009-03-21
link to same issue, just to nullify cross-post

cvander
Posts: 637
Member Since:
2006-06-26
Call me crazy, but it looks

Call me crazy, but it looks like you don't have your outbound routes configured properly in site "B". You can see in the first part of the log that the call goes out over IAX, but it never reaches that point in the second call log. What are your outbound routes on each box, and what is your extension scheme?

-Chris



GenePool
Posts: 224
Member Since:
2006-06-03
The non-working trunk is

The non-working trunk is "unavailable". Make sure that your "host=172.26.1.252" and "host=172.25.1.252" IP addresses are indeed correct. Site A should "point" to B, and B should point to A.

Tell us more about your actual network topology, seeing as how you have two very similar looking IP addresses.

PS: This issue should really have been posted in either the HELP or TRUNK section. I doubt if a lot of people actually expect to find 'Help" issues here.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.