[Freeswitch-svn] [commit] r13610 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
brian at freeswitch.org
Wed Jun 3 22:50:17 PDT 2009
Author: brian
Date: Thu Jun 4 00:50:16 2009
New Revision: 13610
Log:
missed one
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Thu Jun 4 00:50:16 2009
@@ -141,8 +141,10 @@
gw_sub_ptr->expires_str = "0";
}
- user_via = sofia_glue_create_external_via(NULL, gateway_ptr->profile, gateway_ptr->register_transport);
-
+ if (sofia_glue_check_nat(gateway_ptr->profile, gateway_ptr->register_proxy)) {
+ user_via = sofia_glue_create_external_via(NULL, gateway_ptr->profile, gateway_ptr->register_transport);
+ }
+
switch (ostate) {
case SUB_STATE_NOSUB:
break;
More information about the Freeswitch-svn
mailing list