<div dir="ltr">I think there is an uninitialized member in the c++ class that makes the autoHangup flag set when it shouldnt be.<br>you can fix it in your lua by doing session:setAutoHangup(false)<br>or if you update to latest trunk it should be ok.<br>
<br><br><div class="gmail_quote">On Thu, Oct 9, 2008 at 3:43 AM, Mikael A. Bjerkeland <span dir="ltr"><<a href="mailto:mikael@bjerkeland.com">mikael@bjerkeland.com</a>></span> 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>
<br>
when using the hangup and answer hooks a call *sometimes* ends<br>
prematurely. This happens about 1 of 10 times regardless of phone type<br>
and number dialled.<br>
<br>
The logs show nothing strange as you can see below. The only thing I see<br>
is that the call is hung up and that everything happens in the same<br>
second. Removing the hooks solves the issue.<br>
<br>
<br>
Logs:<br>
<br>
FreeSWITCH>2008-10-09 10:35:53 [NOTICE] switch_channel.c:552<br>
switch_channel_set_name() New Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
[48ca287c-95dd-11dd-868f-bf36e200c978]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_NEW<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:371<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State NEW<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2257 sofia_handle_sip_i_state()<br>
Channel sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> entering state<br>
[received]<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2261 sofia_handle_sip_i_state()<br>
Remote SDP:<br>
v=0<br>
o=- 1223463186 1223463186 IN IP4 <a href="http://192.168.1.190" target="_blank">192.168.1.190</a><br>
s=Polycom IP Phone<br>
c=IN IP4 <a href="http://192.168.1.190" target="_blank">192.168.1.190</a><br>
t=0 0<br>
a=sendrecv<br>
m=audio 2242 RTP/AVP 8 0 18 101<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:18 G729/8000<br>
a=fmtp:18 annexb=no<br>
a=rtpmap:101 telephone-event/8000<br>
<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2353 sofia_glue_negotiate_sdp()<br>
Audio Codec Compare [PCMA:8:8000]/[G722:9:8000]<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2353 sofia_glue_negotiate_sdp()<br>
Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000]<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:1562<br>
sofia_glue_tech_set_codec() Set Codec<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> PCMA/8000 20 ms 160 samples<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2317 sofia_glue_negotiate_sdp()<br>
Set 2833 dtmf payload to 101<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2402 sofia_handle_sip_i_state()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_NEW -><br>
CS_INIT<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_INIT<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:417<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State INIT<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:80 sofia_on_init()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA INIT<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:107 sofia_on_init()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_INIT -><br>
CS_ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:417<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State INIT going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:422<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State ROUTING<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:121 sofia_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:64<br>
switch_core_standard_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard ROUTING<br>
2008-10-09 10:35:53 [INFO] mod_dialplan_xml.c:232 dialplan_hunt()<br>
Processing polycom501->198 in context default<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:97<br>
switch_core_standard_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_ROUTING -><br>
CS_EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:422<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State ROUTING going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:432<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:164 sofia_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:129<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute respond(407)<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:1030 sofia_receive_message()<br>
Challenging call <a href="mailto:198@fs.voip.domain.com">198@fs.voip.domain.com</a><br>
2008-10-09 10:35:53 [NOTICE] mod_sofia.c:1032 sofia_receive_message()<br>
Hangup sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [CS_EXECUTE]<br>
[USER_CHALLENGE]<br>
2008-10-09 10:35:53 [DEBUG] switch_channel.c:1434<br>
switch_channel_perform_hangup() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [KILL]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:200 sofia_event_callback() event<br>
[nua_i_state] status [407][Proxy Authentication Required] session:<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:435<br>
switch_core_session_receive_message() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:208 sofia_event_callback() Channel<br>
is already hungup.<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:200 sofia_event_callback() event<br>
[nua_i_terminated] status [407][Proxy Authentication Required] session:<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
2008-10-09 10:35:53 [DEBUG] sofia.c:208 sofia_event_callback() Channel<br>
is already hungup.<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:432<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State EXECUTE going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_HANGUP<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:395<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State HANGUP<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:272 sofia_on_hangup() Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> hanging up, cause:<br>
USER_CHALLENGE<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:346 sofia_on_hangup() Responding<br>
to INVITE with: 480<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:200 sofia_event_callback() event<br>
[nua_i_error] status [500][Responding to a Non-Existing Request]<br>
session: n/a<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:46<br>
switch_core_standard_on_hangup()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard HANGUP, cause:<br>
USER_CHALLENGE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:395<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State HANGUP going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:815<br>
switch_core_session_thread() Session 69<br>
(sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>) Locked, Waiting on<br>
external entities<br>
2008-10-09 10:35:53 [NOTICE] switch_core_session.c:833<br>
switch_core_session_thread() Session 69<br>
(sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>) Ended<br>
2008-10-09 10:35:53 [NOTICE] switch_core_session.c:835<br>
switch_core_session_thread() Close Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [CS_HANGUP]<br>
2008-10-09 10:35:53 [NOTICE] switch_channel.c:552<br>
switch_channel_set_name() New Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
[48e48e06-95dd-11dd-868f-bf36e200c978]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_NEW<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:371<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State NEW<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2257 sofia_handle_sip_i_state()<br>
Channel sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> entering state<br>
[received]<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2261 sofia_handle_sip_i_state()<br>
Remote SDP:<br>
v=0<br>
o=- 1223463186 1223463186 IN IP4 <a href="http://192.168.1.190" target="_blank">192.168.1.190</a><br>
s=Polycom IP Phone<br>
c=IN IP4 <a href="http://192.168.1.190" target="_blank">192.168.1.190</a><br>
t=0 0<br>
a=sendrecv<br>
m=audio 2242 RTP/AVP 8 0 18 101<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:0 PCMU/8000<br>
a=rtpmap:18 G729/8000<br>
a=fmtp:18 annexb=no<br>
a=rtpmap:101 telephone-event/8000<br>
<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2353 sofia_glue_negotiate_sdp()<br>
Audio Codec Compare [PCMA:8:8000]/[G722:9:8000]<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2353 sofia_glue_negotiate_sdp()<br>
Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000]<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:1562<br>
sofia_glue_tech_set_codec() Set Codec<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> PCMA/8000 20 ms 160 samples<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:2317 sofia_glue_negotiate_sdp()<br>
Set 2833 dtmf payload to 101<br>
2008-10-09 10:35:53 [DEBUG] sofia.c:2402 sofia_handle_sip_i_state()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_NEW -><br>
CS_INIT<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_INIT<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:417<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State INIT<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:80 sofia_on_init()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA INIT<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:107 sofia_on_init()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_INIT -><br>
CS_ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:417<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State INIT going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:422<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State ROUTING<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:121 sofia_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA ROUTING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:64<br>
switch_core_standard_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard ROUTING<br>
2008-10-09 10:35:53 [INFO] mod_dialplan_xml.c:232 dialplan_hunt()<br>
Processing polycom501->198 in context default<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:97<br>
switch_core_standard_on_routing()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> State Change CS_ROUTING -><br>
CS_EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:422<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State ROUTING going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:432<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:164 sofia_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> SOFIA EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:129<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard EXECUTE<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute<br>
set(destination_number_normalized=47198)<br>
2008-10-09 10:35:53 [DEBUG] mod_dptools.c:703 set_function() SET<br>
[destination_number_normalized]=[47198]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute<br>
set(destination_number_type=special_number)<br>
2008-10-09 10:35:53 [DEBUG] mod_dptools.c:703 set_function() SET<br>
[destination_number_type]=[special_number]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute<br>
set(execute_on_answer=lua fire_channel_answered_event.lua)<br>
2008-10-09 10:35:53 [DEBUG] mod_dptools.c:703 set_function() SET<br>
[execute_on_answer]=[lua fire_channel_answered_event.lua]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute<br>
set(api_hangup_hook=lua fire_channel_hangup_event.lua ${uuid})<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:1080<br>
switch_core_session_execute_application()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Expanded String<br>
set(api_hangup_hook=lua fire_channel_hangup_event.lua<br>
48e48e06-95dd-11dd-868f-bf36e200c978)<br>
2008-10-09 10:35:53 [DEBUG] mod_dptools.c:703 set_function() SET<br>
[api_hangup_hook]=[lua fire_channel_hangup_event.lua<br>
48e48e06-95dd-11dd-868f-bf36e200c978]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:144<br>
switch_core_standard_on_execute()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Execute<br>
javascript(ps_pizza.js)<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:1779 sofia_glue_activate_rtp()<br>
AUDIO RTP [sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>] <a href="http://10.100.4.192" target="_blank">10.100.4.192</a><br>
port 58534 -> <a href="http://192.168.1.190" target="_blank">192.168.1.190</a> port 2242 codec: 8 ms: 20<br>
2008-10-09 10:35:53 [DEBUG] switch_rtp.c:833 switch_rtp_create()<br>
Starting timer [soft] 160 bytes per 20000ms<br>
2008-10-09 10:35:53 [DEBUG] sofia_glue.c:1949 sofia_glue_activate_rtp()<br>
Set comfort noise payload to 13<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:446 sofia_answer_channel() Local<br>
SDP sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>:<br>
v=0<br>
o=FreeSWITCH 1223482819 1223482820 IN IP4 <a href="http://10.100.4.192" target="_blank">10.100.4.192</a><br>
s=FreeSWITCH<br>
c=IN IP4 <a href="http://10.100.4.192" target="_blank">10.100.4.192</a><br>
t=0 0<br>
a=sendrecv<br>
m=audio 58534 RTP/AVP 8 101 13<br>
a=rtpmap:8 PCMA/8000<br>
a=rtpmap:101 telephone-event/8000<br>
a=fmtp:101 0-16<br>
a=rtpmap:13 CN/8000<br>
a=ptime:20<br>
<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:435<br>
switch_core_session_receive_message() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [NOTICE] mod_spidermonkey.c:2034 session_answer()<br>
Channel [sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>] has been answered<br>
2008-10-09 10:35:53 [DEBUG] switch_channel.c:1658<br>
switch_channel_perform_mark_answered()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> execute on answer:<br>
lua(fire_channel_answered_event.lua)2008-10-09 10:35:53 [DEBUG]<br>
sofia.c:2257 sofia_handle_sip_i_state() Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> entering state [completed]<br>
2008-10-09 10:35:53 [INFO] switch_cpp.cpp:1090 console_log() Firing a<br>
CUSTOM event with subclass call::startmonitor...<br>
2008-10-09 10:35:53 [INFO] switch_cpp.cpp:1090 console_log() Channel<br>
answered event fired.<br>
2008-10-09 10:35:53 [DEBUG] switch_cpp.cpp:881 destroy() destroy/unlink<br>
session from object<br>
2008-10-09 10:35:53 [NOTICE] switch_cpp.cpp:883 destroy() Hangup<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [CS_EXECUTE]<br>
[NORMAL_CLEARING]<br>
2008-10-09 10:35:53 [DEBUG] switch_channel.c:1434<br>
switch_channel_perform_hangup() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [KILL]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:727<br>
switch_core_session_signal_state_change() Send signal<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [BREAK]<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:432<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State EXECUTE going to sleep<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:367<br>
switch_core_session_run() sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
Running State Change CS_HANGUP<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:395<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State HANGUP<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:272 sofia_on_hangup() Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> hanging up, cause:<br>
NORMAL_CLEARING<br>
2008-10-09 10:35:53 [DEBUG] mod_sofia.c:329 sofia_on_hangup() Sending<br>
BYE to sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a><br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:46<br>
switch_core_standard_on_hangup()<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> Standard HANGUP, cause:<br>
NORMAL_CLEARING<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:395<br>
switch_core_session_run() (sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>)<br>
State HANGUP going to sleep<br>
2008-10-09 10:35:53 [INFO] switch_cpp.cpp:1090 console_log() Firing a<br>
CUSTOM event with subclass call::stopmonitor...<br>
2008-10-09 10:35:53 [INFO] switch_cpp.cpp:1090 console_log() Channel<br>
hangup event fired.<br>
2008-10-09 10:35:53 [DEBUG] switch_cpp.cpp:881 destroy() destroy/unlink<br>
session from object<br>
2008-10-09 10:35:53 [DEBUG] switch_core_state_machine.c:409<br>
switch_core_session_run() Hangup Command<br>
lua(fire_channel_hangup_event.lua 48e48e06-95dd-11dd-868f-bf36e200c978):<br>
<br>
2008-10-09 10:35:53 [DEBUG] switch_core_session.c:815<br>
switch_core_session_thread() Session 70<br>
(sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>) Locked, Waiting on<br>
external entities<br>
2008-10-09 10:35:53 [NOTICE] switch_core_session.c:833<br>
switch_core_session_thread() Session 70<br>
(sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a>) Ended<br>
2008-10-09 10:35:53 [NOTICE] switch_core_session.c:835<br>
switch_core_session_thread() Close Channel<br>
sofia/internal/<a href="mailto:polycom501@fs.voip.domain.com">polycom501@fs.voip.domain.com</a> [CS_HANGUP]<br>
<br>
<br>
The dialplan:<br>
<document type="freeswitch/xml"><br>
<section name="dialplan" description="special_number Dialplan for 47196<br>
(196)"><br>
<context name="default"><br>
<extension name="test"><br>
<condition><br>
<action application="set" data="destination_number_normalized=47196"/><br>
<action application="set"<br>
data="destination_number_type=special_number"/><br>
<action application="set" data="execute_on_answer=lua<br>
fire_channel_answered_event.lua"/><br>
<action application="set" data="api_hangup_hook=lua<br>
fire_channel_hangup_event.lua ${uuid}"/><br>
<action application="answer" data=""/><br>
<action application="playback" data="$${hold_music}"/><br>
</condition><br>
</extension><br>
</context><br>
</section><br>
</document><br>
<br>
<br>
<br>
_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>