Don't forget to return something other than -1 on the first pass if appropriate!
authorMark Spencer <markster@digium.com>
Sun, 12 Sep 2004 15:29:56 +0000 (15:29 +0000)
committerMark Spencer <markster@digium.com>
Sun, 12 Sep 2004 15:29:56 +0000 (15:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3767 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 8609207..8427bdf 100755 (executable)
@@ -7168,7 +7168,7 @@ static int iax2_exec(struct ast_channel *chan, char *context, char *exten, int p
        ast_mutex_unlock(&dpcache_lock);
        dial = pbx_findapp("Dial");
        if (dial) {
-               pbx_exec(chan, dial, req, newstack);
+               return pbx_exec(chan, dial, req, newstack);
        } else {
                ast_log(LOG_WARNING, "No dial application registered\n");
        }