[Freeswitch-users] Take uuid out of conference and bridge
Anthony Minessale
anthony.minessale at gmail.com
Thu Oct 23 10:26:10 EDT 2008
See this one?
2008-10-23 14:38:49 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
Hangup sofia/external/0662 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
try
session.setAutoHangup(false);
to keep the call from getting hungup when the script exits.
BTW, you seem to be using older code. Keep in mind my advice is coming
from the perspective of latest code.
On Thu, Oct 23, 2008 at 8:54 AM, Birgit Arkesteijn <birgit at westhawk.co.uk>wrote:
> Hi Anthony,
>
> No, I didn't even think of trying it, so sure was I that it possibly
> couldn't be this simple. :-) Sorry. It's great that it works this way!
>
> I amended the Wiki page
> (http://wiki.freeswitch.org/wiki/Session#Constructor)
> (I'll try to do that more often now that I seem to learn more and more).
>
> This is what I ended up with:
> log("create new consumer session object: " + uuid);
> var cSession = new Session(uuid);
> cSession.execute("bridge", customer_service_url);
>
>
> Unfortunately it doesn't help me with my problem.
> Immediately after the bridging statement, both endpoints hang up instead
> of being able to talk to each other. :-(
>
> The debug on freeswitch.log is rather long, but in case it helps, I
> added it below.
>
> Thanks, Birgit
>
>
>
> 2008-10-23 14:38:44 [INFO] dispatcher_general.js:76 console_log() create
> new consumer session object: e8741150-a107-11dd-9827-8999dffafa32
> 2008-10-23 14:38:44 [NOTICE] switch_channel.c:534
> switch_channel_set_name() New Channel sofia/external/0663
> [e9397f30-a107-11dd-9827-8999dffafa32]
> 2008-10-23 14:38:44 [DEBUG] mod_sofia.c:1870 sofia_outgoing_channel()
> sofia/external/0663 State Change CS_NEW -> CS_INIT
> 2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0663 Running State Change CS_INIT
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
> switch_core_session_run() (sofia/external/0663) State INIT
> 2008-10-23 14:38:44 [DEBUG] mod_sofia.c:80 sofia_on_init()
> sofia/external/0663 SOFIA INIT
> 2008-10-23 14:38:44 [NOTICE] switch_core_session.c:802
> switch_core_session_thread() Session 9 (sofia/external/0662) Ended
> 2008-10-23 14:38:44 [NOTICE] switch_core_session.c:804
> switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
> 2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:44 [DEBUG] switch_core_io.c:365
> switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
> switch_core_session_run() (sofia/external/0662) State CONSUME_MEDIA
> going to sleep
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0662 Running State Change
> CS_SOFT_EXECUTE
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
> switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE
> 2008-10-23 14:38:44 [DEBUG] mod_sofia.c:329 sofia_on_soft_execute()
> SOFIA TRANSMIT
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:171
> switch_core_standard_on_soft_execute() Standard TRANSMIT
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:436
> switch_core_session_run() (sofia/external/0662) State SOFT_EXECUTE going
> to sleep
> 2008-10-23 14:38:44 [DEBUG] sofia_glue.c:459
> sofia_glue_ext_address_lookup() Stun Success [192.67.4.56]:[19904]
> 2008-10-23 14:38:44 [DEBUG] mod_sofia.c:107 sofia_on_init()
> sofia/external/0663 State Change CS_INIT -> CS_ROUTING
> 2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:415
> switch_core_session_run() (sofia/external/0663) State INIT going to sleep
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0663 Running State Change
> CS_ROUTING
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
> switch_core_session_run() (sofia/external/0663) State ROUTING
> 2008-10-23 14:38:44 [DEBUG] mod_sofia.c:119 sofia_on_routing()
> sofia/external/0663 SOFIA ROUTING
> 2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:57
> originate_on_routing() sofia/external/0663 State Change CS_ROUTING ->
> CS_CONSUME_MEDIA
> 2008-10-23 14:38:44 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:420
> switch_core_session_run() (sofia/external/0663) State ROUTING going to
> sleep
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0663 Running State Change
> CS_CONSUME_MEDIA
> 2008-10-23 14:38:44 [DEBUG] switch_core_state_machine.c:442
> switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
> 2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
> [nua_i_state] status [0][INVITE sent] session: sofia/external/0663
> 2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
> Channel sofia/external/0663 entering state [calling]
> 2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
> [nua_r_invite] status [407][Proxy Authentication Required] session:
> sofia/external/0663
> 2008-10-23 14:38:44 [DEBUG] sofia_reg.c:946
> sofia_reg_handle_sip_r_challenge() Authenticating 'FreeSWITCH' with
> 'Digest:"westhawk.co.uk":apso:doneright'.
> 2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
> [nua_i_state] status [0][INVITE sent] session: sofia/external/0663
> 2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
> Channel sofia/external/0663 entering state [calling]
> 2008-10-23 14:38:44 [DEBUG] switch_ivr_originate.c:1059
> switch_ivr_originate() Raw Codec Activation Success L16 at 8000hz 1 channel
> 20ms
> 2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
> [nua_r_invite] status [180][Ringing] session: sofia/external/0663
> 2008-10-23 14:38:44 [DEBUG] sofia.c:194 sofia_event_callback() event
> [nua_i_state] status [180][Ringing] session: sofia/external/0663
> 2008-10-23 14:38:44 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
> Channel sofia/external/0663 entering state [proceeding]
> 2008-10-23 14:38:44 [NOTICE] sofia.c:1786 sofia_handle_sip_i_state()
> Ring-Ready sofia/external/0663!
> 2008-10-23 14:38:44 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:47 [DEBUG] sofia.c:1748 sofia_handle_sip_i_state()
> Channel sofia/external/0663 entering state [ready]
> 2008-10-23 14:38:47 [DEBUG] sofia.c:1752 sofia_handle_sip_i_state()
> Remote SDP:
> v=0
> o=root 17317 17317 IN IP4 192.67.4.83
> s=session
> c=IN IP4 192.67.4.83
> t=0 0
> m=audio 19446 RTP/AVP 8 0 3 10 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:0 PCMU/8000
> a=rtpmap:3 GSM/8000
> a=rtpmap:10 L16/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
>
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
> Audio Codec Compare [PCMA:8:8000]/[L16:10:8000]
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
> Audio Codec Compare [PCMA:8:8000]/[PCMU:0:8000]
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2160 sofia_glue_negotiate_sdp()
> Audio Codec Compare [PCMA:8:8000]/[PCMA:8:8000]
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1451
> sofia_glue_tech_set_codec() Set Codec sofia/external/0663 PCMA/8000 20
> ms 160 samples
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:2123 sofia_glue_negotiate_sdp()
> Set 2833 dtmf payload to 101
> 2008-10-23 14:38:47 [DEBUG] sofia_glue.c:1651 sofia_glue_activate_rtp()
> AUDIO RTP [sofia/external/0663] 192.67.4.56 port 19904 -> 192.67.4.83
> port 19446 codec: 8 ms: 20
> 2008-10-23 14:38:47 [DEBUG] switch_rtp.c:738 switch_rtp_create()
> Starting timer [soft] 160 bytes per 20000ms
> 2008-10-23 14:38:47 [DEBUG] switch_channel.c:1540
> switch_channel_perform_mark_answered() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:47 [NOTICE] sofia.c:2110 sofia_handle_sip_i_state()
> Channel [sofia/external/0663] has been answered
> 2008-10-23 14:38:47 [DEBUG] switch_ivr_originate.c:1322
> switch_ivr_originate() Originate Resulted in Success: [sofia/external/0663]
> 2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:47 [DEBUG] switch_ivr_bridge.c:759
> switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
> CS_CONSUME_MEDIA -> CS_EXCHANGE_MEDIA
> 2008-10-23 14:38:47 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:442
> switch_core_session_run() (sofia/external/0663) State CONSUME_MEDIA
> going to sleep
> 2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0663 Running State Change
> CS_EXCHANGE_MEDIA
> 2008-10-23 14:38:47 [DEBUG] switch_core_state_machine.c:433
> switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
> 2008-10-23 14:38:47 [DEBUG] mod_sofia.c:323 sofia_on_exchange_media()
> SOFIA LOOPBACK
> 2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:47 [DEBUG] switch_core_io.c:365
> switch_core_session_read_frame() Engaging Read Buffer at 320 bytes
> 2008-10-23 14:38:47 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] mod_conference.c:1997
> conference_loop_output() Channel leaving conference, cause: NONE
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:49 [INFO] dispatcher_general.js:76 console_log() after
> cSession in conf
> 2008-10-23 14:38:49 [NOTICE] mod_spidermonkey.c:2860 session_destroy()
> Hangup sofia/external/0662 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]
> 2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
> switch_channel_perform_hangup() Kill sofia/external/0662 [KILL]
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] mod_conference.c:1190
> conference_thread_run() Write Lock ON
> 2008-10-23 14:38:49 [DEBUG] mod_conference.c:1193
> conference_thread_run() Write Lock OFF
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:281
> audio_bridge_thread() read: sofia/external/0662 Bad Frame.... Bubye!
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
> audio_bridge_thread() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
> audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0662]
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:765
> switch_ivr_multi_threaded_bridge() sofia/external/0663 State Change
> CS_EXCHANGE_MEDIA -> CS_RESET
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0662 Running State Change
> CS_HANGUP
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
> switch_core_session_run() (sofia/external/0662) State HANGUP
> 2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
> sofia/external/0662 hanging up, cause: NORMAL_CLEARING
> 2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
> BYE to sofia/external/0662
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
> switch_core_standard_on_hangup() Standard HANGUP sofia/external/0662,
> cause: NORMAL_CLEARING
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
> switch_core_session_run() (sofia/external/0662) State HANGUP going to sleep
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
> switch_core_session_thread() Session 11 (sofia/external/0662) Locked,
> Waiting on external entities
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:430
> switch_core_session_receive_message() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:350
> audio_bridge_thread() Kill sofia/external/0662 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] switch_ivr_bridge.c:353
> audio_bridge_thread() BRIDGE THREAD DONE [sofia/external/0663]
> 2008-10-23 14:38:49 [NOTICE] switch_ivr_bridge.c:382
> audio_bridge_on_exchange_media() Hangup sofia/external/0663 [CS_RESET]
> [NORMAL_CLEARING]
> 2008-10-23 14:38:49 [DEBUG] switch_channel.c:1361
> switch_channel_perform_hangup() Kill sofia/external/0663 [KILL]
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:720
> switch_core_session_signal_state_change() Kill sofia/external/0663 [BREAK]
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:433
> switch_core_session_run() (sofia/external/0663) State EXCHANGE_MEDIA
> going to sleep
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:365
> switch_core_session_run() sofia/external/0663 Running State Change
> CS_HANGUP
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
> switch_core_session_run() (sofia/external/0663) State HANGUP
> 2008-10-23 14:38:49 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel
> sofia/external/0663 hanging up, cause: NORMAL_CLEARING
> 2008-10-23 14:38:49 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending
> BYE to sofia/external/0663
> 2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
> switch_core_session_thread() Session 11 (sofia/external/0662) Ended
> 2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
> switch_core_session_thread() Close Channel sofia/external/0662 [CS_HANGUP]
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:46
> switch_core_standard_on_hangup() Standard HANGUP sofia/external/0663,
> cause: NORMAL_CLEARING
> 2008-10-23 14:38:49 [DEBUG] switch_core_state_machine.c:393
> switch_core_session_run() (sofia/external/0663) State HANGUP going to sleep
> 2008-10-23 14:38:49 [DEBUG] switch_core_session.c:784
> switch_core_session_thread() Session 12 (sofia/external/0663) Locked,
> Waiting on external entities
> 2008-10-23 14:38:49 [NOTICE] switch_core_session.c:802
> switch_core_session_thread() Session 12 (sofia/external/0663) Ended
> 2008-10-23 14:38:49 [NOTICE] switch_core_session.c:804
> switch_core_session_thread() Close Channel sofia/external/0663 [CS_HANGUP]
>
>
> On 23/10/08 14:09, Anthony Minessale wrote:
> > Did you ever try it =D
> > because yes that should work. Constructor takes either a uuid string or
> > a originate string.
> >
> >
> >
> > On Thu, Oct 23, 2008 at 6:02 AM, Birgit Arkesteijn
> > <birgit at westhawk.co.uk <mailto:birgit at westhawk.co.uk>> wrote:
> >
> > Hi,
> >
> > Just a thought ... is there a way in javascript to (re)create a
> session
> > object given an existing uuid?
> >
> > If that was the case, I could do something like:
> > var session = new Session (uuid);
> > session.bridge(customer_service_url);
> >
> > If that's not possible, I appreciate any thought about my current
> setup.
> >
> > Thanks, Birgit
>
>
> --
> -- 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>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at 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/
AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081023/a59a6b85/attachment-0001.html
More information about the Freeswitch-users
mailing list