Merged revisions 16192 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r16192 | tilghman | 2006-03-29 13:11:18 -0600 (Wed, 29 Mar 2006) | 2 lines

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/trunk@16193 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2006-03-29 19:30:57 +00:00
parent 13bcb6ed7d
commit a532c787f2
3 changed files with 5 additions and 2 deletions

View File

@@ -140,7 +140,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);
}