]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
auto update displays in more places
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 7 Oct 2009 22:38:11 +0000 (22:38 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 7 Oct 2009 22:38:11 +0000 (22:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15111 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 38c6c0365f043ed23c7004db9b6cdf17217e17e3..58cff55069947200b769a107d91dbdf39606bb46 100644 (file)
@@ -4253,6 +4253,11 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
                                                                if ((tmp = switch_channel_get_variable(a_channel, SWITCH_HOLD_MUSIC_VARIABLE))) {
                                                                        moh = tmp;
                                                                }
+
+                                                               if (!strcasecmp(moh, "silence")) {
+                                                                       moh = NULL;
+                                                               }
+
                                                                //switch_channel_set_variable(a_channel, SWITCH_PARK_AFTER_BRIDGE_VARIABLE, "true");
                                                                if (moh) {
                                                                        switch_channel_set_variable_printf(a_channel, SWITCH_TRANSFER_AFTER_BRIDGE_VARIABLE,