<div>Hi,</div>
<div> </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 'on hook event detected' when I press the flash
button on the phone. The setup is like this
</div>
<div> </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> </div>
<div> </div>
<div>Phone 1 </div>
<div>Phone 2 ----------FXS card . Asterisk. T1 card ====ISDN PRI=====IAD +++++IP </div>
<div>Phone 3</div>
<div> </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 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> </div>
<div>I have transfer=yes, threewaycalling=yes etc enabled in my zapata.conf . </div>
<div> </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 => 97<br> </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 'Zap/73-1'<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... 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: -- Hungup 'Zap/73-1'<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 'Zap/97-1' in macro
'dialout-trunk'
<br>Oct 25 10:27:13 DEBUG[28965] pbx.c: Spawn extension (macro-dialout-trunk,s,14) exited non-zero on 'Zap/97-1'<br>Oct
25 10:27:13 DEBUG[28974] app_queue.c: Device 'Zap/73' changed to state
'0' (Unknown) but we don't care because they'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 ('2007-10-25 10:26:53','6782363001','6782363001','946782362001','from-internal', 'Zap/97-1','Zap/73-1','Dial','ZAP/g4/6782362001',20,17,'ANSWERED',3,'','
1193322403.4539')<br>Oct 25 10:27:13 DEBUG[28965] channel.c: Hanging up channel 'Zap/97-1'<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: -- Hungup 'Zap/97-1'<br>Oct
25 10:27:13 DEBUG[28976] app_queue.c: Device 'Zap/97' changed to state
'0' (Unknown) but we don't care because they'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: -- Starting simple switch on 'Zap/97-1'<br>Oct
25 10:27:14 DEBUG[28978] app_queue.c: Device 'Zap/97' changed to state
'2' (In use) but we don't care because they'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> </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 3 15:47:58 EST: ISDN Se1/0:23 Q931: RX <- DISCONNECT pd = 8 callref = 0x0057 <br> Cause i = 0x8190 - Normal call clearing<br>*Mar 3 15:47:58 EST: %ISDN-6-DISCONNECT: Interface Serial1/0:0 disconnected from 6782363001 , call lasted 31 seconds
<br>*Mar 3 15:47:58 EST: ISDN Se1/0:23 Q931: TX -> RELEASE pd = 8 callref = 0x8057<br>*Mar 3 15:47:58 EST: ISDN Se1/0:23 Q931: RX <- RELEASE_COMP pd = 8 callref = 0x0057 <br> 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> </p>
<p>Thanks and Regards,</p>
<p>Jana</p>
<p> </p></span></font>