From: Richard Mudgett Date: Tue, 3 Nov 2009 17:55:47 +0000 (+0000) Subject: Make sure the outgoing flag is cleared if a new channel fails to get created for... X-Git-Tag: 1.4.27-rc3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc898f35c97f27f9f72f272e45b7813d957875a8;p=thirdparty%2Fasterisk.git 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.4@227275 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index e4d38b93fa..805d835825 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -8460,6 +8460,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 */