[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [OpenSER-Users] Possible bug when appending "a=nortpproxy:yes" ?
From:       mayamatakeshi <mayamatakeshi () gmail ! com>
Date:       2008-06-25 15:25:17
Message-ID: 15b9404e0806250825n7800ea25m5ca2881fe59c5863 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You are right.
SIPp fails to add CRLF.
Thank you.

Regards,
Takeshi.

On Thu, Jun 26, 2008 at 12:00 AM, Klaus Darilion <
klaus.mailinglists@pernau.at> wrote:

> I suspect that the SDP does not contain CRLF at the end of the last line.
>
> If this is the case, the SDP is not correct:
>
> From RFC 4566:
>
>   Text fields such as the session name and information are octet
>   strings that may contain any octet with the exceptions of 0x00 (Nul),
>   0x0a (ASCII newline), and 0x0d (ASCII carriage return).  The sequence
>   CRLF (0x0d0a) is used to end a record, although parsers SHOULD be
>   tolerant and also accept records terminated with a single newline
>   character.
>
> Nevertheless openser should be tolerant and add the CRLF itself.
>
> regards
> klaus
>
>
> mayamatakeshi schrieb:
>
>> Hello,
>>
>> I'm testing with OpenSER 1.3.x revision 4393 with RTPProxy.
>> I'm trying to make a call from a Nokia E51 to a SIPp instance started
>> with:
>> sipp -sn uas -p 6060 -mp 4000
>>
>> The INVITE goes thru OpenSER to SIPp and then, SIPp replies with this:
>>
>> SIPp to OpenSER:
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP 210.126.5.158 <http://210.126.5.158>;branch=z9hG4bK9c1e.f06224f3.0,
>> SIP/2.0/UDP 192.168.0.4:5060;received=123.224.149.169 <
>> http://123.224.149.169>;branch=z9hG4bK5j85u8aa6jpebhelr55b8bj;rport=64351
>> From: <sip:1000@210.126.5.158 <sip%3A1000@210.126.5.158> <mailto:
>> sip%3A1000@210.126.5.158 <sip%253A1000@210.126.5.158>
>> >>;tag=r5hbkuj8mlhc6o184cms
>> To: <sip:22222222@210.126.5.158 <sip%3A22222222@210.126.5.158> <mailto:
>> sip%3A22222222@210.126.5.158 <sip%253A22222222@210.126.5.158>
>> >;user=phone>;tag=28909SIPpTag013
>> Call-ID: nLPxHi_hoIf-POcJ7OKojntw2wgQle
>> CSeq: 7342 INVITE
>> Contact: <sip:192.168.88.16:6060;transport=UDP>
>> Content-Type: application/sdp
>> Content-Length:   135
>>
>> v=0
>> o=user1 53655765 2353687637 IN IP4 192.168.88.16 <http://192.168.88.16>
>> s=-
>> c=IN IP4 192.168.88.16 <http://192.168.88.16>
>> t=0 0
>> m=audio 4000 RTP/AVP 0
>> a=rtpmap:0 PCMU/8000
>>
>>
>> But when OpenSER relays this to E51, I can see it is adding
>> "a=nortpproxy:yes" immediatelly after the the last characters in the SDP
>> instead of prepending a CRLF.
>>
>> OpenSER to Caller
>> SIP/2.0 200 OK
>> Via: SIP/2.0/UDP 192.168.0.4:5060;received=123.224.149.169 <
>> http://123.224.149.169>;branch=z9hG4bK5j85u8aa6jpebhelr55b8bj;rport=64351
>> From: <sip:1000@210.126.5.158 <sip%3A1000@210.126.5.158> <mailto:
>> sip%3A1000@210.126.5.158 <sip%253A1000@210.126.5.158>
>> >>;tag=r5hbkuj8mlhc6o184cms
>> To: <sip:22222222@210.126.5.158 <sip%3A22222222@210.126.5.158> <mailto:
>> sip%3A22222222@210.126.5.158 <sip%253A22222222@210.126.5.158>
>> >;user=phone>;tag=28909SIPpTag013
>> Call-ID: nLPxHi_hoIf-POcJ7OKojntw2wgQle
>> CSeq: 7342 INVITE
>> Contact: <sip:210.126.5.158:6060;transport=UDP;nat=yes>
>> Content-Type: application/sdp
>> Content-Length: 154
>>
>> v=0
>> o=user1 53655765 2353687637 IN IP4 192.168.88.16 <http://192.168.88.16>
>> s=-
>> c=IN IP4 210.126.5.158 <http://210.126.5.158>
>> t=0 0
>> m=audio 36740 RTP/AVP 0
>> a=rtpmap:0 PCMU/8000a=nortpproxy:yes
>>
>> Because of this, E51 ignores the message and doesn't send ACK.
>> I believe this is a bug in OpenSER.
>>
>> Thanks,
>> Takeshi
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Users mailing list
>> Users@lists.openser.org
>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>
>

[Attachment #5 (text/html)]

You are right.<br>SIPp fails to add CRLF.<br>Thank \
you.<br><br>Regards,<br>Takeshi.<br><br><div class="gmail_quote">On Thu, Jun 26, 2008 \
at 12:00 AM, Klaus Darilion &lt;<a \
href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>&gt; \
wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I suspect that the SDP does \
not contain CRLF at the end of the last line.<br> <br>
If this is the case, the SDP is not correct:<br>
<br>
From RFC 4566:<br>
<br>
 &nbsp; Text fields such as the session name and information are octet<br>
 &nbsp; strings that may contain any octet with the exceptions of 0x00 (Nul),<br>
 &nbsp; 0x0a (ASCII newline), and 0x0d (ASCII carriage return). &nbsp;The \
sequence<br>  &nbsp; CRLF (0x0d0a) is used to end a record, although parsers SHOULD \
be<br>  &nbsp; tolerant and also accept records terminated with a single newline<br>
 &nbsp; character.<br>
<br>
Nevertheless openser should be tolerant and add the CRLF itself.<br>
<br>
regards<br>
klaus<br>
<br>
<br>
mayamatakeshi schrieb:<br>
<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,<br>
<br>
I&#39;m testing with OpenSER 1.3.x revision 4393 with RTPProxy.<br>
I&#39;m trying to make a call from a Nokia E51 to a SIPp instance started with:<br>
sipp -sn uas -p 6060 -mp 4000<br>
<br>
The INVITE goes thru OpenSER to SIPp and then, SIPp replies with this:<br>
<br>
SIPp to OpenSER:<br>
SIP/2.0 200 OK<br></div>
Via: SIP/2.0/UDP <a href="http://210.126.5.158" target="_blank">210.126.5.158</a> \
&lt;<a href="http://210.126.5.158" \
target="_blank">http://210.126.5.158</a>&gt;;branch=z9hG4bK9c1e.f06224f3.0, \
SIP/2.0/UDP 192.168.0.4:5060;received=<a href="http://123.224.149.169" \
target="_blank">123.224.149.169</a> &lt;<a href="http://123.224.149.169" \
target="_blank">http://123.224.149.169</a>&gt;;branch=z9hG4bK5j85u8aa6jpebhelr55b8bj;rport=64351<br>


From: &lt;<a href="mailto:sip%3A1000@210.126.5.158" \
target="_blank">sip:1000@210.126.5.158</a> &lt;mailto:<a \
href="mailto:sip%253A1000@210.126.5.158" \
target="_blank">sip%3A1000@210.126.5.158</a>&gt;&gt;;tag=r5hbkuj8mlhc6o184cms<br>

To: &lt;<a href="mailto:sip%3A22222222@210.126.5.158" \
target="_blank">sip:22222222@210.126.5.158</a> &lt;mailto:<a \
href="mailto:sip%253A22222222@210.126.5.158" \
target="_blank">sip%3A22222222@210.126.5.158</a>&gt;;user=phone&gt;;tag=28909SIPpTag013<div \
class="Ih2E3d"> <br>
Call-ID: nLPxHi_hoIf-POcJ7OKojntw2wgQle<br>
CSeq: 7342 INVITE<br>
Contact: &lt;sip:192.168.88.16:6060;transport=UDP&gt;<br>
Content-Type: application/sdp<br>
Content-Length: &nbsp; 135<br>
<br>
v=0<br></div>
o=user1 53655765 2353687637 IN IP4 <a href="http://192.168.88.16" \
target="_blank">192.168.88.16</a> &lt;<a href="http://192.168.88.16" \
target="_blank">http://192.168.88.16</a>&gt;<br> s=-<br>
c=IN IP4 <a href="http://192.168.88.16" target="_blank">192.168.88.16</a> &lt;<a \
href="http://192.168.88.16" target="_blank">http://192.168.88.16</a>&gt;<div \
class="Ih2E3d"><br> t=0 0<br>
m=audio 4000 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000<br>
<br>
<br>
But when OpenSER relays this to E51, I can see it is adding \
&quot;a=nortpproxy:yes&quot; immediatelly after the the last characters in the SDP \
instead of prepending a CRLF.<br> <br>
OpenSER to Caller<br>
SIP/2.0 200 OK<br></div>
Via: SIP/2.0/UDP 192.168.0.4:5060;received=<a href="http://123.224.149.169" \
target="_blank">123.224.149.169</a> &lt;<a href="http://123.224.149.169" \
target="_blank">http://123.224.149.169</a>&gt;;branch=z9hG4bK5j85u8aa6jpebhelr55b8bj;rport=64351<br>


From: &lt;<a href="mailto:sip%3A1000@210.126.5.158" \
target="_blank">sip:1000@210.126.5.158</a> &lt;mailto:<a \
href="mailto:sip%253A1000@210.126.5.158" \
target="_blank">sip%3A1000@210.126.5.158</a>&gt;&gt;;tag=r5hbkuj8mlhc6o184cms<br>

To: &lt;<a href="mailto:sip%3A22222222@210.126.5.158" \
target="_blank">sip:22222222@210.126.5.158</a> &lt;mailto:<a \
href="mailto:sip%253A22222222@210.126.5.158" \
target="_blank">sip%3A22222222@210.126.5.158</a>&gt;;user=phone&gt;;tag=28909SIPpTag013<div \
class="Ih2E3d"> <br>
Call-ID: nLPxHi_hoIf-POcJ7OKojntw2wgQle<br>
CSeq: 7342 INVITE<br>
Contact: &lt;sip:210.126.5.158:6060;transport=UDP;nat=yes&gt;<br>
Content-Type: application/sdp<br>
Content-Length: 154<br>
<br>
v=0<br></div>
o=user1 53655765 2353687637 IN IP4 <a href="http://192.168.88.16" \
target="_blank">192.168.88.16</a> &lt;<a href="http://192.168.88.16" \
target="_blank">http://192.168.88.16</a>&gt;<br> s=-<br>
c=IN IP4 <a href="http://210.126.5.158" target="_blank">210.126.5.158</a> &lt;<a \
href="http://210.126.5.158" target="_blank">http://210.126.5.158</a>&gt;<div \
class="Ih2E3d"><br> t=0 0<br>
m=audio 36740 RTP/AVP 0<br>
a=rtpmap:0 PCMU/8000a=nortpproxy:yes<br>
<br>
Because of this, E51 ignores the message and doesn&#39;t send ACK.<br>
I believe this is a bug in OpenSER.<br>
<br>
Thanks,<br>
Takeshi<br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" \
target="_blank">Users@lists.openser.org</a><br> <a \
href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" \
target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br> \
</blockquote> </blockquote></div><br>



_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic