]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10041: [mod_conference,mod_sofia] Invalid contact,<(null)>;isfocus, when hold...
authorBrian West <brian@freeswitch.org>
Tue, 14 Feb 2017 20:30:57 +0000 (14:30 -0600)
committerBrian West <brian@freeswitch.org>
Tue, 14 Feb 2017 20:31:11 +0000 (14:31 -0600)
src/mod/endpoints/mod_sofia/mod_sofia.c

index 52c6a8d58a60e6174228c5c1d796fc8c88c5f8f2..ebf12893b89ae25d466a570b4373443b65cb3bc6 100644 (file)
@@ -683,7 +683,7 @@ static switch_status_t sofia_answer_channel(switch_core_session_t *session)
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Dialplan did not acknowledge_call; sent 100 Trying");
        }
 
-       if (switch_channel_test_flag(channel, CF_CONFERENCE) && !switch_stristr(";isfocus", tech_pvt->reply_contact)) {
+       if (switch_channel_test_flag(channel, CF_CONFERENCE) && !zstr(tech_pvt->reply_contact) && !switch_stristr(";isfocus", tech_pvt->reply_contact)) {
                tech_pvt->reply_contact = switch_core_session_sprintf(session, "%s;isfocus", tech_pvt->reply_contact);
        }
 
@@ -1313,7 +1313,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                goto end;
        }
 
-       if (switch_channel_test_flag(channel, CF_CONFERENCE) && !switch_stristr(";isfocus", tech_pvt->reply_contact)) {
+       if (switch_channel_test_flag(channel, CF_CONFERENCE) && !zstr(tech_pvt->reply_contact) && !switch_stristr(";isfocus", tech_pvt->reply_contact)) {
                tech_pvt->reply_contact = switch_core_session_sprintf(session, "%s;isfocus", tech_pvt->reply_contact);
        }