[OpenSIPS-Users] TM - possible mi.c issue

Duane Larson duane.larson at gmail.com
Thu Aug 16 05:56:11 CEST 2012


I'm not sure if this is an issue or not.

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

REFER sip:x at 192.168.88.13:3072 SIP/2.0
Max-Forwards: 10
Record-Route: <sip:192.168.88.1;r2=on;lr>
Via: SIP/2.0/UDP 192.168.88.1;branch=z9hG4bKa4af.4c9709a4.0
To: sip:9016726924 at irock.com
From: <sip:x at ae.com>;tag=13450882214706
CSeq: 10 REFER
Call-ID: 13450882214706
Content-Length: 0
User-Agent: OpenSIPS (1.8.0-dev0-tls (x86_64/linux))
Contact: <sip:x at x:5060>
Refer-To: sip:x at x.com



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.

The reason I am emailing is because I was wondering if there is an error in
the mi.c code on the follow lines



513  /* Fill in CSeq */
514  if (cseq!=-1)
515  dlg.loc_seq.value = cseq;
516  else
517  dlg.loc_seq.value = *DEFAULT_CSEQ*;
518  dlg.loc_seq.is_set = 1;

I am not sure what *DEFAULT_CSEQ is *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.

Shouldn't it be something like

513 /* Fill in CSeq */
514 if (cseq!=-1)
515 dlg.loc_seq.value = cseq;
516 else
517 dlg.loc_seq.value = *1*;
518 dlg.loc_seq.is_set = 1;


I wasn't sure if this was an error in the code or if there is a reason
behind it being *DEFAULT_CSEQ*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120815/749b05d6/attachment.htm>


More information about the Users mailing list