[Freeswitch-users] bypass media only if on same subnet?
anthony.minessale at gmail.com
Tue Feb 14 02:35:01 MSK 2012
You can also turn off bypass in the profile and turn on late
negotiation then set bypass_media=true selectively based on dialplan
logic, lua_script, xml_curl etc...
On Mon, Feb 13, 2012 at 12:03 PM, Michael Collins <msc at freeswitch.org> wrote:
> Well, there is this API:
> You might be able to do something like api_on_answer on the bridge. The key
> for you is just doing a condition that matches when the caller and callee
> are in the same office. All things being equal, how do you know when the
> caller and callee are in the same office?
> On Mon, Feb 13, 2012 at 8:59 AM, Tim St. Pierre
> <fs-list at communicatefreely.net> wrote:
>> In order to eliminate NAT issues, we have built routable tunnels to our
>> larger customers so that their phones are on a private subnet that is
>> routable to a private subnet at our datacenter. Each Freeswitch system
>> has a profile called nonat that uses an interface and address bound to
>> this network. The remaining customers register to the "internal"
>> profile, which is bound to a public IP address.
>> At the moment, everything works just great - no nat issues, instant
>> failover between the primary and secondary (shared registrations in DB),
>> but all media flows through our network.
>> If someone in office A calls another phone in office A, I would like FS
>> to instruct the phones to send their media direct. The addresses and
>> ports are all correct in this case.
>> If someone in office A calls a phone in office B, I want Freeswitch to
>> stay in the media path, as these two offices are not routable to each
>> other, even though each is routable to Freeswitch.
>> Is there a way to set up a profile (or dialplan) so that FS will bypass
>> media only if the two endpoints are on the same subnet? An ACL isn't
>> really the right thing, since it would require an exponential number of
>> ACLs. Also, many calls go to ring groups, where several phones ring and
>> we don't know which one will answer until it actually does (eliminating
>> some sort of dialplan code using the rtp variables).
>> Is this possible?
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> Official FreeSWITCH Sites
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
Anthony Minessale II
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users