El Jueves, 27 de Noviembre de 2008, Daniel Serrano escribió:
Dear all,
I am using SER as IM server and I found that the SER use the contact field to storage the user's location in the memory for future requests. I noted this using the command "serctl alias show" and checking some traces. Since I'm using a NAT scenario I'd like to use the UDP port that my SER server receives during the registration instead of the contact field port to reach the users after their registration. Is there any way to do this?
"rport" does it, but the client must indicate support of "rport" by adding ";rport" parameter to its Via header. Anyway, *SER can force it by using "force_rport()".
Thanks Iñaki,
So bad that my client doesn't support rport. :-( I have been reading about fix_nated_contact(). Some one have some example of the ser.conf using this command? *
Daniel Serrano D.** *
Iñaki Baz Castillo wrote:
El Jueves, 27 de Noviembre de 2008, Daniel Serrano escribió:
Dear all,
I am using SER as IM server and I found that the SER use the contact field to storage the user's location in the memory for future requests. I noted this using the command "serctl alias show" and checking some traces. Since I'm using a NAT scenario I'd like to use the UDP port that my SER server receives during the registration instead of the contact field port to reach the users after their registration. Is there any way to do this?
"rport" does it, but the client must indicate support of "rport" by adding ";rport" parameter to its Via header. Anyway, *SER can force it by using "force_rport()".
El Jueves, 27 de Noviembre de 2008, Daniel Serrano escribió:
Thanks Iñaki,
So bad that my client doesn't support rport. :-( I have been reading about fix_nated_contact(). Some one have some example of the ser.conf using this command?
You need "fix_nated_contact" as well as "force_rport". There are lots of examples in internet about configuring it. Look for OpenSer/Kamailio/OpenSIPS/SER wiki/doc pages.
Dear all,
I'm running a SER 9.6 in order to handle IM and presence. IM are working just great. I have an issue with the presence. At the moment of receive a SUBSCRIBE message, the SER respond with a 400 BAD REQUEST and the message "Error while parsing headersServer: Sip EXpress router (0.9.6 (i386/linux))" inside. Any ideas? Thanks in advance for the help.
Daniel Serrano.
Hola Daniel,
On Tue, Dec 2, 2008 at 7:20 PM, Daniel Serrano dserrano@ipvision.com.ar wrote:
Dear all,
I'm running a SER 9.6 in order to handle IM and presence. IM are working just great. I have an issue with the presence. At the moment of receive a SUBSCRIBE message, the SER respond with a 400 BAD REQUEST and the message "Error while parsing headersServer: Sip EXpress router (0.9.6 (i386/linux))" inside. Any ideas? Thanks in advance for the help.
Please attach a trace (SUBS/400)
$ ngrep -d any -qt . port 5060
Cheers,
Hola Victor,
Thanks for the answer.
Here you can see the trace:
SUBSCRIBE sip:daniel.serrano.d@domain.aw SIP/2.0 Via: SIP/2.0/UDP 172.18.1.136:8989;branch=z9hG4bK-d8754z-664d4644ba7a0c1e-1---d8754z-;rport Max-Forwards: 70 Contact: sip:daniel.serrano.d@206.48.103.1:54944 To: "daniel.serrano.d"sip:daniel.serrano.d@domain.aw From: "daniel.serrano.d"sip:daniel.serrano.d@domain.aw;tag=d3398706 Call-ID: NDQ5MGE4ZjFkNzZkYTNhMWRhNzE3NDg2NGQ2OThkZGI. CSeq: 1 SUBSCRIBE Expires: 300 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: eyeBeam release 1101l stamp 49847 Event: message-summary Content-Length: 0
SIP/2.0 400 Bad Request Via: SIP/2.0/UDP 172.18.1.136:8989;branch=z9hG4bK-d8754z-664d4644ba7a0c1e-1---d8754z-;rport=54944;received=206.48.103.1 To: "daniel.serrano.d"sip:daniel.serrano.d@domain.aw;tag=9162255e03ebdd74e2ec7f509993738d-7b18 From: "daniel.serrano.d"sip:daniel.serrano.d@domain.aw;tag=d3398706 Call-ID: NDQ5MGE4ZjFkNzZkYTNhMWRhNzE3NDg2NGQ2OThkZGI. CSeq: 1 SUBSCRIBE Error while parsing headersServer: Sip EXpress router (0.9.6 (i386/linux)) Content-Length: 0 Warning: 392 201.229.39.22:5060 "Noisy feedback tells: pid=8440 req_src_ip=206.48.103.1 req_src_port=54944 in_uri=sip:daniel.serrano.d@domain.aw out_uri=sip:daniel.serrano.d@domain.aw via_cnt==1"
Cheers, *
Daniel Serrano D.** * http://www.ipvision.com.ar
Victor Pascual Ávila wrote:
Hola Daniel,
On Tue, Dec 2, 2008 at 7:20 PM, Daniel Serrano dserrano@ipvision.com.ar wrote:
Dear all,
I'm running a SER 9.6 in order to handle IM and presence. IM are working just great. I have an issue with the presence. At the moment of receive a SUBSCRIBE message, the SER respond with a 400 BAD REQUEST and the message "Error while parsing headersServer: Sip EXpress router (0.9.6 (i386/linux))" inside. Any ideas? Thanks in advance for the help.
Please attach a trace (SUBS/400)
$ ngrep -d any -qt . port 5060
Cheers,