Hi, Is there anyway that I can tell if one of either leg A or leg B is a client behind NAT? I would like to find a way to do that in order to dynamically determine whether bypass_media or proxy_media should be used. Thanks, JB
route the call to the info app to test out all the things you can use in the regex. <action application="info"/> anything you see that starts with variable_ is available as a variable so variable_sip_from_domain: cool.com can be accessed as ${sip_from_domain} There is for sure some stuff in there that will tell you. Any variable is valid in the field attr of a condition ex. <condition field="${sip_from_domain}" expression="cool.com"/> also you can use the function sofia_contact to do a regex on the contact addr of the registered user ${sofia_contact(1000@xyz.com)} Much of this should be documented in the default configs in tree and on the wiki http://wiki.freeswitch.org/wiki/Mod_dialplan_xml On Sat, Aug 23, 2008 at 2:28 AM, Juan Backson <juanbackson@gmail.com> wrote:
Hi,
Is there anyway that I can tell if one of either leg A or leg B is a client behind NAT? I would like to find a way to do that in order to dynamically determine whether bypass_media or proxy_media should be used.
Thanks, JB
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
Juan Backson