[SR-Users] Kamailio with public ip, users behind nat

Daniel-Constantin Mierla miconda at gmail.com
Wed May 27 08:13:05 CEST 2015



On 26/05/15 14:04, Daniel Tryba wrote:
> On Tuesday 26 May 2015 13:34:51 MtK - SmartMtK wrote:
>> I understood I need to install RTPproxy, but all tutorials out there are
>> for servers behind nat, and they talk about the server's private IP, which
>> does not exists in this case.
>>
>> how would I configure RTPproxy and Kamailio to allow users to subscribe to
>> the server and have audio calls between them?
> Not all tutorials are for a natted server, eg:
>
> http://nil.uniza.sk/sip/nat-fw/configuring-nat-traversal-using-kamailio-31-and-rtpproxy-server
>
> This setup didn't change from 3.1 to 4.x.x. Just tell rtpproxy what the 
> (public) ipadress  is and it should work. You might want to force the rtpproxy 
> for all calls though.
>
To add that default kamailio.cfg for latest versions, including all 4.x,
have use of rtpproxy incorporated. Read the comments at the top of
kamailio.cfg, one has to enable:

#!define WITH_NAT

and tune the parameters of rtpproxy.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-users mailing list