mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 19:40:08 +00:00
no need to set this var twice.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8428 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8190b63460
commit
5851077d26
@ -3164,12 +3164,8 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
uint32_t x = 0;
|
uint32_t x = 0;
|
||||||
int ok = 1;
|
int ok = 1;
|
||||||
char *last_acl = NULL;
|
char *last_acl = NULL;
|
||||||
const char *contact_host = NULL;
|
|
||||||
|
|
||||||
if (sip && sip->sip_contact && sip->sip_contact->m_url && sip->sip_contact->m_url->url_host) {
|
if (!switch_strlen_zero(contact_host)) {
|
||||||
contact_host = sip->sip_contact->m_url->url_host;
|
|
||||||
}
|
|
||||||
if (contact_host) {
|
|
||||||
for (x = 0 ; x < profile->nat_acl_count; x++) {
|
for (x = 0 ; x < profile->nat_acl_count; x++) {
|
||||||
last_acl = profile->nat_acl[x];
|
last_acl = profile->nat_acl[x];
|
||||||
if (!(ok = switch_check_network_list_ip(contact_host, last_acl))) {
|
if (!(ok = switch_check_network_list_ip(contact_host, last_acl))) {
|
||||||
@ -3184,10 +3180,6 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user