fix transfer goto issue
[asterisk/asterisk.git] / pbx.c
diff --git a/pbx.c b/pbx.c
index 209f059..82b7c78 100755 (executable)
--- a/pbx.c
+++ b/pbx.c
@@ -3882,7 +3882,7 @@ int ast_async_goto(struct ast_channel *chan, const char *context, const char *ex
                        ast_explicit_goto(tmpchan,
                                                          (context && !ast_strlen_zero(context)) ? context : chan->context,
                                                          (exten && !ast_strlen_zero(exten)) ? exten : chan->exten,
-                                                         priority - 1);
+                                                         priority);
 
                        /* Masquerade into temp channel */
                        ast_channel_masquerade(tmpchan, chan);