[SR-Users] rtpproxy bridge "ie" "ei" behind NAT (like in aws EC2)

Muhammad Shahzad shaheryarkh at gmail.com
Mon Feb 16 18:45:18 CET 2015


BTW, if nothing works, you can always use "network:msg" event route to find
/ replace any part of the SIP request and response, including media IP in
SDP. ;-)

http://kamailio.org/docs/modules/4.2.x/modules/corex.html#async.evr.network_io

Thank you.



On Mon, Feb 16, 2015 at 6:39 PM, Muhammad Shahzad <shaheryarkh at gmail.com>
wrote:

> I haven't done something like that myself but i think if you use RTPEngine
> with "media-address" set correctly in offer and answer functions, you can
> easily achieve this. Simply check if request/reply is coming from FS or the
> end-user and adjust the media appropriately without even invoking
> auto-bridge etc.
>
> Thank you.
>
>
>
> On Mon, Feb 16, 2015 at 5:30 PM, Giovanni Maruzzelli <gmaruzz at gmail.com>
> wrote:
>
>> dear Kamailians,
>>
>> I have Kamailio+rtpproxy in front of FreeSWITCH.
>>
>> Kamailio and FreeSWITCH are on the same private network.
>> Public Internet IP address ports are redirected to Kamailio and
>> rtpproxy (same situation as in Amazon EC2).
>> Clients comes from Internet, and make calls to Internet, SIP signaling
>> passing through FreeSWITCH (eg: A leg incoming INVITE, FreeSWITCH
>> originate an outbound B leg INVITE, and then bridge the legs).
>>
>> Using rtpproxy with -A "advertise" patch from Daniel, this topology
>> works fine in a "traditional" telco way: rtp goes from caller to
>> rtpproxy to callee, and viceversa.
>>
>> Now I want to maintain FreeSWITCH in the middle of rtp flow all the
>> time, in a pure b2bua way, so it can control and analyze the media
>> streams.
>>
>> So, I need rtpproxy to act paying attention to direction, as in
>> caller->rtpproxy->freeswitch->rtpproxy->callee (and viceversa).
>>
>> Normally I would use Kamailio multihomed and rtpproxy in bridging
>> mode. But I cannot have a NIC on the public address.
>>
>> How I can use the "ie" "ei" feature of rtpproxy in an Amazon-EC2 like
>> environment? (eg: no public address attached to machine, but ports
>> redirection from public address).
>>
>> I read this trick from Hugh Waite:
>>
>> "I have used rtpproxy (with the advertised address patch) in Amazon to
>> bridge media between internet facing and private subnets in a VPC.
>> I found that I couldn’t use different advertised addresses depending
>> on which direction the signalling was going on a single private IP
>> address. I worked around this by allocating a second private ip
>> address to the instance and used that in the ‘bridge’.
>> -A 54.86.X.X/10.0.1.15 –l 10.0.1.10/10.0.1.15"
>>
>> Can you explain how to use this trick, or another way (without
>> additional addresses is gladly accepted!) to reach the same result
>> (rtp always passing through FreeSWITCH) ?
>>
>> Thank you all in advance,
>>
>> -giovanni
>>
>> --
>> Sincerely,
>>
>> Giovanni Maruzzelli
>> Cell : +39-347-2665618
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150216/5b9ab9c8/attachment.html>


More information about the sr-users mailing list