Skip to content

Commit d871c84

Browse files
authored
Stop announcement on agent call answer (#12)
Added functionality to stop the announcement when an agent answers the call.
1 parent 8ff0745 commit d871c84

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/mod/applications/mod_callcenter/mod_callcenter.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3303,6 +3303,9 @@ SWITCH_STANDARD_APP(callcenter_function)
33033303
} else {
33043304
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(member_session), SWITCH_LOG_DEBUG, "Member %s <%s> is answered by an agent in queue %s\n", switch_str_nil(switch_channel_get_variable(member_channel, "caller_id_name")), switch_str_nil(switch_channel_get_variable(member_channel, "caller_id_number")), queue_name);
33053305

3306+
/* Stop the announcement when the agent answers the call */
3307+
switch_ivr_stop_displace_session(member_session, queue->announce);
3308+
33063309
/* Update some channel variables for xml_cdr needs */
33073310
switch_channel_set_variable_printf(member_channel, "cc_cause", "%s", "answered");
33083311
if ((queue = get_queue(queue_name))) {

0 commit comments

Comments
 (0)