[svn-commits] russell: branch russell/chan_refcount r89922 - in /team/russell/chan_refcount...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Nov 27 18:26:03 CST 2007
Author: russell
Date: Tue Nov 27 18:26:02 2007
New Revision: 89922
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89922
Log:
sync with trunk
Modified:
team/russell/chan_refcount/ (props changed)
team/russell/chan_refcount/include/asterisk/channel.h
team/russell/chan_refcount/include/asterisk/pbx.h
team/russell/chan_refcount/main/pbx.c
Propchange: team/russell/chan_refcount/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Propchange: team/russell/chan_refcount/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Tue Nov 27 18:26:02 2007
@@ -1,1 +1,1 @@
-/trunk:1-89889
+/trunk:1-89921
Modified: team/russell/chan_refcount/include/asterisk/channel.h
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/include/asterisk/channel.h?view=diff&rev=89922&r1=89921&r2=89922
==============================================================================
--- team/russell/chan_refcount/include/asterisk/channel.h (original)
+++ team/russell/chan_refcount/include/asterisk/channel.h Tue Nov 27 18:26:02 2007
@@ -255,10 +255,18 @@
int (* const devicestate)(void *data); /*!< Devicestate call back */
- /*! \brief Start sending a literal DTMF digit */
+ /*!
+ * \brief Start sending a literal DTMF digit
+ *
+ * \note The channel is not locked when this function gets called.
+ */
int (* const send_digit_begin)(struct ast_channel *chan, char digit);
- /*! \brief Stop sending a literal DTMF digit */
+ /*!
+ * \brief Stop sending a literal DTMF digit
+ *
+ * \note The channel is not locked when this function gets called.
+ */
int (* const send_digit_end)(struct ast_channel *chan, char digit, unsigned int duration);
/*! \brief Call a given phone number (address, etc), but don't
Modified: team/russell/chan_refcount/include/asterisk/pbx.h
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/include/asterisk/pbx.h?view=diff&rev=89922&r1=89921&r2=89922
==============================================================================
--- team/russell/chan_refcount/include/asterisk/pbx.h (original)
+++ team/russell/chan_refcount/include/asterisk/pbx.h Tue Nov 27 18:26:02 2007
@@ -866,14 +866,33 @@
set to 1, sets to use the new Trie-based pattern matcher. If newval set to 0, sets to use
the old linear-search algorithm. Returns previous value. */
int pbx_set_extenpatternmatchnew(int newval);
+
+/*!
+ * \note This function will handle locking the channel as needed.
+ */
int ast_goto_if_exists(struct ast_channel *chan, const char *context, const char *exten, int priority);
-/* I can find neither parsable nor parseable at dictionary.com, but google gives me 169000 hits for parseable and only 49,800 for parsable */
+
+/*!
+ * \note I can find neither parsable nor parseable at dictionary.com,
+ * but google gives me 169000 hits for parseable and only 49,800
+ * for parsable
+ *
+ * \note This function will handle locking the channel as needed.
+ */
/*!
* \note The channel should be locked before calling this function.
*/
int ast_parseable_goto(struct ast_channel *chan, const char *goto_string);
+
+/*!
+ * \note This function will handle locking the channel as needed.
+ */
int ast_explicit_goto(struct ast_channel *chan, const char *context, const char *exten, int priority);
+
+/*!
+ * \note This function will handle locking the channel as needed.
+ */
int ast_async_goto_if_exists(struct ast_channel *chan, const char *context, const char *exten, int priority);
struct ast_custom_function* ast_custom_function_find(const char *name);
Modified: team/russell/chan_refcount/main/pbx.c
URL: http://svn.digium.com/view/asterisk/team/russell/chan_refcount/main/pbx.c?view=diff&rev=89922&r1=89921&r2=89922
==============================================================================
--- team/russell/chan_refcount/main/pbx.c (original)
+++ team/russell/chan_refcount/main/pbx.c Tue Nov 27 18:26:02 2007
@@ -5723,6 +5723,8 @@
if (!chan)
return -1;
+ ast_channel_lock(chan);
+
if (!ast_strlen_zero(context))
ast_copy_string(chan->context, context, sizeof(chan->context));
if (!ast_strlen_zero(exten))
@@ -5733,6 +5735,8 @@
if (ast_test_flag(chan, AST_FLAG_IN_AUTOLOOP))
chan->priority--;
}
+
+ ast_channel_unlock(chan);
return 0;
}
More information about the svn-commits
mailing list