Problem with originated calls hanging in CS_SOFT_EXEC state
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); 2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,, 1 total. 2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels 0 total. var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); 2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,, 1 total. 2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels 0 total.
Sorry for the excessive logs. Here is my call to originate. var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); My hangup callback is getting hit and I am destroying the session 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 This is the only call on the system as it is a develpment machine and I see the call state being changed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed. Thanks! Phillip
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job. _____ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,, freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1 -ERR No Such Channel! I am calling this from "managed CustomModule.Api" Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ())); // this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); } Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000 use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n"); The part I am concerned with is when you call destroy you dont see the log line you should: switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); This makes me wonder if you are some older version... On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Sorry Yes using the latest. Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500 Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n"); if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n"); channel = switch_core_session_get_channel(session); } if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); } [CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities channel remains hung P On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 rebuild and get a full log of the call look for sign of unhandled rwlock and put this on jira why I am i helping you over ml .... >=0 On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 I am getting this error now. 2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock** Thoughts? Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
now that you have a jira do not continue this thread it doubles the work effort, see comments there On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Sorry for the delay in the JIRA. I missed the last email before going on holiday. Regards, Phillip On Sep 4, 2012, at 1:37 PM, Anthony Minessale wrote:
now that you have a jira do not continue this thread it doubles the work effort, see comments there
On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: > Sorry for the excessive logs. Here is my call to originate. > > var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) > => { > try { > Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); > y.SetAutoHangup(true); > y.destroy(); > > } catch( Exception ) { > Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); > } > }); > > > My hangup callback is getting hit and I am destroying the session > > 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: > e315f2e8-1fa8-4fd9-849b-f687dad8aed5 > > This is the only call on the system as it is a develpment machine and I > see > the call state being changed. > > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 > sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 > (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 > (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY > > > If I call show channels after the above output it show there is a session > sitting in CS_SOFT_EXEC corresponding to UUID > e315f2e8-1fa8-4fd9-849b-f687dad8aed5. > Is there something else I need to do to release the lock on this session > to > let the resources be reclaimed. > > Thanks! > > Phillip > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options: For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or: For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK. Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg. _____ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 11:37:54 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state now that you have a jira do not continue this thread it doubles the work effort, see comments there On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Listen to Dave. I fixed the lock leak, it was down deep into code I am not sure is ever used. You want to be careful with what you do especially since you are on linux which means you must be using Mono which I am also not sure is used a lot. On Tue, Sep 4, 2012 at 2:08 PM, Dave R. Kompel <drk@drkngs.net> wrote:
This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options:
For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or:
For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK.
Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 11:37:54 -0700
Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
now that you have a jira do not continue this thread it doubles the work effort, see comments there
On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31
11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: > Sorry for the excessive logs. Here is my call to originate. > > var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, > (y) > => { > try { > Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); > y.SetAutoHangup(true); > y.destroy(); > > } catch( Exception ) { > Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); > } > }); > > > My hangup callback is getting hit and I am destroying the session > > 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: > e315f2e8-1fa8-4fd9-849b-f687dad8aed5 > > This is the only call on the system as it is a develpment machine and > I > see > the call state being changed. > > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 > sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 > (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep > 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 > (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY > > > If I call show channels after the above output it show there is a > session > sitting in CS_SOFT_EXEC corresponding to UUID > e315f2e8-1fa8-4fd9-849b-f687dad8aed5. > Is there something else I need to do to release the lock on this > session > to > let the resources be reclaimed. > > Thanks! > > Phillip > > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
Thanks Anthony! I found the ManageSession methods by looking at the code that is exposed via swig. Using "execute_on_*" hooks seems to be the proper procedure, it needs to be documented on the wiki. There is virtually no documentation to originate a call for mod managed on the wiki. I will correct that if I can get wiki access. I will illustrate your solution using "execute_on_originate" as the preferred solution. There are also several "execute_on_*" hooks that would work. Should ManagedSession.OriginateHandleHangup and .Originate() methods be deprecated to discourage their use in further releases? Or at least some comments in the code that point people to look at execute_on directives. Does Java have this same issue? Anthony,Glad I found a bug by doing the wrong thing.... sorry for making work for ya! I cannot say enough about how responsive Anthony and the community has been about this issue. THANKS! On Sep 4, 2012, at 3:10 PM, Anthony Minessale wrote:
Listen to Dave. I fixed the lock leak, it was down deep into code I am not sure is ever used. You want to be careful with what you do especially since you are on linux which means you must be using Mono which I am also not sure is used a lot.
On Tue, Sep 4, 2012 at 2:08 PM, Dave R. Kompel <drk@drkngs.net> wrote:
This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options:
For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or:
For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK.
Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 11:37:54 -0700
Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
now that you have a jira do not continue this thread it doubles the work effort, see comments there
On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: > var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, > (y) > => { > try { > Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); > y.SetAutoHangup(true); > y.flushDigits(); > y.flushEvents(); > y.destroy(); > y.Dispose(); > GC.Collect(); > } catch( Exception ) { > Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); > } > }); > Changes yield no fix. Neither .Dispose() or .destroy() separately or > together destroy the channel. I see in the log the hangup > 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show > channels. > The last log lines of the debug is: > 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 > (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY > 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send > signal > sofia/external/XXXXXXXXXX [BREAK] > 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session > 1 > (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities > > > freeswitch@fs03.int.colo> show channels > 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 > > 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound > Call,12146635351,,,, > > freeswitch@fs03.int.colo> uuid_kill > 11da29f3-2d9e-4b74-a439-a96ba60f2db1 > > -ERR No Such Channel! > > I am calling this from "managed CustomModule.Api" > > Calling GC.Collect() later in the execution does not resolve either. > //------------------------------------------------------ > // Entrypoint for blocking API execution > //------------------------------------------------------ > public void Execute (ApiContext context) { > context.Arguments, context.Event == null ? "<none>" : > context.Event.GetEventType ())); > > // this contains the above code > Run(ParseArguments(context.Arguments)); > GC.Collect(); > } > > Thanks! > Suggestions appreciated. > On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote: > > Actually, all the managed objects are derived from IDisposable, so you > should use the .Dispose() method, and let the wrapper do it's job. > > ________________________________ > From: Anthony Minessale [mailto:anthony.minessale@gmail.com] > To: FreeSWITCH Users Help > [mailto:freeswitch-users@lists.freeswitch.org] > Sent: Thu, 30 Aug 2012 13:48:07 -0700 > Subject: Re: [Freeswitch-users] Problem with originated calls hanging > in > CS_SOFT_EXEC state > > destroy method should have a log line about (destroy/unlink session > from > object) > try calling your garbage collector, this is common issue with scripts > and make sure you are on latest GIT build > > > On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles > <freeswitch-users@vocalspace.com> wrote: >> Sorry for the excessive logs. Here is my call to originate. >> >> var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, >> (y) >> => { >> try { >> Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); >> y.SetAutoHangup(true); >> y.destroy(); >> >> } catch( Exception ) { >> Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); >> } >> }); >> >> >> My hangup callback is getting hit and I am destroying the session >> >> 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: >> e315f2e8-1fa8-4fd9-849b-f687dad8aed5 >> >> This is the only call on the system as it is a develpment machine and >> I >> see >> the call state being changed. >> >> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 >> sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING >> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 >> (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep >> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 >> (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY >> >> >> If I call show channels after the above output it show there is a >> session >> sitting in CS_SOFT_EXEC corresponding to UUID >> e315f2e8-1fa8-4fd9-849b-f687dad8aed5. >> Is there something else I need to do to release the lock on this >> session >> to >> let the resources be reclaimed. >> >> Thanks! >> >> Phillip >> >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale@hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org > googletalk:conf+888@conference.freeswitch.org > pstn:+19193869900 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, Sep 4, 2012 at 1:35 PM, Phillip Boles < freeswitch-users@vocalspace.com> wrote:
Thanks Anthony! I found the ManageSession methods by looking at the code that is exposed via swig.
Using "execute_on_*" hooks seems to be the proper procedure, it needs to be documented on the wiki. There is virtually no documentation to originate a call for mod managed on the wiki. I will correct that if I can get wiki access.
Visit this page: http://wiki.freeswitch.org/wiki/Special:RequestAccount As soon as you request wiki access then I or one of the other Wiki admins will approve you. Once you have a wiki account then you can pretty much edit anything you want! -MC
Yes, they should be deprecated. Mod_managed has changed a lot over the years, and a lot of those things are still left over from the days when it was either single app domain, or there were no other for controling or collecting data form outbound legs. One of the things i forgot to mention in my last reply, that is if you want to control an outbound legs completly form managed code, using the session object it is a lot easier to just do "Session.ExecuteString("originate channel/params &managed(yourclassname")". Then you can handle it just like at was an inbound call, and not even worry about clean-up. The places you may want to use the hooks are for applications where you need to originate a call from API or other context, not actually have to control the call via managed code, but need to know about the outbound leg (execute_on_originate) where you can stash UUID, and other information about the leg, or get easy notification of call being answered/terminated (api_on_answer,api_hangup_hook). With both of these API hooks, set in the "originate" api call, you can also pass variable arguments that are expanded when they are executed {origination_nested_vars=true}. Does anyone know if that is documented on the wiki? I can't find it. --Dave _____ From: Phillip Boles [mailto:freeswitch-users@vocalspace.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 13:35:47 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state Thanks Anthony! I found the ManageSession methods by looking at the code that is exposed via swig. Using "execute_on_*" hooks seems to be the proper procedure, it needs to be documented on the wiki. There is virtually no documentation to originate a call for mod managed on the wiki. I will correct that if I can get wiki access. I will illustrate your solution using "execute_on_originate" as the preferred solution. There are also several "execute_on_*" hooks that would work. Should ManagedSession.OriginateHandleHangup and .Originate() methods be deprecated to discourage their use in further releases? Or at least some comments in the code that point people to look at execute_on directives. Does Java have this same issue? Anthony,Glad I found a bug by doing the wrong thing.... sorry for making work for ya! I cannot say enough about how responsive Anthony and the community has been about this issue. THANKS! On Sep 4, 2012, at 3:10 PM, Anthony Minessale wrote: Listen to Dave. I fixed the lock leak, it was down deep into code I am not sure is ever used. You want to be careful with what you do especially since you are on linux which means you must be using Mono which I am also not sure is used a lot. On Tue, Sep 4, 2012 at 2:08 PM, Dave R. Kompel <drk@drkngs.net> wrote: This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options: For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or: For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK. Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg. ________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 11:37:54 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state now that you have a jira do not continue this thread it doubles the work effort, see comments there On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 I am getting this error now. 2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock** Thoughts? Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote: add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 rebuild and get a full log of the call look for sign of unhandled rwlock and put this on jira why I am i helping you over ml .... >=0 On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: Sorry Yes using the latest. Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500 Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n"); if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n"); channel = switch_core_session_get_channel(session); } if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); } [CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities channel remains hung P On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote: 1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000 use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n"); The part I am concerned with is when you call destroy you dont see the log line you should: switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); This makes me wonder if you are some older version... On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,, freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1 -ERR No Such Channel! I am calling this from "managed CustomModule.Api" Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ())); // this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); } Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote: Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job. ________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote: Sorry for the excessive logs. Here is my call to originate. var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); My hangup callback is getting hit and I am destroying the session 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 This is the only call on the system as it is a develpment machine and I see the call state being changed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed. Thanks! Phillip _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I see. It would seem since the whole project compiles in VS2008 & VS2010 that there would be more mod_managed users. Javascript/Lua seem to be the front runners for scripting and in general they should be the choice. Our particular spec requires real time interaction with web servers using socket.io. Neither of these languages made it easy to watch calls except through ESL knowing the UUID. We wanted to throw events directly from the code to a Message Queue server and deal only with what we want. Mono/C# got selected since we already have a very extensive custom module built on it by another developer in our shop. I will try to write docs for the project since I will be doing more than the average bear with mod_managed. Any doc ideas you or anyone else has shoot them over and I will try to make examples and docs. I also would appreciate if you would not mind me hitting you up to proof read my wiki entries for accuracy once they are done. Phillip On Sep 4, 2012, at 4:14 PM, Dave R. Kompel wrote:
Yes, they should be deprecated. Mod_managed has changed a lot over the years, and a lot of those things are still left over from the days when it was either single app domain, or there were no other for controling or collecting data form outbound legs.
One of the things i forgot to mention in my last reply, that is if you want to control an outbound legs completly form managed code, using the session object it is a lot easier to just do "Session.ExecuteString("originate channel/params &managed(yourclassname")". Then you can handle it just like at was an inbound call, and not even worry about clean-up.
The places you may want to use the hooks are for applications where you need to originate a call from API or other context, not actually have to control the call via managed code, but need to know about the outbound leg (execute_on_originate) where you can stash UUID, and other information about the leg, or get easy notification of call being answered/terminated (api_on_answer,api_hangup_hook). With both of these API hooks, set in the "originate" api call, you can also pass variable arguments that are expanded when they are executed {origination_nested_vars=true}. Does anyone know if that is documented on the wiki? I can't find it.
--Dave
From: Phillip Boles [mailto:freeswitch-users@vocalspace.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 13:35:47 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
Thanks Anthony! I found the ManageSession methods by looking at the code that is exposed via swig.
Using "execute_on_*" hooks seems to be the proper procedure, it needs to be documented on the wiki. There is virtually no documentation to originate a call for mod managed on the wiki. I will correct that if I can get wiki access.
I will illustrate your solution using "execute_on_originate" as the preferred solution. There are also several "execute_on_*" hooks that would work.
Should ManagedSession.OriginateHandleHangup and .Originate() methods be deprecated to discourage their use in further releases? Or at least some comments in the code that point people to look at execute_on directives. Does Java have this same issue?
Anthony,Glad I found a bug by doing the wrong thing.... sorry for making work for ya!
I cannot say enough about how responsive Anthony and the community has been about this issue. THANKS!
On Sep 4, 2012, at 3:10 PM, Anthony Minessale wrote:
Listen to Dave. I fixed the lock leak, it was down deep into code I am not sure is ever used. You want to be careful with what you do especially since you are on linux which means you must be using Mono which I am also not sure is used a lot.
On Tue, Sep 4, 2012 at 2:08 PM, Dave R. Kompel <drk@drkngs.net> wrote:
This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options:
For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or:
For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK.
Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Tue, 04 Sep 2012 11:37:54 -0700
Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
now that you have a jira do not continue this thread it doubles the work effort, see comments there
On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
I am getting this error now.
2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock**
Thoughts?
Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote:
add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1
rebuild and get a full log of the call look for sign of unhandled rwlock
and put this on jira why I am i helping you over ml .... >=0
On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
> 1) You did not answer the question if you are on latest GIT HEAD. If > you are on anything else update... > 2) Add some debugging to switch_cpp.cpp about line 1000 > > use lines like this to follow the code paths when you call destroy > switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n"); > > The part I am concerned with is when you call destroy you dont see the > log line you should: > > switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), > SWITCH_LOG_DEBUG, > "%s destroy/unlink session from > object\n", switch_channel_get_name(channel)); > > This makes me wonder if you are some older version... > > > > > > > On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles > <freeswitch-users@vocalspace.com> wrote: >> var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, >> (y) >> => { >> try { >> Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); >> y.SetAutoHangup(true); >> y.flushDigits(); >> y.flushEvents(); >> y.destroy(); >> y.Dispose(); >> GC.Collect(); >> } catch( Exception ) { >> Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); >> } >> }); >> Changes yield no fix. Neither .Dispose() or .destroy() separately or >> together destroy the channel. I see in the log the hangup >> 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show >> channels. >> The last log lines of the debug is: >> 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 >> (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY >> 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send >> signal >> sofia/external/XXXXXXXXXX [BREAK] >> 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session >> 1 >> (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities >> >> >> freeswitch@fs03.int.colo> show channels >> 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 >> >> 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound >> Call,12146635351,,,, >> >> freeswitch@fs03.int.colo> uuid_kill >> 11da29f3-2d9e-4b74-a439-a96ba60f2db1 >> >> -ERR No Such Channel! >> >> I am calling this from "managed CustomModule.Api" >> >> Calling GC.Collect() later in the execution does not resolve either. >> //------------------------------------------------------ >> // Entrypoint for blocking API execution >> //------------------------------------------------------ >> public void Execute (ApiContext context) { >> context.Arguments, context.Event == null ? "<none>" : >> context.Event.GetEventType ())); >> >> // this contains the above code >> Run(ParseArguments(context.Arguments)); >> GC.Collect(); >> } >> >> Thanks! >> Suggestions appreciated. >> On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote: >> >> Actually, all the managed objects are derived from IDisposable, so you >> should use the .Dispose() method, and let the wrapper do it's job. >> >> ________________________________ >> From: Anthony Minessale [mailto:anthony.minessale@gmail.com] >> To: FreeSWITCH Users Help >> [mailto:freeswitch-users@lists.freeswitch.org] >> Sent: Thu, 30 Aug 2012 13:48:07 -0700 >> Subject: Re: [Freeswitch-users] Problem with originated calls hanging >> in >> CS_SOFT_EXEC state >> >> destroy method should have a log line about (destroy/unlink session >> from >> object) >> try calling your garbage collector, this is common issue with scripts >> and make sure you are on latest GIT build >> >> >> On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles >> <freeswitch-users@vocalspace.com> wrote: >>> Sorry for the excessive logs. Here is my call to originate. >>> >>> var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, >>> (y) >>> => { >>> try { >>> Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); >>> y.SetAutoHangup(true); >>> y.destroy(); >>> >>> } catch( Exception ) { >>> Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); >>> } >>> }); >>> >>> >>> My hangup callback is getting hit and I am destroying the session >>> >>> 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: >>> e315f2e8-1fa8-4fd9-849b-f687dad8aed5 >>> >>> This is the only call on the system as it is a develpment machine and >>> I >>> see >>> the call state being changed. >>> >>> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 >>> sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING >>> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 >>> (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep >>> 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 >>> (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY >>> >>> >>> If I call show channels after the above output it show there is a >>> session >>> sitting in CS_SOFT_EXEC corresponding to UUID >>> e315f2e8-1fa8-4fd9-849b-f687dad8aed5. >>> Is there something else I need to do to release the lock on this >>> session >>> to >>> let the resources be reclaimed. >>> >>> Thanks! >>> >>> Phillip >>> >>> >>> >>> >>> >>> _________________________________________________________________________ >>> Professional FreeSWITCH Consulting Services: >>> consulting@freeswitch.org >>> http://www.freeswitchsolutions.com >>> >>> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >>> http://www.cudatel.com >>> >>> Official FreeSWITCH Sites >>> http://www.freeswitch.org >>> http://wiki.freeswitch.org >>> http://www.cluecon.com >>> >>> FreeSWITCH-users mailing list >>> FreeSWITCH-users@lists.freeswitch.org >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >>> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >>> http://www.freeswitch.org >>> >> >> >> >> -- >> Anthony Minessale II >> >> FreeSWITCH http://www.freeswitch.org/ >> ClueCon http://www.cluecon.com/ >> Twitter: http://twitter.com/FreeSWITCH_wire >> >> AIM: anthm >> MSN:anthony_minessale@hotmail.com >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com >> IRC: irc.freenode.net #freeswitch >> >> FreeSWITCH Developer Conference >> sip:888@conference.freeswitch.org >> googletalk:conf+888@conference.freeswitch.org >> pstn:+19193869900 >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> > > > > -- > Anthony Minessale II > > FreeSWITCH http://www.freeswitch.org/ > ClueCon http://www.cluecon.com/ > Twitter: http://twitter.com/FreeSWITCH_wire > > AIM: anthm > MSN:anthony_minessale@hotmail.com > GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com > IRC: irc.freenode.net #freeswitch > > FreeSWITCH Developer Conference > sip:888@conference.freeswitch.org > googletalk:conf+888@conference.freeswitch.org > pstn:+19193869900 > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
If I can get some clear documentation on how the threading model is supposed to work, what's responsible for what, how a module can be re-entrant, etc. etc. I'll be happy to make nice clear managed code to make it easy. Unfortunately, last time I got into it, it seemed to be rather complicated and not perfectly understood. And control modules were supposed to be of the "set a command and get lost" variety, and not really "own" the thread/call. There were also futher complications depending on if the call was bridged, and if it was bridged with media or not, and so on. -Michael From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Dave R. Kompel Sent: Tuesday, September 04, 2012 3:15 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state Yes, they should be deprecated. Mod_managed has changed a lot over the years, and a lot of those things are still left over from the days when it was either single app domain, or there were no other for controling or collecting data form outbound legs. One of the things i forgot to mention in my last reply, that is if you want to control an outbound legs completly form managed code, using the session object it is a lot easier to just do "Session.ExecuteString("originate channel/params &managed(yourclassname")". Then you can handle it just like at was an inbound call, and not even worry about clean-up. The places you may want to use the hooks are for applications where you need to originate a call from API or other context, not actually have to control the call via managed code, but need to know about the outbound leg (execute_on_originate) where you can stash UUID, and other information about the leg, or get easy notification of call being answered/terminated (api_on_answer,api_hangup_hook). With both of these API hooks, set in the "originate" api call, you can also pass variable arguments that are expanded when they are executed {origination_nested_vars=true}. Does anyone know if that is documented on the wiki? I can't find it. --Dave ________________________________ From: Phillip Boles [mailto:freeswitch-users@vocalspace.com]<mailto:[mailto:freeswitch-users@vocalspace.com]> To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org]<mailto:[mailto:freeswitch-users@lists.freeswitch.org]> Sent: Tue, 04 Sep 2012 13:35:47 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state Thanks Anthony! I found the ManageSession methods by looking at the code that is exposed via swig. Using "execute_on_*" hooks seems to be the proper procedure, it needs to be documented on the wiki. There is virtually no documentation to originate a call for mod managed on the wiki. I will correct that if I can get wiki access. I will illustrate your solution using "execute_on_originate" as the preferred solution. There are also several "execute_on_*" hooks that would work. Should ManagedSession.OriginateHandleHangup and .Originate() methods be deprecated to discourage their use in further releases? Or at least some comments in the code that point people to look at execute_on directives. Does Java have this same issue? Anthony,Glad I found a bug by doing the wrong thing.... sorry for making work for ya! I cannot say enough about how responsive Anthony and the community has been about this issue. THANKS! On Sep 4, 2012, at 3:10 PM, Anthony Minessale wrote: Listen to Dave. I fixed the lock leak, it was down deep into code I am not sure is ever used. You want to be careful with what you do especially since you are on linux which means you must be using Mono which I am also not sure is used a lot. On Tue, Sep 4, 2012 at 2:08 PM, Dave R. Kompel <drk@drkngs.net<mailto:drk@drkngs.net>> wrote: This may be a bug, but ManagedSession really is not the right way to do this from API context. Because of the APP_DOMAIN issue its much easier to just do Api.ExecuteString("originate ... "). If you need to get to the "managed session of the leg you have two options: For getting to it before the originate set the variable execute_on_originate to call a managed AppPlugin, or: For getting results at the end of the call in API code, set the variable API_HANGUP_HOOK. Both of these methoods are much easier to do from API context in mod_managed, and you won't have to worry about crossing app domain boundries, and you won't have do do any cleanup on the leg. ________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com>] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>] Sent: Tue, 04 Sep 2012 11:37:54 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state now that you have a jira do not continue this thread it doubles the work effort, see comments there On Tue, Sep 4, 2012 at 1:00 PM, Phillip Boles <freeswitch-users@vocalspace.com<mailto:freeswitch-users@vocalspace.com>> wrote: I have tried to get the Current HEAD to run mod_managed with this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 I am getting this error now. 2012-09-04 12:57:38.318859 [CRIT] switch_loadable_module.c:1310 Error Loading module /usr/local/freeswitch/mod/mod_managed.so **/usr/local/freeswitch/mod/mod_managed.so: undefined symbol: switch_core_session_read_lock** Thoughts? Thanks! On Aug 31, 2012, at 5:20 PM, Anthony Minessale wrote: add this to the top of switch_core.h #define SWITCH_DEBUG_RWLOCKS 1 rebuild and get a full log of the call look for sign of unhandled rwlock and put this on jira why I am i helping you over ml .... >=0 On Fri, Aug 31, 2012 at 4:16 PM, Phillip Boles <freeswitch-users@vocalspace.com<mailto:freeswitch-users@vocalspace.com>> wrote: Sorry Yes using the latest. Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org<mailto:anthm@freeswitch.org>> Date: Thu Aug 30 17:17:15 2012 -0500 Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n"); if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n"); channel = switch_core_session_get_channel(session); } if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); } [CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities channel remains hung P On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote: 1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000 use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n"); The part I am concerned with is when you call destroy you dont see the log line you should: switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); This makes me wonder if you are some older version... On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com<mailto:freeswitch-users@vocalspace.com>> wrote: var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info<http://loglevel.info/>, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities freeswitch@fs03.int.colo<mailto:freeswitch@fs03.int.colo>> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,, freeswitch@fs03.int.colo<mailto:freeswitch@fs03.int.colo>> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1 -ERR No Such Channel! I am calling this from "managed CustomModule.Api" Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ())); // this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); } Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote: Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job. ________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com>] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org<mailto:freeswitch-users@lists.freeswitch.org>] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com<mailto:freeswitch-users@vocalspace.com>> wrote: Sorry for the excessive logs. Here is my call to originate. var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info<http://loglevel.info/>, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); My hangup callback is getting hit and I am destroying the session 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 This is the only call on the system as it is a develpment machine and I see the call state being changed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed. Thanks! Phillip _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com<mailto:anthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org<mailto:conf+888@conference.freeswitch.org> pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com<mailto:anthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org<mailto:conf+888@conference.freeswitch.org> pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com<mailto:anthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org<mailto:conf+888@conference.freeswitch.org> pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com<mailto:anthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org<mailto:conf+888@conference.freeswitch.org> pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/> -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com<mailto:anthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com> IRC: irc.freenode.net<http://irc.freenode.net/> #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org<mailto:conf+888@conference.freeswitch.org> pstn:+19193869900 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com<http://www.freeswitchsolutions.com/> FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com<http://www.cudatel.com/> Official FreeSWITCH Sites http://www.freeswitch.org<http://www.freeswitch.org/> http://wiki.freeswitch.org<http://wiki.freeswitch.org/> http://www.cluecon.com<http://www.cluecon.com/> FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org<mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org<http://www.freeswitch.org/>
I made a small correction to the code which was causing the reported problem here. The only requirement is that for every instance of ManagedSession you call destroy when done with it. -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-originated-calls-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Anthony, adding switch_core_session_soft_unlock(session); below switch_core_session_rwunlock(session); moves the call state from CS_SOFT_EXEC to CS_HANGUP but the channel still persists waiting on external entities. I am calling mod_shout to play an audio on the channel earlier in the session. I dont know if that helps. Thanks! Phillip On Aug 31, 2012, at 4:16 PM, Phillip Boles wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel)); switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink uuid\n", switch_channel_get_uuid(channel)); switch_channel_set_private(channel, "CoreSession", NULL); if (switch_channel_up(channel) && switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } } else { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n"); }
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink session from object [DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If you are on anything else update... 2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s destroy/unlink session from object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.flushDigits(); y.flushEvents(); y.destroy(); y.Dispose(); GC.Collect(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); Changes yield no fix. Neither .Dispose() or .destroy() separately or together destroy the channel. I see in the log the hangup 11da29f3-2d9e-4b74-a439-a96ba60f2db1 but this is what I get from show channels. The last log lines of the debug is: 2012-08-31 11:25:52.109393 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXX [BREAK] 2012-08-31 11:25:52.109393 [DEBUG] switch_core_session.c:1424 Session 1 (sofia/external/XXXXXXXXXX) Locked, Waiting on external entities
freeswitch@fs03.int.colo> show channels 11da29f3-2d9e-4b74-a439-a96ba60f2db1,outbound,2012-08-31 11:25:24,1346430324,sofia/external/12146635351,CS_SOFT_EXECUTE,Vocalspace,2223334444,,12146635351,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,12146635351,,,,
freeswitch@fs03.int.colo> uuid_kill 11da29f3-2d9e-4b74-a439-a96ba60f2db1
-ERR No Such Channel!
I am calling this from "managed CustomModule.Api"
Calling GC.Collect() later in the execution does not resolve either. //------------------------------------------------------ // Entrypoint for blocking API execution //------------------------------------------------------ public void Execute (ApiContext context) { context.Arguments, context.Event == null ? "<none>" : context.Event.GetEventType ()));
// this contains the above code Run(ParseArguments(context.Arguments)); GC.Collect(); }
Thanks! Suggestions appreciated. On Aug 30, 2012, at 5:22 PM, Dave R. Kompel wrote:
Actually, all the managed objects are derived from IDisposable, so you should use the .Dispose() method, and let the wrapper do it's job.
________________________________ From: Anthony Minessale [mailto:anthony.minessale@gmail.com] To: FreeSWITCH Users Help [mailto:freeswitch-users@lists.freeswitch.org] Sent: Thu, 30 Aug 2012 13:48:07 -0700 Subject: Re: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
destroy method should have a log line about (destroy/unlink session from object) try calling your garbage collector, this is common issue with scripts and make sure you are on latest GIT build
On Thu, Aug 30, 2012 at 3:24 PM, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Sorry for the excessive logs. Here is my call to originate.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
My hangup callback is getting hit and I am destroying the session
2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5
This is the only call on the system as it is a develpment machine and I see the call state being changed.
2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY
If I call show channels after the above output it show there is a session sitting in CS_SOFT_EXEC corresponding to UUID e315f2e8-1fa8-4fd9-849b-f687dad8aed5. Is there something else I need to do to release the lock on this session to let the resources be reclaimed.
Thanks!
Phillip
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Plz get that jira opened! :) -MC On Friday, August 31, 2012, Phillip Boles <freeswitch-users@vocalspace.com> wrote:
Anthony, adding switch_core_session_soft_unlock(session); below switch_core_session_rwunlock(session);
moves the call state from CS_SOFT_EXEC to CS_HANGUP but the channel still persists waiting on external entities. I am calling mod_shout to play an audio on the channel earlier in the session. I dont know if that helps. Thanks! Phillip On Aug 31, 2012, at 4:16 PM, Phillip Boles wrote:
Sorry Yes using the latest.
Using commit a8ce9ac29f3ba000bf42ab2286be04cc7bf9f509 Author: Anthony Minessale <anthm@freeswitch.org> Date: Thu Aug 30 17:17:15 2012 -0500
Changes made switch_cpp.cpp starting at Line 1000 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Calling CoreSession::destroy\n"); if (session) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "We still have valid session\n");
if (!channel) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Channel is undefined! Trying to get it!\n");
channel = switch_core_session_get_channel(session); }
if (channel) {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
"%s
destroy/unlink session from object\n", switch_channel_get_name(channel));
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
"%s
destroy/unlink uuid\n", switch_channel_get_uuid(channel));
switch_channel_set_private(channel, "CoreSession",
NULL);
if (switch_channel_up(channel) &&
switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) {
switch_channel_hangup(channel,
SWITCH_CAUSE_NORMAL_CLEARING);
} } else { switch_log_printf(SWITCH_CHANNEL_LOG,
SWITCH_LOG_CRIT, "Channel is undefined! We Failed to get it!\n");
}
[CRIT] switch_cpp.cpp:1000 Calling CoreSession::destroy [CRIT] switch_cpp.cpp:1002 We still have valid session [DEBUG] switch_cpp.cpp:1011 sofia/external/12146635351 destroy/unlink
session from object
[DEBUG] switch_cpp.cpp:1013 83451093-e04f-49c1-9f55-5dd966bc4ba9 destroy/unlink uuid [DEBUG] switch_core_state_machine.c:92 sofia/external/XXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING [DEBUG] switch_core_state_machine.c:703 (sofia/external/XXXXXXXXXX ) State REPORTING going to sleep [DEBUG] switch_core_state_machine.c:423 (sofia/external/XXXXXXXXXX ) State Change CS_REPORTING -> CS_DESTROY [DEBUG] switch_core_session.c:1210 Send signal sofia/external/XXXXXXXXXX [BREAK] [DEBUG] switch_core_session.c:1415 Session 2 (sofia/external/XXXXXXXXXX ) Locked, Waiting on external entities
channel remains hung
P
On Aug 31, 2012, at 12:26 PM, Anthony Minessale wrote:
1) You did not answer the question if you are on latest GIT HEAD. If
you are on anything else update...
2) Add some debugging to switch_cpp.cpp about line 1000
use lines like this to follow the code paths when you call destroy
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "BLAH\n");
The part I am concerned with is when you call destroy you dont see the
log line you should:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG,
"%s destroy/unlink session from
object\n", switch_channel_get_name(channel));
This makes me wonder if you are some older version...
On Fri, Aug 31, 2012 at 11:57 AM, Phillip Boles
<freeswitch-users@vocalspace.com> wrote:
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y)
=
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
call session.destroy() and report back -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Problem-with-originated-calls-... Sent from the freeswitch-users mailing list archive at Nabble.com.
Argh, I wish someone with access to the wiki would fix this....... The old methods for making outbound legs from mod_managed, are just that, old. Where are you calling this from? If you want to originate a call from managed code the only way you won't run into some problem with cross_app_domain stuff, is to use Api.Execute("originate",...), and if you want to bridge a call then use Session.Execute("Bridge..."). If you stick to this, you should have no problem. If you need a managed session handle when you do an originate, then have the Originate API call a managed dialplan app, and it can do the rest. --Dave _____ From: Phillip Boles [mailto:freeswitch-users@vocalspace.com] To: freeswitch-users@lists.freeswitch.org Sent: Thu, 30 Aug 2012 11:20:06 -0700 Subject: [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); 2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,, 1 total. 2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels 0 total. var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy(); } catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } }); 2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,, 1 total. 2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels 0 total.
What do you mean? Everyone has access to the wiki. I would think that after all these years you would have an account by now. On Aug 30, 2012 5:19 PM, "Dave R. Kompel" <drk@drkngs.net> wrote:
** Argh, I wish someone with access to the wiki would fix this.......
The old methods for making outbound legs from mod_managed, are just that, old. Where are you calling this from? If you want to originate a call from managed code the only way you won't run into some problem with cross_app_domain stuff, is to use Api.Execute("originate",...), and if you want to bridge a call then use Session.Execute("Bridge...").
If you stick to this, you should have no problem. If you need a managed session handle when you do an originate, then have the Originate API call a managed dialplan app, and it can do the rest.
--Dave
------------------------------ *From:* Phillip Boles [mailto:freeswitch-users@vocalspace.com] *To:* freeswitch-users@lists.freeswitch.org *Sent:* Thu, 30 Aug 2012 11:20:06 -0700 *Subject:* [Freeswitch-users] Problem with originated calls hanging in CS_SOFT_EXEC state
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info <http://loglevel.info/>, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20
2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20
2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,,
1 total.
2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels
0 total.
var session = ManagedSession.OriginateHandleHangup(s, dialString, ts, (y) => { try { Log.WriteLine(LogLevel.Info <http://loglevel.info/>, "Hanging UP: "+ y.GetUuid()); y.SetAutoHangup(true); y.destroy();
} catch( Exception ) { Log.WriteLine(LogLevel.Critical, "Exception While Trying to handup"); } });
2012-08-28 10:49:12.156172 [INFO] switch_cpp.cpp:1227 Dialing 2012-08-28 10:49:12.156172 [DEBUG] switch_ivr_originate.c:1947 Parsing global variables 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [ignore_early_media]=[true] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_number]=[2223334444] 2012-08-28 10:49:12.156172 [DEBUG] switch_event.c:1527 Parsing variable [origination_caller_id_name]=[Vocalspace] 2012-08-28 10:49:12.156172 [NOTICE] switch_channel.c:926 New Channel sofia/external/XXXXXXXXXXX [e315f2e8-1fa8-4fd9-849b-f687dad8aed5] 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:4709 (sofia/external/XXXXXXXXXXX) State Change CS_NEW -> CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_INIT 2012-08-28 10:49:12.156172 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT 2012-08-28 10:49:12.156172 [DEBUG] mod_sofia.c:85 sofia/external/XXXXXXXXXXX SOFIA INIT 2012-08-28 10:49:12.216161 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:49:12.256159 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:129 (sofia/external/XXXXXXXXXXX) State Change CS_INIT -> CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:421 (sofia/external/XXXXXXXXXXX) State INIT going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_channel.c:1887 (sofia/external/XXXXXXXXXXX) Callstate Change DOWN -> RINGING 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING 2012-08-28 10:49:12.256159 [DEBUG] mod_sofia.c:152 sofia/external/XXXXXXXXXXX SOFIA ROUTING 2012-08-28 10:49:12.256159 [DEBUG] switch_ivr_originate.c:67 (sofia/external/XXXXXXXXXXX) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:430 (sofia/external/XXXXXXXXXXX) State ROUTING going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA 2012-08-28 10:49:12.256159 [DEBUG] switch_core_state_machine.c:449 (sofia/external/XXXXXXXXXXX) State CONSUME_MEDIA going to sleep 2012-08-28 10:49:12.256159 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.256159 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [calling][0] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:12.636131 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:12.636131 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][180] 2012-08-28 10:49:12.636131 [NOTICE] sofia.c:5769 Ring-Ready sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:14.655990 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [proceeding][183] 2012-08-28 10:49:14.655990 [DEBUG] sofia.c:5688 Remote SDP: v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20
2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:4911 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:2995 Set Codec sofia/external/XXXXXXXXXXX PCMU/8000 20 ms 160 samples 64000 bits 2012-08-28 10:49:14.655990 [DEBUG] switch_core_codec.c:111 sofia/external/XXXXXXXXXXX Original read codec set to PCMU:0 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:5025 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3244 AUDIO RTP [sofia/external/XXXXXXXXXXX] 10.10.80.33 port 19628 -> 8.19.97.6 port 18534 codec: 0 ms: 20 2012-08-28 10:49:14.655990 [DEBUG] switch_rtp.c:1676 Starting timer [soft] 160 bytes per 20ms 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3508 Set 2833 dtmf send payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3514 Set 2833 dtmf receive payload to 101 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3541 sofia/external/XXXXXXXXXXX Set rtp dtmf delay to 40 2012-08-28 10:49:14.655990 [DEBUG] sofia_glue.c:3547 Set comfort noise payload to 13 2012-08-28 10:49:14.655990 [NOTICE] sofia_glue.c:4052 Pre-Answer sofia/external/XXXXXXXXXXX! 2012-08-28 10:49:14.655990 [DEBUG] switch_channel.c:2986 (sofia/external/XXXXXXXXXXX) Callstate Change RINGING -> EARLY 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [INFO] sofia.c:890 sofia/external/XXXXXXXXXXX Update Callee ID to "Outbound Call" 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [completing][200] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5685 Duplicate SDP v=0 o=FreeSWITCH 1346150407 1346150408 IN IP4 8.19.97.6 s=FreeSWITCH c=IN IP4 8.19.97.6 t=0 0 m=audio 18534 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20
2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] sofia.c:5677 Channel sofia/external/XXXXXXXXXXX entering state [ready][200] 2012-08-28 10:49:22.136467 [DEBUG] switch_channel.c:3245 (sofia/external/XXXXXXXXXXX) Callstate Change EARLY -> ACTIVE 2012-08-28 10:49:22.136467 [NOTICE] sofia.c:6352 Channel [sofia/external/XXXXXXXXXXX] has been answered 2012-08-28 10:49:22.136467 [DEBUG] switch_ivr_originate.c:3330 Originate Resulted in Success: [sofia/external/XXXXXXXXXXX] 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1083 (sofia/external/XXXXXXXXXXX) State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] mod_sofia.c:592 SOFIA SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:261 sofia/external/XXXXXXXXXXX Standard SOFT_EXECUTE 2012-08-28 10:49:22.136467 [DEBUG] switch_core_state_machine.c:443 (sofia/external/XXXXXXXXXXX) State SOFT_EXECUTE going to sleep 2012-08-28 10:49:22.136467 [DEBUG] switch_cpp.cpp:1172 CoreSession::seHangupHook, hangup_func: (nil) 2012-08-28 10:49:22.136467 [INFO] switch_cpp.cpp:1227 Connected 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Session Ready 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Call Initialized 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Trying To Run 2012-08-28 10:49:23.136397 [INFO] switch_cpp.cpp:1227 Running 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Checking for file /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [ERR] mod_sndfile.c:197 Error Opening File [/svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw] [System error : No such file or directory.] 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Transcoding xfile /svc/prod/product/2167/phone/2167.a74e3d86b1f93f0a1f2fc9ad4f6ef2f4.ulaw.ulaw 2012-08-28 10:49:23.160407 [NOTICE] switch_cpp.cpp:1227 Sending MQ Message 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Creating a channel... 2012-08-28 10:49:23.296392 [NOTICE] switch_cpp.cpp:1227 Defining Exchange FS... 2012-08-28 10:49:23.316389 [NOTICE] switch_cpp.cpp:1227 Binding Exchange and Queue.. 2012-08-28 10:49:23.336389 [NOTICE] switch_cpp.cpp:1227 Sending message.. 2012-08-28 10:49:23.356388 [NOTICE] switch_cpp.cpp:1227 shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 2012-08-28 10:49:25.916204 [DEBUG] mod_shout.c:472 Read Thread Done 2012-08-28 10:49:26.356173 [DEBUG] switch_ivr_play_say.c:1309 Codec Activated L16@8000hz 1 channels 20ms 2012-08-28 10:49:26.596156 [DEBUG] switch_rtp.c:3252 Correct ip/port confirmed. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:919 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2849 (sofia/external/XXXXXXXXXXX) Callstate Change ACTIVE -> HANGUP 2012-08-28 10:49:27.296108 [NOTICE] sofia.c:694 Hangup sofia/external/XXXXXXXXXXX [CS_SOFT_EXECUTE] [NORMAL_CLEARING] 2012-08-28 10:49:27.296108 [DEBUG] switch_channel.c:2872 Send signal sofia/external/XXXXXXXXXXX [KILL] 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_HANGUP 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP 2012-08-28 10:49:27.296108 [DEBUG] mod_sofia.c:473 Channel sofia/external/XXXXXXXXXXX hanging up, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:47 sofia/external/XXXXXXXXXXX Standard HANGUP, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:622 (sofia/external/XXXXXXXXXXX) State HANGUP going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:413 (sofia/external/XXXXXXXXXXX) State Change CS_HANGUP -> CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1227 AppFunction is in hangupCallback. 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:382 (sofia/external/XXXXXXXXXXX) Running State Change CS_REPORTING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING 2012-08-28 10:49:27.296108 [INFO] switch_cpp.cpp:1227 Handing UP: e315f2e8-1fa8-4fd9-849b-f687dad8aed5 2012-08-28 10:49:27.296108 [DEBUG] switch_cpp.cpp:1007 sofia/external/XXXXXXXXXXX destroy/unlink session from object 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:79 sofia/external/XXXXXXXXXXX Standard REPORTING, cause: NORMAL_CLEARING 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:682 (sofia/external/XXXXXXXXXXX) State REPORTING going to sleep 2012-08-28 10:49:27.296108 [DEBUG] switch_core_state_machine.c:407 (sofia/external/XXXXXXXXXXX) State Change CS_REPORTING -> CS_DESTROY 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1224 Send signal sofia/external/XXXXXXXXXXX [BREAK] 2012-08-28 10:49:27.296108 [DEBUG] switch_core_session.c:1424 Session 4 (sofia/external/XXXXXXXXXXX) Locked, Waiting on external entities 2012-08-28 10:49:27.316110 [DEBUG] switch_ivr_play_say.c:1682 done playing file shout://www.product.com/files/media/e53bc5bf-4e00-ab8d-4e4d-b201699628d1.mp3 freeswitch@fs03.int.colo> show channels
uuid,direction,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,read_bit_rate,write_codec,write_rate,write_bit_rate,secure,hostname,presence_id,presence_data,callstate,callee_name,callee_num,callee_direction,call_uuid,sent_callee_name,sent_callee_num e315f2e8-1fa8-4fd9-849b-f687dad8aed5,outbound,2012-08-28 10:49:12,1346168952,sofia/external/XXXXXXXXXXX,CS_SOFT_EXECUTE,Vocalspace,2223334444,,XXXXXXXXXXX,,,,default,PCMU,8000,64000,PCMU,8000,64000,,fs03.int.colo,,,ACTIVE,Outbound Call,XXXXXXXXXXX,,,,
1 total.
2012-08-28 10:58:10.256585 [DEBUG] switch_nat.c:511 mapped public port 5060 protocol TCP to localport 5060 2012-08-28 10:58:10.296583 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol UDP to localport 5080 2012-08-28 10:58:10.336580 [DEBUG] switch_nat.c:511 mapped public port 5080 protocol TCP to localport 5080 2012-08-28 10:58:10.396576 [DEBUG] switch_nat.c:511 mapped public port 19628 protocol UDP to localport 19628 2012-08-28 10:58:10.436573 [DEBUG] switch_nat.c:511 mapped public port 19629 protocol UDP to localport 19629 2012-08-28 10:58:10.476570 [DEBUG] switch_nat.c:511 mapped public port 22013 protocol UDP to localport 22013 2012-08-28 10:58:10.536566 [DEBUG] switch_nat.c:511 mapped public port 22191 protocol UDP to localport 22191 2012-08-28 10:58:10.576563 [DEBUG] switch_nat.c:511 mapped public port 25326 protocol UDP to localport 25326 2012-08-28 10:58:10.636559 [DEBUG] switch_nat.c:511 mapped public port 25327 protocol UDP to localport 25327 Loading /usr/lib64/freeswitch/mod/managed/Enyim.Caching.dll from domain Enyim.Caching.dll_63 2012-08-28 11:00:02.097780 [DEBUG] switch_cpp.cpp:1227 Assembly Enyim.Caching, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Jint.dll from domain Jint.dll_64 2012-08-28 11:00:02.316760 [DEBUG] switch_cpp.cpp:1227 Assembly Jint, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/log4net.dll from domain log4net.dll_65 2012-08-28 11:00:02.536745 [DEBUG] switch_cpp.cpp:1227 Assembly log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Antlr3.Runtime.dll from domain Antlr3.Runtime.dll_66 2012-08-28 11:00:02.756720 [DEBUG] switch_cpp.cpp:1227 Assembly Antlr3.Runtime, Version=3.3.1.7705, Culture=neutral, PublicKeyToken=eb42632606e9261f doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/RabbitMQ.Client.dll from domain RabbitMQ.Client.dll_67 2012-08-28 11:00:02.996708 [DEBUG] switch_cpp.cpp:1227 Assembly RabbitMQ.Client, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/ManagedEsl.dll from domain ManagedEsl.dll_68 2012-08-28 11:00:03.216689 [DEBUG] switch_cpp.cpp:1227 Assembly ManagedEsl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSWITCH.Managed.dll from domain FreeSWITCH.Managed.dll_69 2012-08-28 11:00:03.436678 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSWITCH.Managed, Version=1.0.5.0, Culture=neutral, PublicKeyToken=null doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/FreeSwitch.EventSocket.dll from domain FreeSwitch.EventSocket.dll_70 2012-08-28 11:00:03.657671 [DEBUG] switch_cpp.cpp:1227 Assembly FreeSwitch.EventSocket, Version=1.0.0.0, Culture=neutral, PublicKeyToken=94d8a22cdb4b7713 doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Newtonsoft.Json.dll from domain Newtonsoft.Json.dll_71 2012-08-28 11:00:03.876655 [DEBUG] switch_cpp.cpp:1227 Assembly Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Freeswitch.UUID.dll from domain Freeswitch.UUID.dll_72 2012-08-28 11:00:04.096628 [DEBUG] switch_cpp.cpp:1227 Assembly Freeswitch.UUID, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f758751257b2cdaf doesn't reference FreeSWITCH.Managed, not loading. Loading /usr/lib64/freeswitch/mod/managed/Product.dll from domain Product.dll_73 freeswitch@fs03.int.colo> show channels
0 total.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (6)
-
Anthony Minessale
-
Dave R. Kompel
-
Jeff Lenk
-
Michael Collins
-
Michael Giagnocavo
-
Phillip Boles