<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>Hi Khaled,<br>
<br>
The TAG parameter is a property of a SIP hdr (TO, From) and not a
property of the SIP message . AFAIK, all final replies must have a
To Tag param. <br>
<br>
So, could you rephrase your statement on the presence of To Tag in
487 replies ?<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 06/22/2013 02:27 PM, M.Khaled W Chehab wrote:
<blockquote cite="mid:00f401ce6f3b$7cf333f0$76d99bd0$@icucall.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am getting a lot of parse error in
opensip.log as you can see below <o:p></o:p></p>
<p class="MsoNormal" style="background: none repeat scroll 0% 0%
white;"><span style="font-size: 10pt; font-family:
"Courier New"; color: rgb(34, 34, 34);">I Found in
opensips source code that this issue have one reason:<br>
if (tag.s==0 || tag.len==0) {<br>
LM_ERR("missing TAG param in TO hdr :-/\n");<br>
tag.s = 0;<br>
tag.len = 0;<br>
}</span><span style="font-size: 10pt; font-family:
"Arial","sans-serif"; color: rgb(34, 34,
34);"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; background:
none repeat scroll 0% 0% white;"><span style="font-size: 10pt;
font-family: "Courier New"; color: rgb(34, 34,
34);">only if we do not have to tag in reply dialog</span><span
style="font-size: 10pt; font-family:
"Arial","sans-serif"; color: rgb(34, 34,
34);"><o:p></o:p></span></p>
<p class="MsoNormal" style="background: none repeat scroll 0% 0%
white;"><span style="font-size: 10pt; font-family:
"Courier New"; color: rgb(34, 34, 34);">I Found
explanation if the missing to tag that appear in log file:</span><span
style="font-size: 10pt; font-family:
"Arial","sans-serif"; color: rgb(34, 34,
34);"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New"; color: rgb(34, 34, 34); background:
none repeat scroll 0% 0% white;">directly the reason is that
sip request 487 lacks a to tag; the to header do not contain
to tag.<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">1-How to avoid let this error appears in
log file <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">2013-06-22T11:08:36.230288+00:00 opensips
opensips[1888]: ERROR:dialog:push_reply_in_dialog: missing TAG
param in TO hdr :-/<o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:10:15.960563+00:00 opensips
opensips[1922]: ERROR:core:parse_first_line: bad reply(status)
first line<o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:10:15.960583+00:00 opensips
opensips[1922]: ERROR:core:parse_first_line: at line 0 char
10: <o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:10:15.960595+00:00 opensips
opensips[1922]: ERROR:core:parse_first_line: parsed so far:
SIP/2.0 0 <o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:10:15.960601+00:00 opensips
opensips[1922]: ERROR:core:parse_msg: message=<SIP/2.0 0
Status#015#012Content-Length: 0#015#012#015#012><o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:10:15.960608+00:00 opensips
opensips[1922]: ERROR:core:receive_msg: parse_msg failed<o:p></o:p></p>
<p class="MsoNormal">2013-06-22T11:17:11.963667+00:00 opensips
opensips[1867]: ERROR:dialog:push_reply_in_dialog: missing TAG
param in TO hdr :-/<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Khaled Chehab<o:p></o:p></p>
<p class="MsoNormal">Chief Technical Officer<o:p></o:p></p>
<p class="MsoNormal"><img id="Picture_x0020_1"
src="cid:part1.00090304.02060101@opensips.org"
alt="Description: icucall" height="75" width="117"><o:p></o:p></p>
<p class="MsoNormal">Operations Office - Lebanon<o:p></o:p></p>
<p class="MsoNormal">Office : +961 1 515155 ext 300<o:p></o:p></p>
<p class="MsoNormal">Mobile : +961 3 045212<o:p></o:p></p>
<p class="MsoNormal">E-mail : <a class="moz-txt-link-abbreviated" href="mailto:kchehab@icucall.com">kchehab@icucall.com</a><o:p></o:p></p>
<p class="MsoNormal">MSN ID :khalidchehab@hotmail.com <o:p></o:p></p>
<p class="MsoNormal">Skype : k_chehab <o:p></o:p></p>
<p class="MsoNormal">Web Site: <a moz-do-not-send="true"
href="http://www.icucall.com/">http://www.icucall.com</a><o:p></o:p></p>
<p class="MsoNormal"> <a
moz-do-not-send="true" href="http://www.allohi.com/">http://www.allohi.com</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>