dect
/
asterisk
Archived
13
0
Fork 0

Handle dialog updates to to tag properly (bug #5166)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6576 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-09-14 00:43:11 +00:00
parent c0cb6a4581
commit 35d6651b46
1 changed files with 1 additions and 1 deletions

View File

@ -9236,7 +9236,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
__sip_ack(p, seqno, 0, sipmethod);
/* Get their tag if we haven't already */
if (ast_strlen_zero(p->theirtag)) {
if (ast_strlen_zero(p->theirtag) || (resp >= 200)) {
to = get_header(req, "To");
to = strcasestr(to, "tag=");
if (to) {