diff options
author | Joshua Colp <jcolp@digium.com> | 2007-04-13 16:35:33 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-04-13 16:35:33 +0000 |
commit | 80ec0b13ba47920b81a460a06d40dab50c526ea5 (patch) | |
tree | bcc5f099f30b716a21536563b6454d79351b08f1 /channels/chan_sip.c | |
parent | c4c2def7166543bdde49987be9e3737d2ee6527e (diff) |
Merged revisions 61641 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r61641 | file | 2007-04-13 12:32:03 -0400 (Fri, 13 Apr 2007) | 2 lines
Don't assume the callid of a dialog will be set, as in some circumstances it may not. (issue #9534 reported by tecnoxarxa)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@61642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0741715f4..02ee23995 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4721,6 +4721,8 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si for (p = dialoglist; p; p = p->next) { /* In pedantic, we do not want packets with bad syntax to be connected to a PVT */ int found = FALSE; + if (ast_strlen_zero(p->callid)) + continue; if (req->method == SIP_REGISTER) found = (!strcmp(p->callid, callid)); else |