[Freeswitch-users] Take uuid out of conference and bridge
Birgit Arkesteijn
birgit at westhawk.co.uk
Thu Oct 23 04:55:43 PDT 2008
Hi Mike,
The two snippets can be found below.
Thanks, Birgit
***** The snippet where [DESTINATION_OUT_OF_ORDER] occurs:
2008-10-23 12:47:06 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 12:47:06 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 12:47:06 [DEBUG] mod_spidermonkey.c:2682 session_construct()
sofia/external/0663 State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log()
customer services answered: true
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:904
switch_ivr_uuid_bridge() sofia/external/0662 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:905
switch_ivr_uuid_bridge() sofia/external/0663 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
apiExecute uuid_bridge: +OK 4f1a9178-a0f8-11dd-bc47-611d57a250e3
2008-10-23 12:47:06 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:47:06 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_RESET
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:132 sofia_on_reset()
sofia/external/0662 SOFIA RESET
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:423
uuid_bridge_on_reset() sofia/external/0662 CUSTOM RESET
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:428
uuid_bridge_on_reset() sofia/external/0662 State Change CS_RESET ->
CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change
CS_SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:329 sofia_on_soft_execute()
SOFIA TRANSMIT
2008-10-23 12:47:06 [DEBUG] switch_ivr_bridge.c:440
uuid_bridge_on_soft_execute() sofia/external/0662 CUSTOM TRANSMIT
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 12:47:06 [NOTICE] switch_ivr_bridge.c:484
uuid_bridge_on_soft_execute() Hangup sofia/external/0662
[CS_SOFT_EXECUTE] [DESTINATION_OUT_OF_ORDER]
2008-10-23 12:47:06 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:436
switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE going
to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause:
DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log()
consumer consumer_hungup(): cSession hangup HOOK, name:
sofia/external/0662, uuid: 4d7e7942-a0f8-11dd-bc47-611d57a250e3, state:
CS_HANGUP, cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
apiExecute conference:
2008-10-23 12:47:06 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON
2008-10-23 12:47:06 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
cause: NORMAL_CLEARING
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 2 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 2 (sofia/external/0663) Ended
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
cause: DESTINATION_OUT_OF_ORDER
2008-10-23 12:47:06 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
2008-10-23 12:47:06 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 1 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 1 (sofia/external/0662) Ended
2008-10-23 12:47:06 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
***** Here the snippet where [NORMAL_CLEARING] occurs:
2008-10-23 12:53:05 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
Channel [sofia/external/0663] has been answered
2008-10-23 12:53:05 [DEBUG] switch_ivr_originate.c:1322
switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
2008-10-23 12:53:05 [DEBUG] mod_spidermonkey.c:2682 session_construct()
sofia/external/0663 State Change CS_CONSUME_MEDIA -> CS_SOFT_EXECUTE
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log()
customer services answered: true
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:904
switch_ivr_uuid_bridge() sofia/external/0663 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:905
switch_ivr_uuid_bridge() sofia/external/0662 State Change
CS_SOFT_EXECUTE -> CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log() after
apiExecute uuid_bridge: +OK 240c53a8-a0f9-11dd-bc47-611d57a250e3
2008-10-23 12:53:05 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0663 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:53:05 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:442
switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0663 Running State Change CS_HANGUP
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0663 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0663
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 5 (sofia/external/0663) Locked,
Waiting on external entities
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 5 (sofia/external/0663) Ended
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_RESET
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:132 sofia_on_reset()
sofia/external/0662 SOFIA RESET
2008-10-23 12:53:05 [DEBUG] switch_ivr_bridge.c:423
uuid_bridge_on_reset() sofia/external/0662 CUSTOM RESET
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:53
switch_core_standard_on_reset() Standard RESET sofia/external/0662
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:425
switch_core_session_run() (sofia/external/0662) State RESET going to sleep
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1997
conference_loop_output() Channel leaving conference, cause: NONE
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:430
switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [INFO] dispatcher_general.js:76 console_log() after
cSession in conf
2008-10-23 12:53:05 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_RESET] [NORMAL_CLEARING]
2008-10-23 12:53:05 [DEBUG] switch_channel.c:1361
switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:720
switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:365
switch_core_session_run() sofia/external/0662 Running State Change CS_HANGUP
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
sofia/external/0662 hanging up, cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
BYE to sofia/external/0662
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1190
conference_thread_run() Write Lock ON
2008-10-23 12:53:05 [DEBUG] mod_conference.c:1193
conference_thread_run() Write Lock OFF
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:46
switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
cause: NORMAL_CLEARING
2008-10-23 12:53:05 [DEBUG] switch_core_state_machine.c:393
switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
2008-10-23 12:53:05 [DEBUG] switch_core_session.c:784
switch_core_session_thread() Session 4 (sofia/external/0662) Locked,
Waiting on external entities
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:802
switch_core_session_thread() Session 4 (sofia/external/0662) Ended
2008-10-23 12:53:05 [NOTICE] switch_core_session.c:804
switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
On 23/10/08 12:41, Michael Jerris wrote:
> can you post debug logs of this output?
>
> Mike
> On Oct 23, 2008, at 6:43 AM, Birgit Arkesteijn wrote:
>
>> Hi,
>>
>> Thanks Anthony for your response.
>> Unfortunately removing the 'kick' didn't make a difference.
>>
>> The result is also different if I change the order of the UUIDs
>> around.
>> In one scenario I get [NORMAL_CLEARING], in the other
>> [DESTINATION_OUT_OF_ORDER].
>>
>> I added the code (again) and 2 snippets of the freeswitch.log below.
>>
>> Does anyone have an alternative?
>>
>> Thanks, Birgit
>>
>>
>> Current code:
>>
>> function bridge_to_customer_services(conf_name, member_id, uuid,
>> customer_service_url)
>> {
>> if (uuid)
>> {
>> var sSession = new
>> Session("{ignore_early_media=true,originate_timeout=10}"
>> + customer_service_url);
>> var ready = sSession.ready();
>> log("customer services answered: " + ready);
>> if (ready == true)
>> {
>> // The customer services call has been answered
>> argument = sSession.uuid + " " + uuid;
>> var res = apiExecute("uuid_bridge", argument);
>> log("after apiExecute uuid_bridge: " + res);
>> }
>> }
>> }
>>
>> When I set argument as:
>> argument = sSession.uuid + " " + uuid;
>>
>> I see the following in the freeswitch log:
>>
>> (
>> sofia/external/0663: is the 'new' customer services call,
>> sofia/external/0662: is the call in the conference
>> )
--
-- Birgit Arkesteijn, birgit at westhawk.co.uk,
-- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK
-- Company no: 1769350
-- Registered Office:
-- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK.
-- tel.: +44 (0)161 237 0660
-- <URL: http://www.westhawk.co.uk>
More information about the FreeSWITCH-users
mailing list