Save function with "s" flag

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Save function with "s" flag

Chen-Che Huang
Hi all,

From registrar module, I find that the save function with "s" flag is able to store the socket specified in the REGISTER
request. I use insert_hf("Sock: udp:127.0.0.1:5060") and insert_hf("udp:127.0.0.1:5060") in the header
of REGISTER requests. When a SIP server receives such REGISTER requests, it invokes the save("location", "s")
function. However, the SIP server still stores the received socket into the location table rather than "udp:127.0.0.1".
How can I let the SIP server store "udp:127.0.0.1" when receiving a REGISTER request?
Please help me resolve this issue. Thanks so much in advance.

Best wishes,
Chen-Che
Reply | Threaded
Open this post in threaded view
|

Re: Save function with "s" flag

shaheryarkh
Make sure you set sock_hdr_name,


Thank you.


On Mon, Feb 18, 2013 at 1:34 PM, microx <[hidden email]> wrote:
Hi all,

From registrar module, I find that the save function with "s" flag is able
to store the socket specified in the REGISTER
request. I use insert_hf("Sock: udp:127.0.0.1:5060") and
insert_hf("udp:127.0.0.1:5060") in the header
of REGISTER requests. When a SIP server receives such REGISTER requests, it
invokes the save("location", "s")
function. However, the SIP server still stores the received socket into the
location table rather than "udp:127.0.0.1".
How can I let the SIP server store "udp:127.0.0.1" when receiving a REGISTER
request?
Please help me resolve this issue. Thanks so much in advance.

Best wishes,
Chen-Che



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Save-function-with-s-flag-tp7584789.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Save function with "s" flag

Chen-Che Huang
Hi shaheryarkh,

Thanks for your help. I didn't notice that I have to set sock_hdr_name when using the save function with 's' flag.
It totally works now. Thanks again.

Best wishes,
Chen-Che