<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 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: <sip:192.168.88.1;r2=on;lr><br>Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bKa4af.4c9709a4.0<br>To: <a href="mailto:sip%3A9016726924@irock.com">sip:9016726924@irock.com</a><br>From: <<a 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: <sip:x@x:5060><br>Refer-To: <a 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>