Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-20 Thread Nelson Migliaro
>From what I saw, Nat´d por does not change. It always use 52548. Questions: 1 - In order to get rport, as you mentioned, i can use transformation. ¿What variable / pseudovariable I can use to get a string that contains rport? 2 - After I get that info, what would be the best way to insert that

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-19 Thread Daniel-Constantin Mierla
To get rport you can use transformations. If you restart kamailio, is the firewall preserving the same value for rport? Cheers, Daniel On 19/01/16 18:18, Nelson Migliaro wrote: > I am thinking that I cat get the port during the first call and then > use that port for the rest of calls. > Maybe t

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-19 Thread Nelson Migliaro
I am thinking that I cat get the port during the first call and then use that port for the rest of calls. Maybe that first call will fail but after that, all calls will go fine. Example of a Trying showing received port: 52548 ¿Do you know what pseudovariable represent that value? I tested with

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Daniel-Constantin Mierla
Ahh, I thought Asterisk is in the public internet, but actually you connect to a provider (vendor), which seems to run Kamailio as well. Using information from 100 trying is too late, as the INVITE was already sent... so one more question before trying to propose a solution. Do you have to registe

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Nelson Migliaro
Yes it is possible, but is there an easy way to workaround the issue using Kamailio. Because I have the port because vendor is sending that info in Trying: 2016/01/13 20:10:15.842055 VENDOR-IP:5060 -> PRIVATE-IP-KAMAILIO:5060 SIP/2.0 100 trying -- your call is important to us Via: SIP/2.0/UDP PUB

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Daniel-Constantin Mierla
Not really up to date with all Asterisk features -- do you know if you can append a custom header to a SIP response that is going to be generated by Asterisk? Eventually the reply for an OPTIONS request. Cheers, Daniel On 14/01/16 17:19, Nelson Migliaro wrote: > Yes, I manage all devices, even th

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Nelson Migliaro
Yes, I manage all devices, even the internet router but it does not allow static pat. 2016-01-14 16:07 GMT+01:00 Daniel-Constantin Mierla : > Do you control the Asterisk? If yes, depending on Asterisk capabilities of > building replies, you may be able to do some automation to detect the > extern

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Daniel-Constantin Mierla
Do you control the Asterisk? If yes, depending on Asterisk capabilities of building replies, you may be able to do some automation to detect the external port. Cheers, Daniel On Thu, Jan 14, 2016 at 3:47 PM, Nelson Migliaro wrote: > There is not a public Kamailio, only one Kamailio behind NAT,

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Nelson Migliaro
There is not a public Kamailio, only one Kamailio behind NAT, Right now the configuration is: Asterisk <-> Kamailio (Private IP + advertise public IP + RTP Proxy ) <-> Internet router (public IP + symmetric na) <-> Internet Regards, 2016-01-14 15:43 GMT+01:00 Daniel-Constantin Mierla : > Is t

Re: [SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Daniel-Constantin Mierla
Is the kamailio behind nat communicating with another kamailio on a public IP? Cheers, DAniel On Thu, Jan 14, 2016 at 1:33 PM, Nelson Migliaro wrote: > Thank you Daniel for your answer, > > As you mention, there is a symmetric nat and router does not allow a > static NAT. > > By sniffing traffi

[SR-Users] Fwd: Kamailio and NAT

2016-01-14 Thread Nelson Migliaro
Thank you Daniel for your answer, As you mention, there is a symmetric nat and router does not allow a static NAT. By sniffing traffic I can see the port is using new but in case it change, how can automate the process of advertising the correct port? Cheers! -- Forwarded message -