[svn-commits] mmichelson: trunk r127856 - /trunk/apps/app_chanspy.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Thu Jul 3 15:37:22 CDT 2008
Author: mmichelson
Date: Thu Jul 3 15:37:21 2008
New Revision: 127856
URL: http://svn.digium.com/view/asterisk?view=rev&rev=127856
Log:
Thanks to a suggestion from seanbright, print a warning if the attachment
of the whisper or barge audiohooks fails.
Modified:
trunk/apps/app_chanspy.c
Modified: trunk/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_chanspy.c?view=diff&rev=127856&r1=127855&r2=127856
==============================================================================
--- trunk/apps/app_chanspy.c (original)
+++ trunk/apps/app_chanspy.c Thu Jul 3 15:37:21 2008
@@ -361,10 +361,14 @@
ast_audiohook_init(&csth.whisper_audiohook, AST_AUDIOHOOK_TYPE_WHISPER, "ChanSpy");
ast_audiohook_init(&csth.bridge_whisper_audiohook, AST_AUDIOHOOK_TYPE_WHISPER, "Chanspy");
- start_spying(spyee, spyer_name, &csth.whisper_audiohook); /* Unlocks spyee */
+ if (start_spying(spyee, spyer_name, &csth.whisper_audiohook)) {
+ ast_log(LOG_WARNING, "Unable to attach whisper audiohook to spyee %s. Whisper mode disabled!\n", spyee->name);
+ }
if ((spyee_bridge = ast_bridged_channel(spyee))) {
ast_channel_lock(spyee_bridge);
- start_spying(ast_bridged_channel(spyee), spyer_name, &csth.bridge_whisper_audiohook);
+ if (start_spying(ast_bridged_channel(spyee), spyer_name, &csth.bridge_whisper_audiohook)) {
+ ast_log(LOG_WARNING, "Unable to attach barge audiohook on spyee %s. Barge mode disabled!\n", spyee->name);
+ }
ast_channel_unlock(spyee_bridge);
}
ast_channel_unlock(spyee);
More information about the svn-commits
mailing list