Thank you for your quick reply! I really appreciate it!
I implemented what you suggested and I’m running into a problem. When the Dial command fails due to busy, Asterisk never executes the Agi command to report the dial status.
I have 2, 4 port, T1 cards in my machine and I’m having the first card loop back into the 2nd. I’m originating to an extension that plays Congestion. As you can see below, it executes the first Verbose statement fine but not the second. It is also worth noting that I’m running Asterisk Business Edition (Asterisk C 2.1.2)
Here is my extensions.conf:
[local-originate]
exten=>DIAL,1,Verbose(1,About to perform outdial)
exten=>DIAL,n,Dial(${dcc_dial_string},${dcc_timeout})
exten=>DIAL,n,Verbose(1,Dial Complete. Status: ${DIALSTATUS})
exten=>DIAL,n,Agi(agi://127.0.0.1/dccOutbound.agi?dccid=${dccid}&dial_status=${DIALSTATUS})
exten=>DIAL,n,Hangup()
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Manager ‘manager’ logged on from 172.40.4.111
– Executing [DIAL@local-originate:1] Verbose(“Local/DIAL@local-originate-7715,2”, “1|About to perform outdial”) in new stack
About to perform outdial
– Executing [DIAL@local-originate:2] Dial(“Local/DIAL@local-originate-7715,2”, “Zap/g1/700|3”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called g1/700
– Executing [700@test-cases:1] Congestion(“Zap/97-1”, “”) in new stack
– Accepting call from ‘’ to ‘700’ on channel 0/1, span 5
– Zap/1-1 is proceeding passing it to Local/DIAL@local-originate-7715,2
– Zap/1-1 is making progress passing it to Local/DIAL@local-originate-7715,2
– Hungup ‘Zap/1-1’
== Spawn extension (local-originate, DIAL, 2) exited non-zero on ‘Local/DIAL@local-originate-7715,2’
– Channel 0/1, span 5 got hangup request, cause 16
== Manager ‘manager’ logged off from 172.40.4.111
== Spawn extension (test-cases, 700, 1) exited non-zero on ‘Zap/97-1’
– Hungup ‘Zap/97-1’