<div>Hi,</div>
<div>&nbsp;</div>
<div>I facing a problem with flash hook. When ever I do a flash hook to
place an extsing call on hold, the call gets disconnected. The debugs
on Asterisk shows that &#39;on hook event detected&#39;&nbsp; when I press the flash
button on the phone. The setup is like this
</div>
<div>&nbsp;</div>
<div>Asterisk box with T1 cards and FXS cards. The T1 card is connected
to an IAD and configured for ISDN PRI lines. Analog phones come out of
the FXS cards. </div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Phone 1 </div>
<div>Phone 2 ----------FXS card . Asterisk. T1 card ====ISDN PRI=====IAD +++++IP&nbsp;&nbsp;</div>
<div>Phone 3</div>
<div>&nbsp;</div>
<div>The Asterisk is configured to plce calls on one of the T1
ports/channels based on the dial plan. ie, if I dial 94XXXXXXXXXX then
the call will be placed&nbsp; on a channel in the 4th T1 port which is
connected to the IAD. I am able to make calls using this setup. But I
am not able to put the call on hold using a flash hook. The call gets
disconnected when the flash button is pressed.
</div>
<div>&nbsp;</div>
<div>I have transfer=yes, threewaycalling=yes etc enabled in my zapata.conf . </div>
<div>&nbsp;</div>
<div>signalling=fxo_ks<br>threewaycalling=yes<br>transfer=yes<br>callwaiting=yes<br>flash=1000<br>context=from-internal<br>group=1<br>callgroup=1<br>pickupgroup=1<br>hidecallerid=no<br>usercallerid=yes<br>musiconhold=default
<br>channel =&gt; 97<br>&nbsp;</div>
<div>Here are the asterisk debugs that I get when I flash the call</div>
<div>-------------------------------------------------------------------------------------</div>

