I think we are on the right way) still does not work, but there is hope)First of all, this script does not produce any reinvite either (even if replace bypass_media to bypass_media_after_bridge, or set bypass_media only on one channel):<<<<<<<<<<<<<<<<<<<<<<<<<<<<<_______________________________________________session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}user/1001");session2 = new Session("{bypass_media=true,ignore_early_media=true} user/1001");bridge(session, session2);>>>>>>>>>>>>>>>>>>>>>>>>>>>>>BUT! if I run the following script:<<<<<<<<<<<<<<<<<<<<<<<<<<<<<And then manually type in the consolesession = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true} user/1001");session2 = new Session("{bypass_media=true,ignore_early_media=true}user/1001");>>>>>>>>>>>>>>>>>>>>>>>>>>>>>uuid_media off <uuid of my session>- then I get the reINVITE!BUT! When I try to write it to the script:<<<<<<<<<<<<<<<<<<<<<<<<<<<<<session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}sofia/external/timwork@novion.ru");session2 = new Session("{bypass_media=true,ignore_early_media=true}sofia/external/timwork@novion.ru");bridge(session, session2);apiExecute('uuid_media off '+session.uuid); // <-- this line is not executed, because bridge hangs up untill BYE>>>>>>>>>>>>>>>>>>>>>>>>>>>>>the last line is not executed, because bridge hangs up untill BYEThen I've tried to do like this:<<<<<<<<<<<<<<<<<<<<<<<<<<<<<session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}user/1001");session2 = new Session("{bypass_media=true,ignore_early_media=true}user/1001");session.setAutoHangup(false)session2.setAutoHangup(false)apiExecute("uuid_bridge "+session.uuid+" "+session2.uuid);apiExecute('uuid_media off '+session.uuid);>>>>>>>>>>>>>>>>>>>>>>>>>>>>>But sessions do not get bridged -( Even if I insert session.ready() after each call.Any ideas on how to call the functions correctly to get the reINVITE?Best regards,Timur Valishev2010/2/5 Brian West <brian@freeswitch.org>
set it inside each of the {} for each session you create its not set after the fact the call is up already... you're setting it too late.you an also issue uuid_media off <uuid>/bOn Feb 5, 2010, at 2:18 AM, Timur Valishev wrote:I've modified my script to make sure: <<<<<<<<<<<<<<<<<<<<<<<<<<<<,session = new Session("{ignore_early_media=true,hangup_after_bridge=true}sofia/external/timwork@novion.ru");session2 = new Session("{ignore_early_media=true}sofia/external/timwork@novion.ru");session.setVariable('bypass_media', 'true');session2.setVariable('bypass_media', 'true');bridge(session, session2);
_______________________________________________
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
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