[Asterisk-Dev] SIP weirdness (beginning in 3/18 CVS)

Olle E. Johansson oej at edvina.net
Sat Mar 19 04:47:06 MST 2005


Please apply this patch from
http://bugs.digium.com/bug_view_page.php?bug_id=0003795

...to fix some issues with chan_sip after the handle_request change.

It's only one small, but utterly important, character that is changing.

My mistake, apologies.
/O

Index: channels/chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.677
diff -u -r1.677 chan_sip.c
--- channels/chan_sip.c	17 Mar 2005 23:03:07 -0000	1.677
+++ channels/chan_sip.c	19 Mar 2005 09:26:46 -0000
@@ -3429,7 +3429,7 @@

  	/* Add tag *unless* this is a CANCEL, in which case we need to send 
it exactly
  	   as our original request, including tag (or presumably lack thereof) */
-	if (!strstr(ot, "tag=") && sipmethod == SIP_CANCEL) {
+	if (!strstr(ot, "tag=") && sipmethod != SIP_CANCEL) {
  		/* Add the proper tag if we don't have it already.  If they have 
specified
  		   their tag, use it.  Otherwise, use our own tag */
  		if (ast_test_flag(p, SIP_OUTGOING) && !ast_strlen_zero(p->theirtag))



More information about the asterisk-dev mailing list