diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-14 00:43:11 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-09-14 00:43:11 +0000 |
commit | 35d6651b4602dc3a4945c3d320460cd186aaec4c (patch) | |
tree | 3446ea0fe711d74e493f7a435a8c0ac51e1bc95f /channels | |
parent | c0cb6a4581b84f9739b0b6c5aaa23934fcbf21d8 (diff) |
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
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 871133f17..0afcaf3eb 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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) { |