]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add per user acl
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Jun 2008 16:11:09 +0000 (16:11 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 4 Jun 2008 16:11:09 +0000 (16:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8752 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index f6f254df45767e8858fbd12014f3aa8dab133d4b..9134a8f0b56c64f0ff0de0f75fe7c6edc70e5845 100644 (file)
@@ -785,6 +785,8 @@ void sofia_reg_handle_sip_i_register(nua_t *nua, sofia_profile_t *profile, nua_h
                if (ok && !(profile->pflags & PFLAG_BLIND_REG)) {
                        type = REG_AUTO_REGISTER;
                } else if (!ok) {
+            switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "IP %s Rejected by acl %s\n", network_ip, profile->reg_acl[x]);
+            nua_respond(nh, SIP_403_FORBIDDEN, NUTAG_WITH_THIS(nua), TAG_END());
                        goto end;
                }
        }