Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-29 Thread Pranathi Venkatayogi
> Sent: Thursday, December 29, 2016 6:31 AM > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised > public IP. > > Hi, > not sure if I understood it right but, have you defined the > advertised_address ? Th

Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-29 Thread Fred Posner
31 AM > To: sr-users@lists.sip-router.org > Subject: Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised > public IP. > > Hi, > not sure if I understood it right but, have you defined the > advertised_address ? That should be used in Via and RR as well: >

Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-29 Thread Pranathi Venkatayogi
] On Behalf Of Daniel Grotti Sent: Thursday, December 29, 2016 6:31 AM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP. Hi, not sure if I understood it right but, have you defined the advertised_address ? That should be used

Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-29 Thread Daniel Grotti
Hi, not sure if I understood it right but, have you defined the advertised_address ? That should be used in Via and RR as well: https://www.kamailio.org/wiki/cookbooks/4.4.x/core#advertised_address Daniel On 12/29/2016 12:09 AM, Pranathi Venkatayogi wrote: I implemented full NAT logic as

Re: [SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-28 Thread Pranathi Venkatayogi
I implemented full NAT logic as per the sample config. Still unable to resolve the issue. How do I let Kamailio change record_route header to use public ip address? Please help!!! (attached are latest scripts) From: Pranathi Venkatayogi Sent: Wednesday, December 28, 2016 12:39 PM To:

[SR-Users] Kamailio behind NAT, ACK to private IP not advertised public IP.

2016-12-28 Thread Pranathi Venkatayogi
Hi, I am encountering the same problem described in google groups. However I dint not find any resolution hence writing again. 200 OK sent from the server has private Ip in its record route. As you see below, though the

Re: [SR-Users] Kamailio behind NAT

2016-03-21 Thread Daniel-Constantin Mierla
Hello, do you have port 5060 forwarding from firewall to kamailio local IP address? Cheers, Daniel On 17/03/16 08:24, Safdar Khan wrote: > Hello > I have been running kamailio on local network including rtpengine and > freeswitch. > Now i am configuring kamailio with my public IP(trying with

[SR-Users] Kamailio behind NAT

2016-03-19 Thread Safdar Khan
Hello I have been running kamailio on local network including rtpengine and freeswitch. Now i am configuring kamailio with my public IP(trying with stock kamailio configuration to get started) #define WITH_NAT listen=udp:192.168.3.32:5060 listen=tcp:192.168.3.32:5060 advertised_address=

[SR-Users] Kamailio behind NAT - Wrong VIA Header

2014-11-03 Thread Marko Seidenglanz
Hello, We are using Kamailio 4.2 and RTPEngine 3.3 hosted on a VM behind NAT in Google Cloud Engine. Asterisk 11 + Kamailio + RTPEngine are on the same machine and Kamailio is used as WebRTC Gateway. INVITES, that are rewritten by Kamailio look like the following: INVITE

Re: [SR-Users] Kamailio behind NAT - Wrong VIA Header

2014-11-03 Thread Daniel-Constantin Mierla
Hello, On 03/11/14 10:43, Marko Seidenglanz wrote: Hello, We are using Kamailio 4.2 and RTPEngine 3.3 hosted on a VM behind NAT in Google Cloud Engine. Asterisk 11 + Kamailio + RTPEngine are on the same machine and Kamailio is used as WebRTC Gateway. INVITES, that are rewritten by

[SR-Users] Kamailio behind NAT (Asterisk - Kamailio - RTPEngine - Browser)

2014-10-24 Thread Marko Seidenglanz
Hello, I have a problem with the following configuration. I want to make calls from Asterisk to a browser using RTPEngine as relay. Everything works fine, if Kamailio is not natted (See kamailio_without_nat.log). If it's address is translated, then 200 OK responses from the browser don't seem

[SR-Users] Kamailio behind NAT (Asterisk - Kamailio - RTPEngine - Browser)

2014-10-23 Thread Marko Seidenglanz
Hello, I have a problem with the following configuration. I want to make calls from Asterisk to a browser using RTPEngine as relay. Everything works fine, if Kamailio is not natted (See kamailio_without_nat.log). If it's address is translated, then 200 OK responses from the browser don't seem

Re: [SR-Users] Kamailio behind NAT- alias issue

2014-08-03 Thread Yuriy Gorlichenko
Thanks for advice/ My kamailio starts and now listening my external address, but I still see errors of tm module ERROR: tm [ut.h:272]: uri2dst2(): ERROR: uri2dst: bad_uri: sip.myserver.com Aug 3 07:45:31 Kamailio kamailio: ERROR: tm [uac.c:266]: t_uac_prepare(): t_uac: no socket found

[SR-Users] Kamailio behind NAT- alias issue

2014-08-02 Thread Yuriy Gorlichenko
Hello. I have Kamailio running behind NAT. It lesten eth0 with ip 192.168.0.3 and I have external IP that have domain name (for example sip.myserver.com). Register packets from clients comes from external IP. If I write at kamailio.cfg: alias=sip.myserver.com I see error at log - bad_uri

Re: [SR-Users] Kamailio behind NAT- alias issue

2014-08-02 Thread Fred Posner
Hello Yuriy, If I write at kamailio.cfg: alias=sip.myserver.com I see error at log - bad_uri sip.myserver.com try adding the port... alias=sip.myserver.com:5060 Also, since you're behind NAT make sure you also advertise the address with advertised_address=sip.myserver.com. Fred Posner The

Re: [SR-Users] Kamailio behind NAT

2014-01-30 Thread John Smith
] Kamailio behind NAT On 01/24/2014 09:51 AM, Andrew Pogrebennyk wrote: On 01/23/2014 05:12 PM, Klaus Darilion wrote: It is necessary to use the cwie / cwei flags in the rtpproxy_manage call? If rtpproxy uses only a single listen-IP, then these flags are not needed. Only if you operate

Re: [SR-Users] Kamailio behind NAT

2014-01-30 Thread John Smith
Hello Andrew, I did not know this function. I am using it to determine the direction of the flow. Thank you - Original Message - From: Andrew Pogrebennyk Sent: 01/24/14 06:51 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 01/23/2014 05

Re: [SR-Users] Kamailio behind NAT

2014-01-30 Thread John Smith
: Klaus Darilion Sent: 01/23/14 08:12 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 23.01.2014 10:29, John Smith wrote: Hello Klaus, I had already two sockets bound each to two independent physical interfaces. I have added the force_send_socket

Re: [SR-Users] Kamailio behind NAT

2014-01-30 Thread Klaus Darilion
: [SR-Users] Kamailio behind NAT On 23.01.2014 10:29, John Smith wrote: Hello Klaus, I had already two sockets bound each to two independent physical interfaces. I have added the force_send_socket at each rtpproxy Just for clarity: force_send_socket is for near_end NAT traversal of the SIP

Re: [SR-Users] Kamailio behind NAT

2014-01-24 Thread Fred Posner
On 01/24/2014 09:51 AM, Andrew Pogrebennyk wrote: On 01/23/2014 05:12 PM, Klaus Darilion wrote: It is necessary to use the cwie / cwei flags in the rtpproxy_manage call? If rtpproxy uses only a single listen-IP, then these flags are not needed. Only if you operate rtpproxy in bridge mode,

Re: [SR-Users] Kamailio behind NAT

2014-01-24 Thread Andrew Pogrebennyk
On 01/23/2014 05:12 PM, Klaus Darilion wrote: It is necessary to use the cwie / cwei flags in the rtpproxy_manage call? If rtpproxy uses only a single listen-IP, then these flags are not needed. Only if you operate rtpproxy in bridge mode, then you need these flags. Bridge mode is necessary

Re: [SR-Users] Kamailio behind NAT

2014-01-23 Thread Klaus Darilion
Am 21.01.2014 17:33, schrieb John Smith: The next test has been to comment out the rtpproxy_manage at NATMANAGE function and to put it both at route[RELAY] and onreply(route) following your post in this list from January

Re: [SR-Users] Kamailio behind NAT

2014-01-23 Thread John Smith
at Kamailio. Thank you for your help - Original Message - From: Klaus Darilion Sent: 01/23/14 12:26 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT Am 21.01.2014 17:33, schrieb John Smith: The next test has been to comment out the rtpproxy_manage

Re: [SR-Users] Kamailio behind NAT

2014-01-23 Thread Klaus Darilion
On 23.01.2014 10:29, John Smith wrote: Hello Klaus, I had already two sockets bound each to two independent physical interfaces. I have added the force_send_socket at each rtpproxy Just for clarity: force_send_socket is for near_end NAT traversal of the SIP signaling, whereas

[SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
Hello, I am currently deploying one Kamailio behind NAT with one Asterisk as explained in the Asipto KB (Kamailio 4.0.x and Asterisk 11.3.0 using Asterisk Database http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb ). The structure is deployed as described in that

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Fred Posner
With a patched version of rtpproxy you can advertise your private ip. http://www.fredposner.com/voip/1457/kamailio-behind-nat/ ---Fred On Jan 21, 2014, at 6:18 AM, John Smith jsmith...@mail.com wrote: Hello, I am currently deploying one Kamailio behind NAT with one Asterisk as

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
Hi Fred, I have followed your HOWTO and the scenario remains exactly the same. I see traffic from Phone1 IP to Kamailio private IP, from Kamailio private IP to Asterisk IP, and back directly to Phone2 public IP. I might be making wrong assumptions regarding this traffic flow. Is that correct?

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread meres
Hi John, rtpproxy is not enough if you are using asterisk in your environment. You have to check that asterisk is configured to work with NAT, otherwise you will experience audio problems. Are the asterisk RTP ports enabled/forwarded on your firewall? Regards, Kostas On Jan 21, 2014, at

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Klaus Darilion
On 21.01.2014 12:27, Fred Posner wrote: With a patched version of rtpproxy you can advertise your private ip. http://www.fredposner.com/voip/1457/kamailio-behind-nat/ Aha, nice. Haven't known of this one. I always specified the adverstised IP address when calling manage_rtpproxy(). That

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Klaus Darilion
On 21.01.2014 13:24, John Smith wrote: I might be making wrong assumptions regarding this traffic flow. Is that correct? That depends on your policy. It is up to you to define how RTP should be routed. There are basically 2 choices: a) RTP from clients is handled by rtpproxy: phone1

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Klaus Darilion
Actually, it should work without any NAT traversal done in Asterisk, if Asterisk communicates never direct with the phones, but only via Kamailio and rtpproxy. In this case, Asterisk can use private IP addresses. All the near-end NAT traversal can be done in Kamailio. regards Klaus On

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
/14 05:06 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT Hi John, rtpproxy is not enough if you are using asterisk in your environment. You have to check that asterisk is configured to work with NAT, otherwise you will experience audio problems

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
and then rewrite via rtpproxy_offer in the NATMANAGE block? Thank you - Original Message - From: Klaus Darilion Sent: 01/21/14 05:25 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 21.01.2014 13:24, John Smith wrote: I might be making wrong

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
Using advertised IP address in manage_rttproxy would work with unpatched rtpproxy? Thank you - Original Message - From: Klaus Darilion Sent: 01/21/14 05:18 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 21.01.2014 12:27, Fred Posner

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Ovidiu Sas
(SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 21.01.2014 12:27, Fred Posner wrote: With a patched version of rtpproxy you can advertise your private ip. http://www.fredposner.com/voip/1457/kamailio-behind-nat/ Aha, nice. Haven't known of this one. I always

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread Klaus Darilion
? To check if the IP is from the outside and then rewrite via rtpproxy_offer in the NATMANAGE block? Thank you - Original Message - From: Klaus Darilion Sent: 01/21/14 05:25 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT On 21.01.2014 13:24, John

Re: [SR-Users] Kamailio behind NAT

2014-01-21 Thread John Smith
here? Thank you - Original Message - From: Klaus Darilion Sent: 01/21/14 07:25 AM To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Kamailio behind NAT Yes, when calling rtpproxy (whatever function you use, manage/offer/answer/force), every function accepts

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.2013

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-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

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 o...@voipembedded.com wrote: Hello Klauss, I use record_route_preset for this kind of scenarios:

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.

[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--\|