aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 14:01:46 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-07 14:01:46 +0000
commit46593e45caa90770599f33f5de91c7789f64b6a5 (patch)
treeae3fdd2d4a912b7103fb8c10fc76c128eaec8d48
parent1b09eee1c21fdc633ad2664f5d36d666802be12d (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@18259 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 8b826f195..cd85faf39 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11662,13 +11662,16 @@ static struct ast_channel *sip_request_call(const char *type, int format, void *
}
p = sip_alloc(NULL, NULL, 0, SIP_INVITE);
if (!p) {
- ast_log(LOG_WARNING, "Unable to build sip pvt data for '%s'\n", (char *)data);
+ ast_log(LOG_ERROR, "Unable to build sip pvt data for '%s' (Out of memory)\n", (char *)data);
+ *cause = AST_CAUSE_CONGESTION;
return NULL;
}
p->options = calloc(1, sizeof(*p->options));
if (!p->options) {
- ast_log(LOG_ERROR, "Out of memory\n");
+ sip_destroy(p);
+ ast_log(LOG_ERROR, "Unable to build option SIP data structure - Out of memory\n");
+ *cause = AST_CAUSE_CONGESTION;
return NULL;
}