I have just verified. Call Waiting works fine with openzap @ rev 361 but it is not working with the latest openzap trunk @ rev 379.<br><br>-Irshad.<br><br><div class="gmail_quote">On Jan 25, 2008 4:00 PM, Irshad Ahamed &lt;
<a href="mailto:irshad.fswitch@gmail.com">irshad.fswitch@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>I am working on Freeswitch@ rev 7309. I remember with earlier revision call waiting was working fine. But now on getting the second incoming call FXS is returning 502 (BAD gateway error). Was there any change on FXS side pertaining to number of calls allowed or something???
<br><br>Freeswitch Log:<br><br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:144 switch_core_standard_on_execute() sofia/default/6502@192.168.2.51:5060 Execute set(dialed_ext=6601)<br>2008-01-25 15:48:17 [DEBUG] mod_dptools.c:442 set_function() SET [dialed_ext]=[6601]
<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:144 switch_core_standard_on_execute() sofia/default/6502@192.168.2.51:5060 Execute set(hangup_after_bridge=true)<br>2008-01-25 15:48:17 [DEBUG] mod_dptools.c:442 set_function() SET [hangup_after_bridge]=[true]
<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:144 switch_core_standard_on_execute() sofia/default/6502@192.168.2.51:5060 Execute set(bypass_media=false)<br>2008-01-25 15:48:17 [DEBUG] mod_dptools.c:442 set_function() SET [bypass_media]=[false]
<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:144 switch_core_standard_on_execute() sofia/default/6502@192.168.2.51:5060 Execute bridge(openzap/1/1)<br><span style="color: rgb(255, 0, 0);">2008-01-25 15:48:17 [ERR] mod_openzap.c:833 channel_outgoing_channel() No channels available
</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">2008-01-25 15:48:17 [ERR] switch_ivr_originate.c:827 switch_ivr_originate() Cannot Create Outgoing Channel! cause: DESTINATION_OUT_OF_ORDER</span>

<br style="color: rgb(255, 0, 0);">2008-01-25 15:48:17 [DEBUG] switch_ivr_originate.c:1226 switch_ivr_originate() Originate Resulted in Error Cause: 27 [DESTINATION_OUT_OF_ORDER]<br>2008-01-25 15:48:17 [INFO] mod_dptools.c:1325 audio_bridge_function() Originate Failed.&nbsp; Cause: DESTINATION_OUT_OF_ORDER
<br>2008-01-25 15:48:17 [NOTICE] mod_dptools.c:1352 audio_bridge_function() Hangup sofia/default/6502@192.168.2.51:5060 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER]<br>2008-01-25 15:48:17 [DEBUG] switch_channel.c:1317 switch_channel_perform_hangup() Kill 
sofia/default/6502@192.168.2.51:5060 [KILL]<br>2008-01-25 15:48:17 [DEBUG] switch_core_session.c:643 switch_core_session_signal_state_change() Kill sofia/default/6502@192.168.2.51:5060 [BREAK]<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:413 switch_core_session_run() 
sofia/default/6502@192.168.2.51:5060 Running State Change CS_HANGUP<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:439 switch_core_session_run() (sofia/default/6502@192.168.2.51:5060) State HANGUP<br>2008-01-25 15:48:17 [DEBUG] mod_sofia.c:299 sofia_on_hangup() Channel 
sofia/default/6502@192.168.2.51:5060 hanging up, cause: DESTINATION_OUT_OF_ORDER<br>2008-01-25 15:48:17 [DEBUG] mod_sofia.c:332 sofia_on_hangup() Responding to INVITE with: 502<br>2008-01-25 15:48:17 [DEBUG] sofia.c:183 sofia_event_callback() event [nua_i_state] status [502][Call state] session: 
sofia/default/6502@192.168.2.51:5060<br>2008-01-25 15:48:17 [DEBUG] sofia.c:1430 sofia_handle_sip_i_state() Channel sofia/default/6502@192.168.2.51:5060 entering state [terminated]<br>2008-01-25 15:48:17 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP 
sofia/default/6502@192.168.2.51:5060, cause: DESTINATION_OUT_OF_ORDER<br>2008-01-25 15:48:17 [DEBUG] switch_core_session.c:701 switch_core_session_thread() Session 3 (sofia/default/6502@192.168.2.51:5060) Locked, Waiting on external entities
<br>2008-01-25 15:48:17 [NOTICE] switch_core_session.c:707 switch_core_session_thread() Session 3 (sofia/default/6502@192.168.2.51:5060) Ended<br>2008-01-25 15:48:17 [NOTICE] switch_core_session.c:709 switch_core_session_thread() Close Channel 
sofia/default/6502@192.168.2.51:5060 [CS_HANGUP]<br>2008-01-25 15:48:36 [DEBUG] zap_analog.c:665 process_event() EVENT [ONHOOK][1:1] STATE [UP]<br>2008-01-25 15:48:36 [DEBUG] zap_analog.c:691 process_event() Changing state on 1:1 from UP to DOWN
<br>2008-01-25 15:48:36 [DEBUG] zap_analog.c:351 zap_analog_channel_run() Executing state handler on 1:1 for DOWN<br>2008-01-25 15:48:36 [DEBUG] mod_openzap.c:1037 on_fxs_signal() got FXS sig [STOP]<br>2008-01-25 15:48:36 [NOTICE] mod_openzap.c:1115 on_fxs_signal() Hangup OpenZAP/777 [CS_EXECUTE] [NORMAL_CLEARING]
<br>2008-01-25 15:48:36 [DEBUG] switch_channel.c:1317 switch_channel_perform_hangup() Kill OpenZAP/777 [KILL]<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:643 switch_core_session_signal_state_change() Kill OpenZAP/777 [BREAK]
<br>2008-01-25 15:48:36 [DEBUG] zap_analog.c:649 zap_analog_channel_run() ANALOG CHANNEL thread ended.<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:186 audio_bridge_thread() read: OpenZAP/777 Bad Frame.... Bubye!<br>

