Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-27 Thread SamyGo
+1 Klaus - I used your tips and Kamailio is working great behind NAT. I'll try to test different types of NATs and see if SIP and RTP works perfectly for all scenarios. Thanks and cheers Sammy On Fri, Jan 11, 2013 at 1:42 PM, Klaus Darilion < klaus.mailingli...@pernau.at> wrote: > Am 11.01.201

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-11 Thread Klaus Darilion
Am 11.01.2013 02:12, schrieb Richard Brady: Hi Klaus Thanks for posting the working solution. You are right that mhomed=1 won't help if the sockets both have same IP address. That's true. Though I think if you used it with two different IPs and the correct routing tables on the OS then it

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-10 Thread Richard Brady
Hi Klaus Thanks for posting the working solution. You are right that mhomed=1 won't help if the sockets both have same IP address. Though I think if you used it with two different IPs and the correct routing tables on the OS then it would work. In any case your solution is a good one. Richard

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-07 Thread Klaus Darilion
Hi all! On 04.01.2013 18:57, Ovidiu Sas wrote: Hello Klauss, I use record_route_preset for this kind of scenarios: http://kamailio.org/docs/modules/3.3.x/modules_k/rr.html#id2550086 That was the main reason that I enhanced record_route_preset with the second parameter (see the Note on string2).

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-07 Thread Klaus Darilion
Hi Richard! I wonder why I have to set mhomed. In the scenario I described both sockets are in the same network segment and I would guess that automatic socket selection will not work and always chooses the same socket. I think I have to set the proper outgoing socket manually with force_send

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-06 Thread Richard Brady
Hey Klaus The way you described works for me (on EC2) and I think is a good solution. Be sure to set mhomed=1 in your config. Richard On 4 January 2013 17:57, Ovidiu Sas wrote: > Hello Klauss, > > I use record_route_preset for this kind of scenarios: > http://kamailio.org/docs/modules/3.3.x/m

Re: [SR-Users] Kamailio behind NAT - best practice

2013-01-04 Thread Ovidiu Sas
Hello Klauss, I use record_route_preset for this kind of scenarios: http://kamailio.org/docs/modules/3.3.x/modules_k/rr.html#id2550086 That was the main reason that I enhanced record_route_preset with the second parameter (see the Note on string2). I haven't tried your idea with two sockets. Let

[SR-Users] Kamailio behind NAT - best practice

2013-01-03 Thread Klaus Darilion
Hi! Up to now I could avoid Kamailio setups with Kamailio behind NAt. But this time I have to deal with it. That's why I want to ask what others did as best practice. The scenario is: Asterisk 1\ Kamailio+RTPPROXY \ |10.10.0.2 Asterisk n--\|