[svn-commits] rmudgett: trunk r367477 - in /trunk: ./ main/pbx.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed May 23 18:22:47 CDT 2012
Author: rmudgett
Date: Wed May 23 18:22:42 2012
New Revision: 367477
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=367477
Log:
Fix WaitExten(x,m(musicclass)) string termination.
The AST_CONTROL_HOLD MOH class from the WaitExten application can now be
queued onto a channel, passed over local channels with the /m option, and
passed over IAX channels.
........
Merged revisions 367469 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 367470 from http://svn.asterisk.org/svn/asterisk/branches/10
Modified:
trunk/ (props changed)
trunk/main/pbx.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/pbx.c?view=diff&rev=367477&r1=367476&r2=367477
==============================================================================
--- trunk/main/pbx.c (original)
+++ trunk/main/pbx.c Wed May 23 18:22:42 2012
@@ -9920,7 +9920,8 @@
if (ast_test_flag(&flags, WAITEXTEN_MOH) && !opts[0] ) {
ast_log(LOG_WARNING, "The 'm' option has been specified for WaitExten without a class.\n");
} else if (ast_test_flag(&flags, WAITEXTEN_MOH)) {
- ast_indicate_data(chan, AST_CONTROL_HOLD, S_OR(opts[0], NULL), strlen(opts[0]));
+ ast_indicate_data(chan, AST_CONTROL_HOLD, S_OR(opts[0], NULL),
+ !ast_strlen_zero(opts[0]) ? strlen(opts[0]) + 1 : 0);
} else if (ast_test_flag(&flags, WAITEXTEN_DIALTONE)) {
struct ast_tone_zone_sound *ts = ast_get_indication_tone(ast_channel_zone(chan), "dial");
if (ts) {
More information about the svn-commits
mailing list