forgot to convert these to use sofia_glue_check_nat
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13601 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8cc053a611
commit
50174a7412
|
@ -1417,9 +1417,7 @@ static int sofia_presence_mwi_callback2(void *pArg, int argc, char **argv, char
|
||||||
}
|
}
|
||||||
|
|
||||||
contact = sofia_glue_get_url_from_contact(o_contact, 1);
|
contact = sofia_glue_get_url_from_contact(o_contact, 1);
|
||||||
|
if (sofia_glue_check_nat(profile, network_ip)) {
|
||||||
if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
|
|
||||||
!switch_check_network_list_ip(network_ip, profile->local_network)) {
|
|
||||||
char *ptr = NULL;
|
char *ptr = NULL;
|
||||||
const char *transport_str = NULL;
|
const char *transport_str = NULL;
|
||||||
|
|
||||||
|
@ -1557,8 +1555,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
|
||||||
|
|
||||||
sofia_glue_get_addr(nua_current_request(nua), network_ip, sizeof(network_ip), &network_port);
|
sofia_glue_get_addr(nua_current_request(nua), network_ip, sizeof(network_ip), &network_port);
|
||||||
|
|
||||||
if (sofia_test_pflag(profile, PFLAG_AUTO_NAT) && profile->local_network &&
|
if (sofia_glue_check_nat(profile, network_ip)) {
|
||||||
!switch_check_network_list_ip(network_ip, profile->local_network)) {
|
|
||||||
is_auto_nat = 1;
|
is_auto_nat = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue