Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.510.2.60 diff -u -r1.510.2.60 chan_sip.c --- channels/chan_sip.c 15 Apr 2005 07:24:34 -0000 1.510.2.60 +++ channels/chan_sip.c 13 May 2005 16:29:53 -0000 @@ -4460,6 +4485,13 @@ if (n) *n = '\0'; } + /* Ditch other parameters (e.g. "q") */ + n = strchr(c, ';'); + if (n) { + *n = '\0'; + } + if (option_debug) + ast_log(LOG_DEBUG, "Contact address is '%s'\n", c); if (!strcasecmp(c, "*") || !expiry) { /* This means remove all registrations and return OK */ memset(&p->addr, 0, sizeof(p->addr)); @@ -4484,11 +4516,6 @@ ast_log(LOG_NOTICE, "'%s' is not a valid SIP contact (missing sip:) trying to use anyway\n", c); } else c += 4; - /* Ditch q */ - n = strchr(c, ';'); - if (n) { - *n = '\0'; - } /* Grab host */ n = strchr(c, '@'); if (!n) {