diff options
author | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 18:05:59 +0000 |
---|---|---|
committer | rmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-03 18:05:59 +0000 |
commit | 93a5cac4a05db1ae55383a11e93ce7cdd1d76226 (patch) | |
tree | 5bb13b264918657481fa39d558b5252e32d5b0c0 /channels/chan_dahdi.c | |
parent | 33b50ed1a43b6c6449a277e6507c3cc3cae641a1 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@227278 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_dahdi.c')
-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 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 */ |