mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
Bug 6830 - Let GosubIf work with the same conditions as a GotoIf (change in API approved by Russell)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@16192 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -139,7 +139,7 @@ static int gosubif_exec(struct ast_channel *chan, void *data)
|
||||
label1 = strsep(&args, ":");
|
||||
label2 = args;
|
||||
|
||||
if (ast_true(condition)) {
|
||||
if (pbx_checkcondition(condition)) {
|
||||
if (label1) {
|
||||
res = gosub_exec(chan, label1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user