<div dir="ltr">Hi Bogdan,<br><br><br>
the ";rport=5060" is already in the via header with or without "force_rport();" in the route{}.<br>
<br>
And after inserting "force_rport();" into the route, i got the same 200 OK SIP message as before (without "received=").<br>
<br><br>btw, Can I change the transport=UDP to transport=udp in the Contact header?<br><br><br>Thank you very much for your reply.<br><br>Pai<br><br><br><br>____________________________________________________________________________<br>
here is the 200 OK from Opensips:<br><br><span style="color: rgb(0, 102, 0);">SIP/2.0 200 OK.</span><br>Via: SIP/2.0/UDP IP_1:5060;branch=z9hG4bKm4d4i5292jgbch2qvql0jgj;<span style="color: rgb(51, 51, 255);">rport=5060.</span><br>
From: <<a href="mailto:sip%3Asip02@domain.com">sip:sip02@domain.com</a>>;tag=n3mvtamlb5hc79h206gu.<br>To: <<a href="mailto:sip%3Asip02@domain.com">sip:sip02@domain.com</a>><span style="color: rgb(255, 0, 0);">;tag=c97b4d1cb1f3d0da549e06a8d482ef63.beea</span>.<br>
CSeq: 668 REGISTER.<br>Call-ID: av7-GAN-oIeXJM6xXjUGmglDzKstoX.<br>Allow: ACK, BYE, CANCEL, INVITE, REGISTER, OPTIONS, INFO, MESSAGE.<br>Contact: <sip:sip02@IP_1:5060;transport=<span style="color: rgb(255, 0, 0);">UDP</span>>;expires=3600.<br>
Server: OpenSIPS (1.4.2-notls (i386/linux)).<br>Content-Length: 0.<br>--------------------------------------------------------------------------------------------------------------------------------------<br><br><br><br>and the following 200 OK from <a href="http://sip.voipstunt.com">sip.voipstunt.com</a> works on the Nokia N95 SIP client:<br>
<br>SIP/2.0 200 OK.<br>
Via: SIP/2.0/UDP IP_2:5060;branch=jgj;<span style="color: rgb(255, 0, 0);">received=IP_2;</span><span style="color: rgb(51, 51, 255);">rport=5060.</span><br>
From: <<a href="mailto:sip%3Asip02@voipstunt.com">sip:sip02@voipstunt.com</a>>;tag=n3mvtamlb5hc79h206gu.<br>
To: <<a href="mailto:sip%3Asip02@voipstunt.com">sip:sip02@voipstunt.com</a>><span style="color: rgb(255, 0, 0);"></span><br>
Contact: <sip:sip02@IP_2:5060;transport=<span style="color: rgb(255, 0, 0);">udp</span>>;expires=3600.<br>
Call-ID: sssssssssssss<br>
CSeq: 664 REGISTER.<br>
Server: (the <a href="http://voipstunt.com">voipstunt.com</a> sip server).<br>
Allow: <span style="color: rgb(255, 0, 0);">ACKBYE</span>, CANCEL, INVITE, REGISTER, OPTIONS, INFO, MESSAGE.<br>Content-Length: 0.<br>____________________________________________________________<br><br><br><br><br><br><br>
<div class="gmail_quote">On Wed, Oct 8, 2008 at 7:28 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Pai,<br>
<br>
use force_rport() - this will add rport and received params to the via.<div class="Ih2E3d"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Pai Peng wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
Hello Bogdan,<br>
<br>
<br>
thanks a lot for your clear answer.<br>
<br>
I am now comparing out the 2 different 200 OK responses: one from other sip-server works fine on Nokia SIP client, the other comes from Opensips not.<br>
<br>
I can not manipulate the SIP client on Nokia device, because it is integrated in OS and can already works with many other SIP servers.<br>
<br>
<br>
Because I can't find out the error code (-17701) description in any documents, I don't know exactly what is the problem. I heard from someone that it is may be in the contact-header...<br>
<br>
There are two different points between these two 200 OKs:<br>
in Via: the working 200 OK response has a received=ip added into the Via-Header (it is the same as the src_ip in via-header), but the 200 OK from Opensips has not.<br>
<br>
in To-header: the working 200 OK response has not To-Tag inserted, but the other from Opensips has.<br>
<br>
<br>
I have just checked out in the early discussion about the ";received=ip" in VIA. It is not a MUST. But in order to solve my problem, I would like to add this in via-header by myself.<br>
<br>
The question is, if it is possible to do it? When yes, how to configuration?<br>
<br>
<br>
Thanks again<br>
<br>
Pai<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Wed, Oct 8, 2008 at 6:40 PM, Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>>> wrote:<br>
<br>
Hi Pai,<br>
<br>
It is a must (by RFC3261) to have a TO-tag in any final reply<br>
(including 200 OK) . What are you asking is a violation of the SIP<br>
RFC.<br>
<br>
I guess the problem is in the SIP client from the NOKIA device.<br>
You should try to solve it there.<br>
<br>
<br>
Anyhow, to answer to your question, no, there is no way to send a<br>
200 OK without To-tag :).<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Pai Peng wrote:<br>
<br>
Hello,<br>
<br>
<br>
I am using Opensips 1.4.2 as SIP-Server and a Nokia N95 as<br>
SIP-Client.<br>
<br>
But I got error -17701 on N95 by registering with 200 OK<br>
response from the server.<br>
<br>
I compared the 200 OK SIP-message with other worked SIP-Server<br>
und found out, that the problem maybe is on the To-Tag in the<br>
response.<br>
<br>
Now I want the Opensips not adding to-tag into the 200 OK<br>
response for register. Can anyone give me a help?<br>
<br>
<br>
Thanks<br>
<br>
Pai<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br></div></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div class="Ih2E3d"><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Pai Peng<br>
Mierendorffstr. 21<br>
10589 Berlin<br>
Germany<br>
Tel.: 0049-179-7716503<br>
Symbian OS<br>
</div></blockquote>
<br>
</blockquote></div><br></div>