]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: fix send-message-query-on-register set to 'false' (MODSOFIA-42)
authorMichael Jerris <mike@jerris.com>
Wed, 9 Dec 2009 15:52:35 +0000 (15:52 +0000)
committerMichael Jerris <mike@jerris.com>
Wed, 9 Dec 2009 15:52:35 +0000 (15:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15857 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 7f9a275848a063b3d3732d89a70963cdbf79fb7c..4763875d30517f533f3abe2a064c1d5da69dbaec 100644 (file)
@@ -1921,6 +1921,7 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
                                                        sofia_set_pflag(profile, PFLAG_MESSAGE_QUERY_ON_FIRST_REGISTER);
                                                } else {
                                                        sofia_clear_pflag(profile, PFLAG_MESSAGE_QUERY_ON_REGISTER);
+                                                       sofia_clear_pflag(profile, PFLAG_MESSAGE_QUERY_ON_FIRST_REGISTER);
                                                }
                                        } else if (!strcasecmp(var, "auto-rtp-bugs")) {
                                                parse_rtp_bugs(profile, val);
@@ -2566,6 +2567,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                        sofia_set_pflag(profile, PFLAG_MESSAGE_QUERY_ON_FIRST_REGISTER);
                                                } else {
                                                        sofia_clear_pflag(profile, PFLAG_MESSAGE_QUERY_ON_REGISTER);
+                                                       sofia_clear_pflag(profile, PFLAG_MESSAGE_QUERY_ON_FIRST_REGISTER);
                                                }
                                        } else if (!strcasecmp(var, "inbound-use-callid-as-uuid")) {
                                                if (switch_true(val)) {