<!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 bgcolor="#ffffff" text="#000000">
<tt>Hi Duane,<br>
<br>
as sometime you may generate in-dialog requests, having a default
Cseq to minimum is not a good idea :). On the other hand it is a
risky gambling here.<br>
<br>
But as you said :<br>
1) RFC does not enforce a start value for the cseq (neither the
increment value)<br>
2) if you do not want opensips to use default, simply push your
own cseq via the "headers" param.<br>
<br>
Best regards,<br>
Bogdan<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 08/16/2012 06:56 AM, Duane Larson wrote:
<blockquote
cite="mid:CAFcM1Eq727tjabYkEDN=5+pcqNFiDAf2ZRdXHdBt9war+CNQZA@mail.gmail.com"
type="cite">
<p>I'm not sure if this is an issue or not.</p>
<p>When t_uac_dlg is not passed a "CSeq" header it goes ahead and
sets the "CSeq" value to 10. So if I send a REFER message you
will see</p>
<p>REFER <a moz-do-not-send="true"
href="http://sip:x@192.168.88.13:3072">sip:x@192.168.88.13:3072</a>
SIP/2.0<br>
Max-Forwards: 10<br>
Record-Route: <a class="moz-txt-link-rfc2396E" href="sip:192.168.88.1;r2=on;lr"><sip:192.168.88.1;r2=on;lr></a><br>
Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bKa4af.4c9709a4.0<br>
To: <a moz-do-not-send="true"
href="mailto:sip%3A9016726924@irock.com">sip:9016726924@irock.com</a><br>
From: <<a moz-do-not-send="true" href="mailto:sip%3Ax@ae.com">sip:x@ae.com</a>>;tag=13450882214706<br>
CSeq: 10 REFER<br>
Call-ID: 13450882214706<br>
Content-Length: 0<br>
User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux))<br>
Contact: <a class="moz-txt-link-rfc2396E" href="sip:x@x:5060"><sip:x@x:5060></a><br>
Refer-To: <a moz-do-not-send="true" href="mailto:sip%3Ax@x.com">sip:x@x.com</a></p>
<p> </p>
<p>For some reason my Snom phone isn't liking this and I've
informed them about this and hopefully they see it as a bug on
their part.</p>
<div><br>
The reason I am emailing is because I was wondering if there is
an error in the mi.c code on the follow lines</div>
<div> </div>
<div> </div>
<div> </div>
<div>513 /* Fill in CSeq */<br>
514 if (cseq!=-1)<br>
515 dlg.loc_seq.value = cseq;<br>
516 else<br>
517 dlg.loc_seq.value = <strong>DEFAULT_CSEQ</strong>;<br>
518 dlg.loc_seq.is_set = 1;</div>
<div> </div>
<div>I am not sure what <strong>DEFAULT_CSEQ is </strong>refering
to but if I change this to be the value of "1" then the issue
when "CSeq" isn't defined in t_uac_dlg generating a 10 as the
value goes away. Also I tested to be sure that when a value IS
sent to t_uac_dlg that value is used instead of "1" and
everything still worked.</div>
<div> </div>
<div>Shouldn't it be something like</div>
<div> </div>
<div>513 /* Fill in CSeq */<br>
514 if (cseq!=-1)<br>
515 dlg.loc_seq.value = cseq;<br>
516 else<br>
517 dlg.loc_seq.value = <strong>1</strong>;<br>
518 dlg.loc_seq.is_set = 1;</div>
<div> </div>
<div> </div>
<div>I wasn't sure if this was an error in the code or if there is
a reason behind it being <strong>DEFAULT_CSEQ</strong></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>