<br>why "on_my_hangup" is not called ?<br><br><br>static switch_status_t on_my_hangup(switch_core_session_t *session){<br> PTRACE(4, "mod_h323\t======>switch_status_t on_my_hangup ");<br> switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "KABUM => entering on_my_hangup\n");<br>
<br> switch_channel_t *channel = switch_core_session_get_channel(session);<br> h323_private_t *tech_pvt = (h323_private_t *) switch_core_session_get_private(session);<br> if (tech_pvt->me) {<br> PTRACE(4, "mod_h323\t----->");<br>
Q931::CauseValues cause = (Q931::CauseValues)switch_channel_get_cause_q850(channel);<br> tech_pvt->me->SetQ931Cause(cause);<br> tech_pvt->me->ClearCallSynchronous(NULL, H323TranslateToCallEndReason(cause, UINT_MAX));<br>
tech_pvt->me = NULL;<br> }<br><br> return SWITCH_STATUS_SUCCESS;<br>}<br><br><br>//static switch_status_t on_my_hangup(switch_core_session_t *session);<br>static switch_status_t on_destroy(switch_core_session_t *session);<br>
<br><br>static switch_io_routines_t h323fs_io_routines = {<br> /*.outgoing_channel */ create_outgoing_channel,<br> /*.read_frame */ FSH323Connection::read_audio_frame,<br> /*.write_frame */ FSH323Connection::write_audio_frame,<br>
/*.kill_channel */ FSH323Connection::kill_channel,<br> /*.send_dtmf */ FSH323Connection::send_dtmf,<br> /*.receive_message */ FSH323Connection::receive_message,<br> /*.receive_event */ FSH323Connection::receive_event,<br>
/*.state_change */ FSH323Connection::state_change,<br> /*.read_video_frame */ FSH323Connection::read_video_frame,<br> /*.write_video_frame */ FSH323Connection::write_video_frame<br>};<br><br>static switch_state_handler_table_t h323fs_event_handlers = {<br>
/*.on_init */ FSH323Connection::on_init,<br> /*.on_routing */ FSH323Connection::on_routing,<br> /*.on_execute */ FSH323Connection::on_execute,<br> <span style="background-color: rgb(255, 255, 0);">/*.on_hangup */ on_my_hangup,</span><br>
/*.on_exchange_media */ FSH323Connection::on_exchange_media,<br> /*.on_soft_execute */ FSH323Connection::on_soft_execute,<br> /*.on_consume_media*/ NULL,<br> /*.on_hibernate*/ NULL,<br> /*.on_reset*/ NULL,<br>
/*.on_park*/ NULL,<br> /*.on_reporting*/ NULL,<br> /*.on_destroy*/ on_destroy<br>};<br><br><br><br> }<br>2009-10-21 18:12:28.659411 [DEBUG] h323.cxx:4138 InternalEstablishedConnectionCheck: connectionState=HasExecutedSignalConnect fastStartState=FastStartAcknowledged<br>
2009-10-21 18:12:28.659411 [DEBUG] mod_h323.cpp:821 ======>PFSH323Connection::OnEstablished [FSH323Connection]<br>2009-10-21 18:12:28.660476 [NOTICE] mod_h323.cpp:823 Channel [h323/1001] has been answered<br>2009-10-21 18:12:28.660476 [DEBUG] switch_channel.c:182 h323/1001 receive message [AUDIO_SYNC]<br>
2009-10-21 18:12:28.660476 [DEBUG] mod_h323.cpp:907 ======>FSH323Connection::receive_message MSG=20<br>2009-10-21 18:12:28.660476 [DEBUG] mod_h323.cpp:964 Received message 20 on connection FSH323Connection<br>2009-10-21 18:12:28.660476 [DEBUG] mod_h323.cpp:952 Media started on connection FSH323Connection<br>
2009-10-21 18:12:30.795292 [NOTICE] sofia.c:322 Hangup sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [CS_CONSUME_MEDIA] [NORMAL_CLEARING]<br>2009-10-21 18:12:30.795292 [DEBUG] switch_channel.c:1683 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [KILL]<br>
2009-10-21 18:12:30.795292 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [BREAK]<br>2009-10-21 18:12:30.797481 [DEBUG] switch_core_state_machine.c:503 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State CONSUME_MEDIA going to sleep<br>
2009-10-21 18:12:30.797481 [DEBUG] switch_core_state_machine.c:398 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Running State Change CS_HANGUP<br>2009-10-21 18:12:30.797481 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State HANGUP<br>
2009-10-21 18:12:30.797481 [DEBUG] mod_sofia.c:338 Channel sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> hanging up, cause: NORMAL_CLEARING<br>2009-10-21 18:12:30.797481 [DEBUG] switch_core_state_machine.c:46 sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> Standard HANGUP, cause: NORMAL_CLEARING<br>
2009-10-21 18:12:30.797481 [DEBUG] switch_core_state_machine.c:434 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State HANGUP going to sleep<br>2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:476 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State Change CS_HANGUP -> CS_REPORTING<br>
2009-10-21 18:12:30.798570 [DEBUG] switch_core_session.c:932 Send signal sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> [BREAK]<br>2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:398 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Running State Change CS_REPORTING<br>
2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:612 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State REPORTING<br>2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:53 sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a> Standard REPORTING, cause: NORMAL_CLEARING<br>
2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:612 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State REPORTING going to sleep<br>2009-10-21 18:12:30.798570 [DEBUG] switch_core_state_machine.c:411 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) State Change CS_REPORTING -> CS_DESTROY<br>
2009-10-21 18:12:30.798570 [DEBUG] switch_core_session.c:1068 Session 2 (sofia/internal/<a href="mailto:sip%3A1001@10.4.62.89">sip:1001@10.4.62.89</a>) Locked, Waiting on external entities<br>2009-10-21 18:13:04.243274 [DEBUG] h323pdu.cxx:609 Receiving PDU [ip$<a href="http://10.4.62.7:1720/ip$10.4.62.31:48729">10.4.62.7:1720/ip$10.4.62.31:48729</a>] :<br>
<br><br><br><br><br>