aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-03 18:11:08 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-11-03 18:11:08 +0000
commiteaab25e5f4a1f0b69d27dc6dd6c61ad02d0fe225 (patch)
treee465d4cdf9d3a9daf1a02d3fe36affc60342c35f /channels
parentd3c2495f7f7aaa464692b7be3f21fae39ce13205 (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.1@227279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-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 5a39daf27..d2a4df380 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -9638,6 +9638,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 */