]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODENDP-125 to select the proper AF on a profile based on sipip
authorBrian West <brian@freeswitch.org>
Sun, 17 Aug 2008 19:43:50 +0000 (19:43 +0000)
committerBrian West <brian@freeswitch.org>
Sun, 17 Aug 2008 19:43:50 +0000 (19:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9313 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index c953c91be86ef7dc627bb6a4cb23aca69fcd6e1c..028a48453813cc07d86f405c119a674f65b59cb0 100644 (file)
@@ -540,6 +540,8 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
                                                          sofia_event_callback, /* Callback for processing events */
                                                          profile,      /* Additional data to pass to callback */
                                                          NUTAG_URL(profile->bindurl),
+                                                         TAG_IF(!strchr(profile->sipip, ':'), SOATAG_AF(SOA_AF_IP4_ONLY)),
+                                                         TAG_IF(strchr(profile->sipip, ':'), SOATAG_AF(SOA_AF_IP6_ONLY)),
                                                          TAG_IF(sofia_test_pflag(profile, PFLAG_TLS), NUTAG_SIPS_URL(profile->tls_bindurl)), 
                                                          TAG_IF(sofia_test_pflag(profile, PFLAG_TLS), NUTAG_CERTIFICATE_DIR(profile->tls_cert_dir)), 
                                                          TAG_IF(sofia_test_pflag(profile, PFLAG_TLS), TPTAG_TLS_VERSION(profile->tls_version)),