From 13068f178313bb47661729dc6e97bbd9d7cd5dc1 Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 29 Jun 2012 16:14:46 -0500 Subject: [PATCH] allow silence for moh type on campon --- src/mod/applications/mod_dptools/mod_dptools.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/applications/mod_dptools/mod_dptools.c b/src/mod/applications/mod_dptools/mod_dptools.c index c98db6a04b..344544f705 100755 --- a/src/mod/applications/mod_dptools/mod_dptools.c +++ b/src/mod/applications/mod_dptools/mod_dptools.c @@ -2869,6 +2869,10 @@ SWITCH_STANDARD_APP(audio_bridge_function) moh = switch_channel_get_variable(caller_channel, "campon_hold_music"); } + if (!zstr(moh) && !strcasecmp(moh, "silence")) { + moh = NULL; + } + do { fail = 0;