Reason Header parsing error

"Young-Geun Park" <[email protected]> Wed, 19 Nov 2008 17:30:44 +0900
Newsgroups gmane.comp.voip.nist-sip,gmane.comp.voip.jain-sip.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============3512214681278450757==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0007_01C94A6C.8D92C7A0"


This is a multi-part message in MIME format.

------=_NextPart_000_0007_01C94A6C.8D92C7A0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

 

I think there is a problem when parsing a reason header with value which has
space.

 

For example, uac sends a reason header like this;

Reason: sip;cancel reason;503

 

The reason text has a space.

 

However, uas receives the reason header and parsing in JAIN stack as
follows;

Reason: sip;cancel 

Reason: reason;503

 

I think two reason headers were created because of space parsing error.

 

is this bug? 

thanks for any comment in advance.

 

Regards,

Park


------=_NextPart_000_0007_01C94A6C.8D92C7A0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:&#48148;&#53461;;
	panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:&#44404;&#47548;;
	panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:"\@&#44404;&#47548;";
	panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
	{font-family:"\@&#48148;&#53461;";
	panose-1:2 3 6 0 0 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-autospace:none;
	word-break:break-hangul;
	font-size:10.0pt;
	font-family:&#48148;&#53461;;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:&#44404;&#47548;;
	color:windowtext;}
 /* Page Definitions */
 @page Section1
	{size:595.3pt 841.9pt;
	margin:99.25pt 3.0cm 3.0cm 3.0cm;
	layout-grid:18.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DKO link=3Dblue vlink=3Dpurple>

<div class=3DSection1 style=3D'layout-grid:18.0pt'>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>I think there is a problem when parsing a =
reason header with
value which has space.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>For example, uac sends a reason header =
like this;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Reason: sip;cancel =
reason;503<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>The reason text has a =
space.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>However, uas receives the reason header =
and parsing in JAIN
stack as follows;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Reason: sip;cancel =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Reason: =
reason;503<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>I think two reason headers were created =
because of space
parsing error.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>is this bug? <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>thanks for any comment in =
advance.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3D&#44404;&#47548;><span =
lang=3DEN-US style=3D'font-size:10.0pt;
font-family:&#44404;&#47548;'>Park<o:p></o:p></span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0007_01C94A6C.8D92C7A0--


--===============3512214681278450757==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip

--===============3512214681278450757==--