]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Adding headers for fail2ban to better handle the source and target of the failures.
authorWilliam King <william.king@quentustech.com>
Fri, 20 Apr 2012 22:05:02 +0000 (15:05 -0700)
committerWilliam King <william.king@quentustech.com>
Fri, 20 Apr 2012 22:05:27 +0000 (15:05 -0700)
src/mod/endpoints/mod_sofia/sofia_reg.c

index e8d02d08e19446fdde5d1780331533167bcb480a..81b8da16963a19a8212bd8f880651e2bcfca259d 100644 (file)
@@ -1397,6 +1397,9 @@ uint8_t sofia_reg_handle_register(nua_t *nua, sofia_profile_t *profile, nua_hand
                                switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "to-user", to_user);
                                switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "to-host", to_host);
                                switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "network-ip", network_ip);
+                               switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "user-agent", agent);
+                               switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "profile-name", profile->name);
+                               switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "network-port", network_port_c);
                                switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "registration-type", (regtype == REG_INVITE) ? "INVITE" : "REGISTER");
                                switch_event_fire(&s_event);
                        }