missed one

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13610 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-06-04 05:50:16 +00:00
parent 32a1336d8a
commit 011ebe674b
1 changed files with 4 additions and 2 deletions

View File

@ -141,8 +141,10 @@ void sofia_sub_check_gateway(sofia_profile_t *profile, time_t now)
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;