Hi,

IMHO, variables are used only in bridge in dialplan.
When doing bridge manualy via JS, you must call api uuid_media off <uuid> after the bridge of the call, maybe with an execute_on_brigde variable.

Take care that your A and B legs can "see" each other without funky nat, uuid_media not renegociate RTP port.

Hope i'm right and it helps you ;)

regards



2012/11/7 Víctor Vladimir Chávez Gallardo <vivlachaga@gmail.com>
Hi, i have an spidermonkey script, the script place two outbound calls, but i need to set the RTP directly between the legs (a-b) but i dont know hoy to set the parameter bypass_media

i tried:
lega_session.setVariable('bypass_media', 'true');
bridge(lega_session,legb_session);

also

lega_session.setVariable('bypass_media', 'true');
legb_session.setVariable('bypass_media', 'true');
bridge(lega_session,legb_session);

and also setting another variable bypass_media_after_bridge

lega_session.setVariable('bypass_media_after_bridge', 'true');
legb_session.setVariable('bypass_media_after_bridge', 'true');
lega_session.setVariable('bypass_media', 'true');
legb_session.setVariable('bypass_media', 'true');
bridge(lega_session,legb_session);


but i dont have the RTP in the correct way, instead my freeswitch it's behind, the rtp flow:  LEG-A -----> FREESWITCH -------> LEG-B

any idea?

_________________________________________________________________________
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