mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 01:06:00 +00:00
mod_verto: add to login event id and domain values
This commit is contained in:
parent
2487e32c39
commit
b341643657
@ -882,6 +882,12 @@ static void login_fire_custom_event(jsock_t *jsock, cJSON *params, int success,
|
|||||||
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_sessid", cJSON_GetObjectCstr(params, "sessid"));
|
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_sessid", cJSON_GetObjectCstr(params, "sessid"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (jsock->id) {
|
||||||
|
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_id", jsock->id);
|
||||||
|
}
|
||||||
|
if (jsock->domain) {
|
||||||
|
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_domain", jsock->domain);
|
||||||
|
}
|
||||||
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "verto_success", "%d", success);
|
switch_event_add_header(s_event, SWITCH_STACK_BOTTOM, "verto_success", "%d", success);
|
||||||
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_result_txt", result_txt);
|
switch_event_add_header_string(s_event, SWITCH_STACK_BOTTOM, "verto_result_txt", result_txt);
|
||||||
switch_event_fire(&s_event);
|
switch_event_fire(&s_event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user