Add 'CC-Member-Joined-Time' header to 'agent-offering' event

Due to timing issues, 'agent-offering' event can be received before 'member-queue-start' by external systems integrating with mod_callcenter via events.
This aids implementation of such external integrations by simply providing 'CC-Member-Joined-Time' in 'agent-offer' to remove the need to match the two events in such cases.
This commit is contained in:
Anton Olofsson 2021-10-05 10:56:01 +02:00
parent 3a66eb415f
commit 72491f4211
1 changed files with 1 additions and 0 deletions

View File

@ -1729,6 +1729,7 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-CID-Name", h->member_cid_name);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-CID-Number", h->member_cid_number);
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "CC-Member-DNIS", member_dnis);
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "CC-Member-Joined-Time", "%" SWITCH_TIME_T_FMT, t_member_called);
switch_event_fire(&event);
}