]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5503 --resolve indeed, thx
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Jun 2013 14:31:16 +0000 (09:31 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Jun 2013 14:31:16 +0000 (09:31 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c
src/mod/endpoints/mod_sofia/mod_sofia.h
src/mod/endpoints/mod_sofia/sofia.c

index bf4fd1b7bf02a91b88cdc93f7f3aa3d57077b8ba..0e21566aef9f8685fd0e22a6753a068ca3cd8d4c 100644 (file)
@@ -1176,7 +1176,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
        case SWITCH_MESSAGE_INDICATE_MEDIA_RENEG:
                {
                        if (msg->string_arg) {
-                               sofia_set_pflag(tech_pvt->profile, PFLAG_RENEG_ON_REINVITE);
+                               sofia_set_media_flag(tech_pvt->profile, SCMF_RENEG_ON_REINVITE);
                                sofia_clear_flag(tech_pvt, TFLAG_ENABLE_SOA);
                        }
 
index 95e70468a4688ba673d14d3434e2365ee1e31491..01b68bad25f4b2aaa51c0bee5b0e9b3d35b58344 100644 (file)
@@ -251,8 +251,6 @@ typedef enum {
        PFLAG_PRESENCE_ON_REGISTER,
        PFLAG_PRESENCE_ON_FIRST_REGISTER,
        PFLAG_NO_CONNECTION_REUSE,
-       PFLAG_RENEG_ON_HOLD,
-       PFLAG_RENEG_ON_REINVITE,
        PFLAG_RTP_NOTIMER_DURING_BRIDGE,
        PFLAG_LIBERAL_DTMF,
        PFLAG_AUTO_ASSIGN_PORT,
index 696579b1b9fb4a55d24adf27e7c74c04a38fe750..25f3408ce2e1652b03b05b8fd69201b03b2e650e 100644 (file)
@@ -3852,15 +3852,15 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                                }
                                        } else if (!strcasecmp(var, "renegotiate-codec-on-hold")) {
                                                if (switch_true(val)) {
-                                                       sofia_set_pflag(profile, PFLAG_RENEG_ON_HOLD);
+                                                       sofia_set_media_flag(profile, SCMF_RENEG_ON_HOLD);
                                                } else {
-                                                       sofia_clear_pflag(profile, PFLAG_RENEG_ON_HOLD);
+                                                       sofia_clear_media_flag(profile, SCMF_RENEG_ON_HOLD);
                                                }
                                        } else if (!strcasecmp(var, "renegotiate-codec-on-reinvite")) {
                                                if (switch_true(val)) {
-                                                       sofia_set_pflag(profile, PFLAG_RENEG_ON_REINVITE);
+                                                       sofia_set_media_flag(profile, SCMF_RENEG_ON_REINVITE);
                                                } else {
-                                                       sofia_clear_pflag(profile, PFLAG_RENEG_ON_REINVITE);
+                                                       sofia_clear_media_flag(profile, SCMF_RENEG_ON_REINVITE);
                                                }
                                        } else if (!strcasecmp(var, "presence-probe-on-register")) {
                                                if (switch_true(val)) {