I've got two TrixBoxes running. I have some IAX2 Trunks between the TrixBoxes. Trixbox-A has a PRI and is the connection to the outside world. Trixbox-B is at a remote site connected via a data T1. I don't have any problems calling to and from Trixbox-B when I have an inbound route of Any DID / Any CID. When I create an inbound route for DID 1001000 that points to a ring group(or any other destination). I get "The number you have dialed is not in service"
I've changed the real number to (555)100-1000
My Inbound Trunk
Trunk Name 1001000
host=pbx2.xxxxx.com
username=1001000
secret=*****
type=peer
Incoming Settings:
context=from-trunk
secret=*****
type=friend
Registration String
1001000:*****@pbx2.xxxxx.com
Output from asterisk -r
-- Accepting AUTHENTICATED call from 66.x.x.x:
> requested format = ulaw,
> requested prefs = (ulaw|alaw|gsm),
> actual format = ulaw,
> host prefs = (ulaw|alaw|gsm),
> priority = mine
-- Executing [s@from-trunk:1] NoOp("IAX2/55510010001-11028", "No DID or CID Match") in new stack
-- Executing [s@from-trunk:2] Answer("IAX2/5551001000-11028", "") in new stack
-- Executing [s@from-trunk:3] Wait("IAX2/5551001000-11028", "2") in new stack
-- Executing [s@from-trunk:4] Playback("IAX2/5551001000-11028", "ss-noservice") in new stack
--
-- Executing [s@from-trunk:5] SayAlpha("IAX2/5551001000-11028", "") in new stack
== Auto fallthrough, channel 'IAX2/5551001000-11028' status is 'UNKNOWN'
-- Hungup 'IAX2/5551001000-11028'
=============================================================================
This is from Trixbox-A when I dial the number.
pbx2*CLI>
-- Accepting call from '5552001000' to '5551001000' on channel 0/1, span 1
-- Executing [5551001000@from-zaptel:1] Set("Zap/1-1", "DID=5551001000") in new stack
-- Executing [5551001000@from-zaptel:2] Goto("Zap/1-1", "s|1") in new stack
-- Goto (from-zaptel,s,1)
-- Executing [s@from-zaptel:1] NoOp("Zap/1-1", "Entering from-zaptel with DID == 5551001000") in new stack
-- Executing [s@from-zaptel:2] Ringing("Zap/1-1", "") in new stack
-- Executing [s@from-zaptel:3] Set("Zap/1-1", "DID=5551001000") in new stack
-- Executing [s@from-zaptel:4] NoOp("Zap/1-1", "DID is now 5551001000") in new stack
-- Executing [s@from-zaptel:5] GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing [s@from-zaptel:8] NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("Zap/1-1", "CHAN=1-1") in new stack
-- Executing [s@from-zaptel:10] Set("Zap/1-1", "CHAN=1") in new stack
-- Executing [s@from-zaptel:11] Macro("Zap/1-1", "from-zaptel-1|5551001000|1") in new stack
-- Executing [s@macro-from-zaptel-1:1] NoOp("Zap/1-1", "Entering macro-from-zaptel-1 with DID = 5551001000") in new stack
-- Executing [s@macro-from-zaptel-1:2] Gosub("Zap/1-1", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("Zap/1-1", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("Zap/1-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("Zap/1-1", "") in new stack
-- Executing [s@macro-from-zaptel-1:3] Set("Zap/1-1", "__FROM_DID=s") in new stack
-- Executing [s@macro-from-zaptel-1:4] GotoIf("Zap/1-1", "0 ?cidok") in new stack
-- Executing [s@macro-from-zaptel-1:5] Set("Zap/1-1", "CALLERID(name)=5552001000") in new stack
-- Executing [s@macro-from-zaptel-1:6] NoOp("Zap/1-1", "CallerID is "5552001000" ") in new stack
-- Executing [s@macro-from-zaptel-1:7] Goto("Zap/1-1", "custom-fromZap1|s|1") in new stack
-- Goto (custom-fromZap1,s,1)
== Channel 'Zap/1-1' jumping out of macro 'from-zaptel-1'
-- Executing [s@custom-fromZap1:1] NoOp("Zap/1-1", "DID is this 5551001000") in new stack
-- Executing [s@custom-fromZap1:2] Goto("Zap/1-1", "from-pstn|5551001000|1") in new stack
-- Goto (from-pstn,5551001000,1)
-- Executing [5551001000@from-pstn:1] Set("Zap/1-1", "__FROM_DID=5551001000") in new stack
-- Executing [5551001000@from-pstn:2] GotoIf("Zap/1-1", "1 ?cidok") in new stack
-- Goto (from-pstn,5551001000,4)
-- Executing [5551001000@from-pstn:4] NoOp("Zap/1-1", "CallerID is "5552001000" ") in new stack
-- Executing [5551001000@from-pstn:5] Goto("Zap/1-1", "from-did-direct|1001000|1") in new stack
-- Goto (from-did-direct,1001000,1)
-- Executing [1001000@from-did-direct:1] Macro("Zap/1-1", "exten-vm|novm|1001000") in new stack
-- Executing [s@macro-exten-vm:1] Macro("Zap/1-1", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("Zap/1-1", "user-callerid: 5552001000 5552001000") in new stack
-- Executing [s@macro-user-callerid:2] Set("Zap/1-1", "AMPUSER=5552001000") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("Zap/1-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] GotoIf("Zap/1-1", "0?start") in new stack
-- Executing [s@macro-user-callerid:5] Set("Zap/1-1", "REALCALLERIDNUM=5552001000") in new stack
-- Executing [s@macro-user-callerid:6] NoOp("Zap/1-1", "REALCALLERIDNUM is 5552001000") in new stack
-- Executing [s@macro-user-callerid:7] Set("Zap/1-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:8] Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("Zap/1-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
-- Executing [s@macro-user-callerid:13] NoOp("Zap/1-1", "TTL: ARG1: novm") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("Zap/1-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("Zap/1-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("Zap/1-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
-- Executing [s@macro-user-callerid:23] NoOp("Zap/1-1", "Using CallerID "5552001000" ") in new stack
-- Executing [s@macro-exten-vm:2] Set("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
-- Executing [s@macro-exten-vm:3] Set("Zap/1-1", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("Zap/1-1", "EXTTOCALL=1001000") in new stack
-- Executing [s@macro-exten-vm:5] Set("Zap/1-1", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("Zap/1-1", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("Zap/1-1", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("Zap/1-1", "record-enable|1001000|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Zap/1-1", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("Zap/1-1", "recordingcheck|20081020-133349|1224524029.1327") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20081020-133349|1224524029.1327: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] NoOp("Zap/1-1", "No recording needed") in new stack
-- Executing [s@macro-exten-vm:9] Macro("Zap/1-1", "dial||tr|1001000") in new stack
-- Executing [s@macro-dial:1] GotoIf("Zap/1-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("Zap/1-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is '5552001000' number is '5552001000'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 1001000 to extension map
-- dialparties.agi: Extension 1001000 cf is disabled
-- dialparties.agi: Extension 1001000 do not disturb is disabled
-- dialparties.agi: dbset CALLTRACE/1001000 to 5552001000
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:10] Dial("Zap/1-1", "IAX2/1001000||tr") in new stack
-- Called 1001000
-- Call accepted by 69.18.X.X (format ulaw)
-- Format for call is ulaw
-- IAX2/1001000-10 answered Zap/1-1
pbx2*CLI>
-- Channel 0/1, span 1 got hangup request, cause 16
-- Hungup 'IAX2/1001000-10'
== Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/1-1' in macro 'dial'
== Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/1-1' in macro 'exten-vm'
== Spawn extension (macro-dial, s, 10) exited non-zero on 'Zap/1-1'
-- Executing [h@macro-dial:1] Macro("Zap/1-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/1-1", "w") in new stack
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/1-1", "") in new stack
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/1-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/1-1", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/1-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
-- Executing [s@macro-hangupcall:11] Hangup("Zap/1-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
Member Since:
2008-09-02