Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Ajay Sabat
I added the append_hf() inside the if condition in oureply_route[] block as given below, and it is working. I still want to learn how to store data in a variable to use it later in another block. Thanks, Ajay Hi Daniel, Thanks for your response. But I don't want the IP in the received parame

Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Ajay Sabat
Hi Daniel, Thanks for your response. But I don't want the IP in the received parameter of the incoming request. Instead, I want to read it (i.e. the public IP address of my own network where the local user and Kamailio are located) from the incoming response received from another proxy located

Re: [SR-Users] how to extract the ip address in the via header received paramter

2013-03-13 Thread Daniel-Constantin Mierla
Hello, the received parameter is constructed from source IP of the incoming request. You get it via $si script variable. Cheers, Daniel On 3/12/13 7:22 PM, Ajay Sabat wrote: Hi, I want to extract the IP address in the received parameter of the top most via header of a response and use tha

[SR-Users] how to extract the ip address in the via header received paramter

2013-03-12 Thread Ajay Sabat
Hi, I want to extract the IP address in the received parameter of the top most via header of a response and use that in a custom header while sending response back to the caller. Can somebody please tell how to implement that in the Kamailio configuration file? I need to handle a NAT traversal