Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.58
diff -u -r1.58 chan_sip.c
--- chan_sip.c 8 Apr 2003 23:02:36 -0000 1.58
+++ chan_sip.c 9 Apr 2003 03:56:49 -0000
@@ -3725,16 +3725,14 @@
p->initid = -1;
}
/* Get their tag if we haven't already */
- if (!strlen(p->theirtag)) {
- to = get_header(req, "To");
- to = strstr(to, "tag=");
- if (to) {
- to += 4;
- strncpy(p->theirtag, to, sizeof(p->theirtag) - 1);
- to = strchr(p->theirtag, ';');
- if (to)
- *to = '\0';
- }
+ to = get_header(req, "To");
+ to = strstr(to, "tag=");
+ if (to) {
+ to += 4;
+ strncpy(p->theirtag, to, sizeof(p->theirtag) - 1);
+ to = strchr(p->theirtag, ';');
+ if (to)
+ *to = '\0';
}
switch(resp) {