[Amportal-users] Inbound/Outbound Routes with a PBX

Hello,

Hopefully I can get an answer to this question:

My setup looks like this:

PSTN----2(T1s)----PBX----T1(Zap/g1)----FreePBX----T1(Zap/g2)----BrookTro
ut Fax Board

Regular calls to and from the FreePBX 2.2.1 work fine. I’m having a
problem where if I setup a Time Condition on the Asterisk to fail over
to an extension on the PBX, I get a CHANUNAVAIL. I can call that
extension from a SIP phone on the Asterisk without a problem. The T1
between the PBX and Asterisk has 23 channels free. There is no traffic
on this T1 other then two low use users. Where might I start looking to
find the problem?

Here is a CLI debug of the call. I am calling from a TDM phone on the
PBX (257) to the Inbound Route (5511) that points to a Time Condition.
The Time Condition fails to the outbound-allroutes context that should
dial 787, a message on the PBX that says “We’re closed”.

asteriskCLI>
– Accepting call from ‘257’ to ‘5511’ on channel 0/23, span 1
– Executing [5511@from-trunk:1] Set(“Zap/23-1”, “FROM_DID=5511”) in
new stack
– Executing [5511@from-trunk:2] Goto(“Zap/23-1”,
“timeconditions|2|1”) in new stack
– Goto (timeconditions,2,1)
– Executing [2@timeconditions:1] GotoIfTime(“Zap/23-1”,
"12:00-18:00|mon-fri|
|*?ivr-7|s|1") in new stack
– Executing [2@timeconditions:2] Goto(“Zap/23-1”,
“outbound-allroutes|787|1”) in new stack
– Goto (outbound-allroutes,787,1)
– Executing [787@outbound-allroutes:1] Set(“Zap/23-1”,
“INTRACOMPANYROUTE=YES”) in new stack
– Executing [787@outbound-allroutes:2] Macro(“Zap/23-1”,
“dialout-trunk|1|787||”) in new stack
– Executing [s@macro-dialout-trunk:1] Set(“Zap/23-1”,
“DIAL_TRUNK=1”) in new stack
– Executing [s@macro-dialout-trunk:2] Set(“Zap/23-1”, “_NODEST=”)
in new stack
– Executing [s@macro-dialout-trunk:3] Set(“Zap/23-1”,
“DIAL_NUMBER=787”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“Zap/23-1”,
“ROUTE_PASSWD=”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“Zap/23-1”,
“DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:6] GotoIf(“Zap/23-1”,
“1?noauth”) in new stack
– Goto (macro-dialout-trunk,s,8)
– Executing [s@macro-dialout-trunk:8] Set(“Zap/23-1”,
“GROUP()=OUT_1”) in new stack
– Executing [s@macro-dialout-trunk:9] Macro(“Zap/23-1”,
“user-callerid|SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:1] NoOp(“Zap/23-1”,
“user-callerid: McGhee, Stefano 257”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“Zap/23-1”,
“0?report”) in new stack
– Executing [s@macro-user-callerid:3] GotoIf(“Zap/23-1”, “0?start”)
in new stack
– Executing [s@macro-user-callerid:4] Set(“Zap/23-1”,
“REALCALLERIDNUM=257”) in new stack
– Executing [s@macro-user-callerid:5] NoOp(“Zap/23-1”,
“REALCALLERIDNUM is 257”) in new stack
– Executing [s@macro-user-callerid:6] Set(“Zap/23-1”,
“AMPUSER=257”) in new stack
– Executing [s@macro-user-callerid:7] Set(“Zap/23-1”,
“AMPUSERCIDNAME=Stefano McGhee (Def)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“Zap/23-1”,
“0?report”) in new stack
– Executing [s@macro-user-callerid:9] Set(“Zap/23-1”,
“CALLERID(all)=Stefano McGhee (Def) <257>”) in new stack
– Executing [s@macro-user-callerid:10] Set(“Zap/23-1”,
“REALCALLERIDNUM=257”) in new stack
– Executing [s@macro-user-callerid:11] NoOp(“Zap/23-1”, “TTL:
ARG1: SKIPTTL”) in new stack
– Executing [s@macro-user-callerid:12] GotoIf(“Zap/23-1”,
“1?continue”) in new stack
– Goto (macro-user-callerid,s,21)
– Executing [s@macro-user-callerid:21] NoOp(“Zap/23-1”, “Using
CallerID “Stefano McGhee (Def)” <257>”) in new stack
– Executing [s@macro-dialout-trunk:10] Macro(“Zap/23-1”,
“record-enable|257|OUT”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“Zap/23-1”, “0?2:4”)
in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] DeadAGI(“Zap/23-1”,
“recordingcheck||1172162841.242”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck||1172162841.242: Outbound recording not enabled
– AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] NoOp(“Zap/23-1”, “No
recording needed”) in new stack
– Executing [s@macro-dialout-trunk:11] GotoIf(“Zap/23-1”,
“1?skipoutcid”) in new stack
– Goto (macro-dialout-trunk,s,14)
– Executing [s@macro-dialout-trunk:14] GotoIf(“Zap/23-1”,
“1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,16)
– Executing [s@macro-dialout-trunk:16] DeadAGI(“Zap/23-1”,
“fixlocalprefix”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
– AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:17] Set(“Zap/23-1”,
“OUTNUM=787”) in new stack
– Executing [s@macro-dialout-trunk:18] Set(“Zap/23-1”,
“custom=ZAP/g1”) in new stack
– Executing [s@macro-dialout-trunk:19] GotoIf(“Zap/23-1”,
“0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:20] Dial(“Zap/23-1”,
“ZAP/g1/787|300|”) in new stack
– Requested transfer capability: 0x10 - 3K1AUDIO
– Called g1/787
– Zap/1-1 is proceeding passing it to Zap/23-1
– Channel 0/1, span 1 got hangup request
– Hungup ‘Zap/1-1’
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:21] Goto(“Zap/23-1”,
“s-CHANUNAVAIL|1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] NoOp(“Zap/23-1”,
“Dial failed due to CHANUNAVAIL - failing through to other trunks”) in
new stack
– Executing [787@outbound-allroutes:3] Macro(“Zap/23-1”,
“outisbusy|”) in new stack
– Executing [s@macro-outisbusy:1] Playback(“Zap/23-1”,
“all-circuits-busy-now|noanswer”) in new stack
– Playing ‘all-circuits-busy-now’ (language ‘en’)
– Channel 0/23, span 1 got hangup request
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on
’Zap/23-1’ in macro ‘outisbusy’
== Spawn extension (macro-outisbusy, s, 1) exited non-zero on
’Zap/23-1’
– Hungup 'Zap/23-1’
Thanks,

Stefano


Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net’s Techsay panel and you’ll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


Amportal-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-users

Post generated using Mail2Forum (http://www.mail2forum.com)