VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
juanbackson at gmail.com Guest
|
Posted: Sat Aug 23, 2008 2:31 am Post subject: [Freeswitch-users] bypass media |
|
|
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
|
Posted: Sat Aug 23, 2008 12:10 pm Post subject: [Freeswitch-users] bypass media |
|
|
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:
--
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 |
|
|
|
|
|
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
|