revert my pass through the tree to remove checks of the result of ast_strdupa
[asterisk/asterisk.git] / apps / app_transfer.c
old mode 100755 (executable)
new mode 100644 (file)
index 4443a78..9879034
@@ -19,6 +19,8 @@
 /*! \file
  *
  * \brief Transfer a caller
+ *
+ * \author Mark Spencer <markster@digium.com>
  * 
  * Requires transfer support from channel driver
  *
@@ -26,8 +28,9 @@
  */
 
 #include <stdlib.h>
-#include <unistd.h>
+#include <stdio.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "asterisk.h"
 
@@ -130,7 +133,7 @@ static int transfer_exec(struct ast_channel *chan, void *data)
 
        if (res < 0) {
                status = "FAILURE";
-               if (priority_jump || option_priority_jumping)
+               if (priority_jump || ast_opt_priority_jumping)
                        ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
                res = 0;
        } else {