<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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. </FONT></DIV>
<DIV><FONT face=Arial size=2>Here is the copy of my extensions.conf file and
messages display on consol while making the call. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Please help me to fingure out this
issue.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Deepak</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Extension.conf :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten =>
_9NXXXXXX,1,ChanIsAvail(${TRUNK})<BR>exten =>
_9NXXXXXX,2,NoOP,${AVAILCHAN}<BR>exten =>
_9NXXXXXX,3,Cut(TheChannel=AVAILCHAN,,1)<BR>exten =>
_9NXXXXXX,4,NoOP,${TheChannel}<BR>exten =>
_9NXXXXXX,5,Dial(${TheChannel}/${EXTEN:${TRUNKMSD}})<BR>exten =>
_9NXXXXXX,6,Hangup<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Log File:</FONT></DIV>
<DIV><FONT face=Arial size=2> -- Executing
ChanIsAvail("SIP/201-57f5", "Zap/g1") in new stack<BR> --
Hungup 'Zap/1-1'<BR> -- Executing NoOp("SIP/201-57f5",
"Zap/1-1") in new stack<BR> -- Executing Cut("SIP/201-57f5",
"TheChannel=AVAILCHAN||1") in new stack<BR> -- Executing
NoOp("SIP/201-57f5", "Zap/1") in new stack<BR> -- Executing
Dial("SIP/201-57f5", "Zap/1/2353070") in new stack<BR>Jul 18 16:57:43
NOTICE[1200825920]: app_dial.c:689 dial_exec: Unable to create channel of type
'Zap'<BR> == Everyone is busy/congested at this time<BR>
-- Executing Hangup("SIP/201-57f5", "") in new stack<BR> == Spawn
extension (office, 92353070, 6) exited non-zero on
'SIP/201-57f5'<BR></FONT></DIV></BODY></HTML>