diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 17:55:47 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 17:55:47 +0000 |
commit | 0f8a766cd8cfb8dd16d87663c86077ea9039554a (patch) | |
tree | f717ba89259285def9e8d283fff7420894f980e3 /channels | |
parent | 412794a49a55589e58eb336e69a12232d9aea46d (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.4@227275 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index e4d38b93f..805d83582 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 */ |