aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 19:19:20 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-24 19:19:20 +0000
commitad0d346e57bdd7ff24d852b33a4b1cd4da658e3e (patch)
tree8022a8b918591245411f4952ff9ad0abb8949afe
parent89149221881cc3a48b6d79eadd3646ae81e3045e (diff)
Issue 6114: Don't hangup on bye/also if there's no channel. (gst)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8561 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2f33f02a3..3deb2158a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -6882,7 +6882,8 @@ static int get_also_info(struct sip_pvt *p, struct sip_request *oreq)
}
if (ast_exists_extension(NULL, p->context, c, 1, NULL)) {
/* This is an unsupervised transfer */
- ast_log(LOG_DEBUG,"Assigning Extension %s to REFER-TO\n", c);
+ if (option_debug)
+ ast_log(LOG_DEBUG,"Assigning Extension %s to REFER-TO\n", c);
ast_string_field_set(p, refer_to, c);
ast_string_field_free(p, referred_by);
ast_string_field_free(p, refer_contact);
@@ -10719,7 +10720,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req, int de
}
} else {
ast_log(LOG_WARNING, "Invalid transfer information from '%s'\n", ast_inet_ntoa(iabuf, sizeof(iabuf), p->recv.sin_addr));
- ast_queue_hangup(p->owner);
+ if (p->owner)
+ ast_queue_hangup(p->owner);
}
} else if (p->owner)
ast_queue_hangup(p->owner);