mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
if the phone is behind nat with us... don't consider nat processing fixees cases where things are EVIL like cisco 79xx
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15486 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
4ce2a15981
commit
220ebe8175
@ -1354,6 +1354,10 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
|
||||
nua_respond(nh, SIP_500_INTERNAL_SERVER_ERROR, TAG_END());
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (is_nat && !sofia_glue_check_nat(profile, network_ip)) {
|
||||
is_nat = NULL;
|
||||
}
|
||||
|
||||
sofia_reg_handle_register(nua, profile, nh, sip, type, key, sizeof(key), &v_event, is_nat);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user