[asterisk-commits] kmoore: branch 12 r406152 - /branches/12/res/res_stasis_playback.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jan 22 08:00:09 CST 2014
Author: kmoore
Date: Wed Jan 22 08:00:01 2014
New Revision: 406152
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406152
Log:
res_stasis_playback: Correct error argument order
Several of the playback error messages for invalid media input in
res_stasis_playback.c had the media name and channel name reversed.
They now correctly identify the channel name and media name.
Reported by: skrusty
Modified:
branches/12/res/res_stasis_playback.c
Modified: branches/12/res/res_stasis_playback.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_stasis_playback.c?view=diff&rev=406152&r1=406151&r2=406152
==============================================================================
--- branches/12/res/res_stasis_playback.c (original)
+++ branches/12/res/res_stasis_playback.c Wed Jan 22 08:00:01 2014
@@ -320,7 +320,7 @@
if (!recording) {
ast_log(LOG_ERROR, "Attempted to play recording '%s' on channel '%s' but recording does not exist",
- ast_channel_name(chan), relname);
+ relname, ast_channel_name(chan));
return;
}
@@ -334,7 +334,7 @@
if (sscanf(playback->media + strlen(NUMBER_URI_SCHEME), "%30d", &number) != 1) {
ast_log(LOG_ERROR, "Attempted to play number '%s' on channel '%s' but number is invalid",
- ast_channel_name(chan), playback->media + strlen(NUMBER_URI_SCHEME));
+ playback->media + strlen(NUMBER_URI_SCHEME), ast_channel_name(chan));
return;
}
@@ -348,7 +348,7 @@
} else {
/* Play URL */
ast_log(LOG_ERROR, "Attempted to play URI '%s' on channel '%s' but scheme is unsupported",
- ast_channel_name(chan), playback->media);
+ playback->media, ast_channel_name(chan));
return;
}
More information about the asterisk-commits
mailing list