Re: [SR-Users] SIPURI sending private IP address

2014-12-29 Thread Cibin Paul
Thanks a lot Luis. It worked like a charm. Regards Cibin > On 28-Dec-2014, at 9:50 am, Cibin Paul wrote: > > Thanks Luis. I will check today and inform you. > > Regards > Cibin > > On 28-Dec-2014, at 9:06 am, Luis Jimenez > wrote: > >> You can send the info

Re: [SR-Users] SIPURI sending private IP address

2014-12-28 Thread Cibin Paul
Thanks Luis. I will check today and inform you. Regards Cibin > On 28-Dec-2014, at 9:06 am, Luis Jimenez wrote: > > You can send the info you need to Asterisk using X headers, for example: > > Kamailio has the pseudo variable $si which contains the public IP originating > the request and you

Re: [SR-Users] SIPURI sending private IP address

2014-12-28 Thread Luis Jimenez
You can send the info you need to Asterisk using X headers, for example: Kamailio has the pseudo variable $si which contains the public IP originating the request and you can send that to Asterisk using append_hf. append_hf("X-orig-IP: $si"); In Asterisk you can access the headers as ${SIP_HE

Re: [SR-Users] SIPURI sending private IP address

2014-12-27 Thread Cibin Paul
Hey, thanks for looking into this. Phones register with kamailio and I have configured kamailio to load balance the asterisk servers using round robin algorithm. Phones registered in kamailio will directly send the call to the asterisk servers. From there I will send the call out using other ro

Re: [SR-Users] SIPURI sending private IP address

2014-12-27 Thread Daniel-Constantin Mierla
Hello, I am not that familiar with asterisk to know all the insides SIPURI and SIPCHANNEL(recvip), you have to explain which fields you need from the SIP packet in order to be able to assist further, unless someone else more familiar with asterisk can jump in. Also, it is not clear how the flow i

[SR-Users] SIPURI sending private IP address

2014-12-26 Thread Cibin Paul
Hi, I have a kamailio 4.1 as a gateway and registrar behind asterisk servers. On asterisk, I save the IP address of the originating call parsing the SIPURI or SIPCHANNEL(recvip). In both cases, I am receiving the private ip of the user agent registered with kamailio. Do I need to change anythi