2008-01-25 15:48:36 [DEBUG] switch_core_session.c:358 switch_core_session_receive_message() Kill OpenZAP/777 [BREAK]<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:224 audio_bridge_thread() Kill <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">

sofia/default/777@sipx.oneconv.com</a> [BREAK]<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:227 audio_bridge_thread() BRIDGE THREAD DONE [OpenZAP/777]<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:693 switch_ivr_multi_threaded_bridge() 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> State Change CS_LOOPBACK -&gt; CS_RESET<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:643 switch_core_session_signal_state_change() Kill 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> [BREAK]<br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:413 switch_core_session_run() OpenZAP/777 Running State Change CS_HANGUP
<br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:439 switch_core_session_run() (OpenZAP/777) State HANGUP<br>2008-01-25 15:48:36 [DEBUG] mod_openzap.c:418 channel_on_hangup() OpenZAP/777 CHANNEL HANGUP<br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP OpenZAP/777, cause: NORMAL_CLEARING
<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:701 switch_core_session_thread() Session 1 (OpenZAP/777) Locked, Waiting on external entities<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:180 audio_bridge_thread() write: OpenZAP/777 Bad Frame....[160] Bubye!
<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:358 switch_core_session_receive_message() Kill <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> [BREAK]<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:224 audio_bridge_thread() Kill OpenZAP/777 [BREAK]
<br>2008-01-25 15:48:36 [DEBUG] switch_ivr_bridge.c:227 audio_bridge_thread() BRIDGE THREAD DONE [<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a>]<br>2008-01-25 15:48:36 [NOTICE] switch_ivr_bridge.c:257 audio_bridge_on_loopback() Hangup 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> [CS_RESET] [NORMAL_CLEARING]<br>2008-01-25 15:48:36 [NOTICE] switch_core_session.c:707 switch_core_session_thread() Session 1 (OpenZAP/777) Ended
<br>2008-01-25 15:48:36 [NOTICE] switch_core_session.c:709 switch_core_session_thread() Close Channel OpenZAP/777 [CS_HANGUP]<br>2008-01-25 15:48:36 [DEBUG] switch_channel.c:1317 switch_channel_perform_hangup() Kill <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">

sofia/default/777@sipx.oneconv.com</a> [KILL]<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:643 switch_core_session_signal_state_change() Kill <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com
</a> [BREAK]<br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:413 switch_core_session_run() <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> Running State Change CS_HANGUP
<br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:439 switch_core_session_run() (<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a>) State HANGUP<br>2008-01-25 15:48:36 [DEBUG] mod_sofia.c:299 sofia_on_hangup() Channel 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> hanging up, cause: NORMAL_CLEARING<br>2008-01-25 15:48:36 [DEBUG] mod_sofia.c:325 sofia_on_hangup() Sending BYE to 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">
sofia/default/777@sipx.oneconv.com</a><br>2008-01-25 15:48:36 [DEBUG] switch_core_state_machine.c:45 switch_core_standard_on_hangup() Standard HANGUP <a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com
</a>, cause: NORMAL_CLEARING<br>2008-01-25 15:48:36 [DEBUG] switch_core_session.c:701 switch_core_session_thread() Session 2 (<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com
</a>) Locked, Waiting on external entities
<br>2008-01-25 15:48:36 [NOTICE] switch_core_session.c:707 switch_core_session_thread() Session 2 (<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a>) Ended<br>2008-01-25 15:48:36 [NOTICE] switch_core_session.c:709 switch_core_session_thread() Close Channel 
<a href="mailto:sofia/default/777@sipx.oneconv.com" target="_blank">sofia/default/777@sipx.oneconv.com</a> [CS_HANGUP]<br><br><br><br>Thanks in advance...<br><br>BR,<br><font color="#888888">Irshad.<br>
</font></blockquote></div><br>