Make sofia::register contain info about whether an update or insert was performed.

This commit is contained in:
Eliot Gable 2013-01-16 16:50:07 +00:00
parent 52d11b461b
commit 01372cd1f9
1 changed files with 3 additions and 0 deletions

View File

@ -1662,6 +1662,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, "username", username);
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "realm", realm);
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "user-agent", agent);
if (update_registration) {
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "update-reg", "true");
}
switch_event_fire(&s_event);
}