aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-13 16:32:03 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-13 16:32:03 +0000
commit3ed317cb2e1d9a77c92d4f4ab7e41e61c05035d6 (patch)
tree170d32415e4608f9113aa1042b544f45daff8d69
parent3e061731b5b4c362401d319e6855bf7b2b8f4162 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@61641 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index fcdee0c6f..d94f4886d 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4354,6 +4354,8 @@ static struct sip_pvt *find_call(struct sip_request *req, struct sockaddr_in *si
for (p = iflist; 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