summaryrefslogtreecommitdiff
path: root/include/asterisk/pbx.h
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2007-11-02 15:36:34 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2007-11-02 15:36:34 +0000
commite8c781b215dc8db8ab04ccf7fbcc27d70584a136 (patch)
tree82187f5f410411b22b75b7f20c7c92463e6e5c92 /include/asterisk/pbx.h
parentb6c7daa80456f759d5f64be41492f565e7f05889 (diff)
Add pbx_lua as a method of doing extensions
Reported by: mnicholson Patch by: mnicholson Closes issue #11140 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@88250 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/pbx.h')
-rw-r--r--include/asterisk/pbx.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index 417b51509..2b6ad75e6 100644
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -508,6 +508,20 @@ int ast_extension_match(const char *pattern, const char *extension);
int ast_extension_close(const char *pattern, const char *data, int needmore);
/*!
+ * \brief Determine if one extension should match before another
+ *
+ * \param a extension to compare with b
+ * \param b extension to compare with a
+ *
+ * Checks whether or extension a should match before extension b
+ *
+ * \retval 0 if the two extensions have equal matching priority
+ * \retval 1 on a > b
+ * \retval -1 on a < b
+ */
+int ast_extension_cmp(const char *a, const char *b);
+
+/*!
* \brief Launch a new extension (i.e. new stack)
*
* \param c not important