aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--channels/chan_dahdi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index d13e3a164..8953d6006 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -9451,6 +9451,9 @@ static struct ast_channel *dahdi_request(const char *type, int format, void *dat
}
p->outgoing = 1;
tmp = dahdi_new(p, AST_STATE_RESERVED, 0, p->owner ? SUB_CALLWAIT : SUB_REAL, 0, 0);
+ if (!tmp) {
+ p->outgoing = 0;
+ }
#ifdef HAVE_PRI
if (p->bearer) {
/* Log owner to bearer channel, too */