aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 13:27:40 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-05 13:27:40 +0000
commitc4080c36c5faa5a6a329d46e9d89771e3953c811 (patch)
tree23a3921c9c8502bdfb77bcc2d5b4fa500dd5828e /channels
parentedad9de2c35ee96bb01ffd7b65e060e499827cc8 (diff)
Merged revisions 73318 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r73318 | file | 2007-07-05 10:26:02 -0300 (Thu, 05 Jul 2007) | 2 lines Actually check to make sure a PBX was started on one of the Local channels instead of blindly assuming it was. (issue #10112 reported by makoto) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@73319 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index ff462ad4b..6b9ca55b6 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -464,10 +464,10 @@ static int local_call(struct ast_channel *ast, char *dest, int timeout)
}
}
- ast_set_flag(p, LOCAL_LAUNCHED_PBX);
-
/* Start switch on sub channel */
- res = ast_pbx_start(p->chan);
+ if (!(res = ast_pbx_start(p->chan)))
+ ast_set_flag(p, LOCAL_LAUNCHED_PBX);
+
ast_mutex_unlock(&p->lock);
return res;
}