[Asterisk-Users] ChanIsAvail issue
Deepak Malhotra
deepak at netandroid.com
Sun Jul 18 17:07:22 MST 2004
Hello
I am trying to setup ChanIsAvail function in the extensions.conf file so that user should use the available channel to call out, but immediately after the function like, zap channel hangup.
Here is the copy of my extensions.conf file and messages display on consol while making the call.
Please help me to fingure out this issue.
Thanks
Deepak
Extension.conf :
exten => _9NXXXXXX,1,ChanIsAvail(${TRUNK})
exten => _9NXXXXXX,2,NoOP,${AVAILCHAN}
exten => _9NXXXXXX,3,Cut(TheChannel=AVAILCHAN,,1)
exten => _9NXXXXXX,4,NoOP,${TheChannel}
exten => _9NXXXXXX,5,Dial(${TheChannel}/${EXTEN:${TRUNKMSD}})
exten => _9NXXXXXX,6,Hangup
Log File:
-- Executing ChanIsAvail("SIP/201-57f5", "Zap/g1") in new stack
-- Hungup 'Zap/1-1'
-- Executing NoOp("SIP/201-57f5", "Zap/1-1") in new stack
-- Executing Cut("SIP/201-57f5", "TheChannel=AVAILCHAN||1") in new stack
-- Executing NoOp("SIP/201-57f5", "Zap/1") in new stack
-- Executing Dial("SIP/201-57f5", "Zap/1/2353070") in new stack
Jul 18 16:57:43 NOTICE[1200825920]: app_dial.c:689 dial_exec: Unable to create channel of type 'Zap'
== Everyone is busy/congested at this time
-- Executing Hangup("SIP/201-57f5", "") in new stack
== Spawn extension (office, 92353070, 6) exited non-zero on 'SIP/201-57f5'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040718/44957f1b/attachment.htm
More information about the asterisk-users
mailing list