From 2bc3964ec9a5a985ec0a8cbbf391357082f379bc Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Tue, 3 Nov 2009 18:05:59 +0000 Subject: [PATCH] Merged revisions 227275 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r227275 | rmudgett | 2009-11-03 11:55:47 -0600 (Tue, 03 Nov 2009) | 4 lines Make sure the outgoing flag is cleared if a new channel fails to get created for outgoing calls. This is the relevant portion of asterisk/trunk -r226648 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@227278 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_dahdi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index d13e3a1644..8953d60060 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 */ -- 2.47.2