app_page: Add predial handlers for app_page.
[asterisk/asterisk.git] / include / asterisk / dial.h
index 0991c8f..19b1c87 100644 (file)
@@ -44,6 +44,7 @@ enum ast_dial_option {
        AST_DIAL_OPTION_ANSWER_EXEC,             /*!< Execute application upon answer in async mode */
        AST_DIAL_OPTION_MUSIC,                   /*!< Play music on hold instead of ringing to the calling channel */
        AST_DIAL_OPTION_DISABLE_CALL_FORWARDING, /*!< Disable call forwarding on channels */
+       AST_DIAL_OPTION_PREDIAL,                 /*!< Execute a predial subroutine before dialing */
        AST_DIAL_OPTION_MAX,                     /*!< End terminator -- must always remain last */
 };
 
@@ -206,6 +207,11 @@ void ast_dial_set_global_timeout(struct ast_dial *dial, int timeout);
  */
 void ast_dial_set_timeout(struct ast_dial *dial, int num, int timeout);
 
+/*! \since 12
+ * \brief Convert a hangup cause to a publishable dial status
+ */
+const char *ast_hangup_cause_to_dial_status(int hangup_cause);
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif