[Freeswitch-svn] [commit] r8222 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: anthm Date: Wed Apr 30 16:03:20 2008 New Revision: 8222 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Log: update Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Wed Apr 30 16:03:20 2008 @@ -2615,15 +2615,16 @@ if ((profile->pflags & PFLAG_AUTH_CALLS) || (!(profile->pflags & PFLAG_BLIND_AUTH) && (sip->sip_proxy_authorization || sip->sip_authorization))) { - if (strcmp(network_ip, profile->sipip)) { + int rport = ntohs(((struct sockaddr_in *) msg_addrinfo(nua_current_request(nua))->ai_addr)->sin_port); + if (!strcmp(network_ip, profile->sipip) && rport == profile->sip_port) { + calling_myself++; + } else { if (sofia_reg_handle_register(nua, profile, nh, sip, REG_INVITE, key, sizeof(key), &v_event)) { if (v_event) { switch_event_destroy(&v_event); } return; } - } else { - calling_myself++; } is_auth++; }
participants (1)
-
Freeswitch SVN