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

Danny Froberg danny at froberg.org
Sat Mar 19 14:18:21 MST 2005


Thanks Olle!!
I thought I was going mad ;)
/Danny

On Saturday 19 March 2005 06.47, Olle E. Johansson wrote:
> 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