]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3474 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Aug 2011 21:34:39 +0000 (16:34 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 19 Aug 2011 21:34:39 +0000 (16:34 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.h
src/mod/endpoints/mod_sofia/sofia.c

index 9dd4d2d7487735ab43ff47d0a61d243f02a418fa..8c50a9059d0510de165553f3e0cf59e298841880 100644 (file)
@@ -215,6 +215,7 @@ typedef enum {
        PFLAG_MANAGE_SHARED_APPEARANCE,
        PFLAG_MANAGE_SHARED_APPEARANCE_SYLANTRO,
        PFLAG_DISABLE_SRV,
+       PFLAG_DISABLE_SRV503,
        PFLAG_DISABLE_NAPTR,
        PFLAG_AUTOFLUSH,
        PFLAG_NAT_OPTIONS_PING,
index 2475a5cc0bad270acce5af787b670e0b7e0707c5..96df565ee360471b1657bf1c1e3655a88a33d5f5 100644 (file)
@@ -1790,6 +1790,8 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
                                                                         NTATAG_USE_SRV(0)),
                                                          TAG_IF(sofia_test_pflag(profile, PFLAG_DISABLE_NAPTR),
                                                                         NTATAG_USE_NAPTR(0)),
+                                                         TAG_IF(sofia_test_pflag(profile, PFLAG_DISABLE_SRV503),
+                                                                        NTATAG_SRV_503(0)),                                                                     
                                                          NTATAG_DEFAULT_PROXY(profile->outbound_proxy),
                                                          NTATAG_SERVER_RPORT(profile->server_rport_level),
                                                          NTATAG_CLIENT_RPORT(profile->client_rport_level),
@@ -3962,6 +3964,10 @@ switch_status_t config_sofia(int reload, char *profile_name)
                                                if (switch_true(val)) {
                                                        sofia_set_pflag(profile, PFLAG_DISABLE_NAPTR);
                                                }
+                                       } else if (!strcasecmp(var, "disable-srv503")) {
+                                               if (switch_true(val)) {
+                                                       sofia_set_pflag(profile, PFLAG_DISABLE_SRV503);
+                                               }                                               
                                        } else if (!strcasecmp(var, "unregister-on-options-fail")) {
                                                if (switch_true(val)) {
                                                        sofia_set_pflag(profile, PFLAG_UNREG_OPTIONS_FAIL);