I think we are on the right way) still does not work, but there is hope)<div><br></div><div>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):</div>
<div><br></div><div><<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><div>session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}user/1001");</div>
<div>session2 = new Session("{bypass_media=true,ignore_early_media=true} user/1001");</div><div>bridge(session, session2);</div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></div>
<div><br></div><div>BUT! if I run the following script:</div><div><div><<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><div>session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true} user/1001");</div>
<div>session2 = new Session("{bypass_media=true,ignore_early_media=true}user/1001");</div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></div>
<div><br></div></div>And then manually type in the console</div><div>uuid_media off <uuid of my session></div><div><br></div><div>- then I get the reINVITE!</div><div><br></div><div>BUT! When I try to write it to the script:</div>
<div><div><<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div><div>session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}sofia/external/<a href="mailto:timwork@novion.ru">timwork@novion.ru</a>");</div>
<div>session2 = new Session("{bypass_media=true,ignore_early_media=true}sofia/external/<a href="mailto:timwork@novion.ru">timwork@novion.ru</a>");</div><div>bridge(session, session2);</div><div>apiExecute('uuid_media off '+session.uuid); // <-- this line is not executed, because bridge hangs up untill BYE</div>
<div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></div><div><br></div><div>the last line is not executed, because bridge hangs up untill BYE</div><div>
<br></div><div>Then I've tried to do like this:</div><div><div><<<<<<<<<<<<<<<<<<<<<<<<<<<<<</div><div>session = new Session("{bypass_media=true,ignore_early_media=true,hangup_after_bridge=true}user/1001");</div>
<div>session2 = new Session("{bypass_media=true,ignore_early_media=true}user/1001");</div><div><br></div><div>session.setAutoHangup(false)</div><div>session2.setAutoHangup(false)</div><div><br></div><div>apiExecute("uuid_bridge "+session.uuid+" "+session2.uuid);</div>
<div>apiExecute('uuid_media off '+session.uuid);</div></div><div>>>>>>>>>>>>>>>>>>>>>>>>>>>>>></div><div><br></div><div>But sessions do not get bridged -( Even if I insert session.ready() after each call.</div>
<div><br></div><div>Any ideas on how to call the functions correctly to get the reINVITE?</div></div></div><div><br></div><div>Best regards,</div><div>Timur Valishev</div><div><br><div class="gmail_quote">2010/2/5 Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">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.<div>
<br></div><div>you an also issue uuid_media off <uuid></div><div><br></div><font color="#888888"><div>/b</div></font><div class="im"><div><br><div><div>On Feb 5, 2010, at 2:18 AM, Timur Valishev wrote:</div><br><blockquote type="cite">
<span style="border-collapse:separate;font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div>
I've modified my script to make sure: <<<<<<<<<<<<<<<<<<<<<<<<<<<<,</div><div><em>session = new Session(</em></div><div><em>"{ignore_early_media=true,hangup_after_bridge=true}sofia/external/<a href="mailto:timwork@novion.ru" target="_blank">timwork@novion.ru</a>"</em></div>
<div><em>);</em></div><div><em>session2 = new Session(</em></div><div><em>"{ignore_early_media=true}sofia/external/<a href="mailto:timwork@novion.ru" target="_blank">timwork@novion.ru</a>"</em></div><div><em>);</em></div>
<div><em>session.setVariable('bypass_media', 'true');</em></div><div><em>session2.setVariable('bypass_media', 'true');</em></div><div><em>bridge(session, session2);</em></div></span></blockquote>
</div><br></div></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div></div>