Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] bypass media


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
juanbackson at gmail.com
Guest





PostPosted: Sat Aug 23, 2008 2:31 am    Post subject: [Freeswitch-users] bypass media Reply with quote

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
Back to top
anthony.minessale at g...
Guest





PostPosted: Sat Aug 23, 2008 12:10 pm    Post subject: [Freeswitch-users] bypass media Reply with quote

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 (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 (juanbackson@gmail.com)> wrote:
Quote:
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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services