<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Exception on 106, channel 97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Got event On hook(1) on channel 97 (index 0)
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: disabled echo cancellation on channel 97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Enabled echo cancellation on channel 97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Echo cancellation already on
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Unlinking slave 73 from 97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Removed 83 from conference 9/97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Removed 106 from conference 9/73
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Updated conferencing on 97, with 0 conference users<br>Oct 25 10:27:13 DEBUG[28965] channel.c: Returning from native bridge, channels: Zap/97-1, Zap/73-1<br>Oct 25 10:27:13 DEBUG[28965] 
channel.c: Hanging up channel &#39;Zap/73-1&#39;<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: zt_hangup(Zap/73-1)<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/73-1<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Hangup: channel: 73 index = 0, normal = 83, callwait = -1, thirdcall = -1
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Not yet hungup...&nbsp; Calling hangup once with icause, and clearing call<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: disabled echo cancellation on channel 73<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/73-1
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Updated conferencing on 73, with 0 conference users<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/73-1<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: disabled echo cancellation on channel 73
<br>Oct 25 10:27:13 VERBOSE[28965] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Hungup &#39;Zap/73-1&#39;<br>Oct 25 10:27:13 DEBUG[28965] app_dial.c: Exiting with DIALSTATUS=ANSWER.<br>Oct
25 10:27:13 DEBUG[28965] app_macro.c: Spawn extension
(macro-dialout-trunk,s,14) exited non-zero on &#39;Zap/97-1&#39; in macro
&#39;dialout-trunk&#39;
<br>Oct 25 10:27:13 DEBUG[28965] pbx.c: Spawn extension (macro-dialout-trunk,s,14) exited non-zero on &#39;Zap/97-1&#39;<br>Oct
25 10:27:13 DEBUG[28974] app_queue.c: Device &#39;Zap/73&#39; changed to state
&#39;0&#39; (Unknown) but we don&#39;t care because they&#39;re not a member of any
queue.
<br>Oct 25 10:27:13 DEBUG[28965] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.<br>Oct
25 10:27:13 DEBUG[28965] cdr_addon_mysql.c: cdr_mysql: SQL command as
follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (&#39;2007-10-25 10:26:53&#39;,&#39;6782363001&#39;,&#39;6782363001&#39;,&#39;946782362001&#39;,&#39;from-internal&#39;, &#39;Zap/97-1&#39;,&#39;Zap/73-1&#39;,&#39;Dial&#39;,&#39;ZAP/g4/6782362001&#39;,20,17,&#39;ANSWERED&#39;,3,&#39;&#39;,&#39;
1193322403.4539&#39;)<br>Oct 25 10:27:13 DEBUG[28965] channel.c: Hanging up channel &#39;Zap/97-1&#39;<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: zt_hangup(Zap/97-1)<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Hangup: channel: 97 index = 0, normal = 106, callwait = -1, thirdcall = -1
<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: disabled echo cancellation on channel 97<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/97-1<br>Oct 25 10:27:13 DEBUG[28965] chan_zap.c: Updated conferencing on 97, with 0 conference users
<br>Oct 25 10:27:13 VERBOSE[28965] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Hungup &#39;Zap/97-1&#39;<br>Oct
25 10:27:13 DEBUG[28976] app_queue.c: Device &#39;Zap/97&#39; changed to state
&#39;0&#39; (Unknown) but we don&#39;t care because they&#39;re not a member of any
queue.
<br>Oct 25 10:27:14 DEBUG[3779] chan_zap.c: Monitor doohicky got event Hook Transition Complete on channel 97<br>Oct 25 10:27:14 DEBUG[3779] chan_zap.c: Monitor doohicky got event Ring/Answered on channel 97<br>Oct 25 10:27:14 WARNING[3779] chan_zap.c: zt hook failed: Device or resource busy
<br>Oct 25 10:27:14 VERBOSE[28977] logger.c:&nbsp;&nbsp;&nbsp;&nbsp; -- Starting simple switch on &#39;Zap/97-1&#39;<br>Oct
25 10:27:14 DEBUG[28978] app_queue.c: Device &#39;Zap/97&#39; changed to state
&#39;2&#39; (In use) but we don&#39;t care because they&#39;re not a member of any
queue.
<br>Oct 25 10:27:25 NOTICE[3777] chan_zap.c: PRI got event: HDLC Abort (6) on Primary D-channel of span 3<br>Oct 25 10:27:25 DEBUG[3777] chan_zap.c: Got event HDLC Abort (6) on D-channel for span 3</span></font></p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"></span></font>&nbsp;</p>
<p><font face="Times New Roman" size="3"><span style="font-size: 12pt;"><u>The ISDN Messages on the IAD when the call is flashed</u></span></font></p><font face="Times New Roman" size="3"><span style="font-size: 12pt;">

<p>*Mar&nbsp; 3 15:47:58 EST: ISDN Se1/0:23 Q931: RX &lt;- DISCONNECT pd = 8&nbsp; callref = 0x0057 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cause i = 0x8190 - Normal call clearing<br>*Mar&nbsp; 3 15:47:58 EST: %ISDN-6-DISCONNECT: Interface Serial1/0:0&nbsp; disconnected from 6782363001 , call lasted 31 seconds
<br>*Mar&nbsp; 3 15:47:58 EST: ISDN Se1/0:23 Q931: TX -&gt; RELEASE pd = 8&nbsp; callref = 0x8057<br>*Mar&nbsp; 3 15:47:58 EST: ISDN Se1/0:23 Q931: RX &lt;- RELEASE_COMP pd = 8&nbsp; callref = 0x0057 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Cause i = 0x8190 - Normal call clearing
<br>Now the IAD terminates the VoIP call by sending a BYE.</p>
<p>Any help in solving this will be greatly appreciated.</p>
<p>&nbsp;</p>
<p>Thanks and Regards,</p>
<p>Jana</p>
<p>&nbsp;</p></span></font>