Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

WHISTLE-1441: no need to track callid for wrapup

  • Loading branch information...
commit 4cd9841bb7f355d83686b7f3261c8d6e874708a8 1 parent ef1b75c
James Aimonetti jamesaimonetti authored

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. +3 4 whistle_apps/apps/acdc/src/acdc_agent_fsm.erl
7 whistle_apps/apps/acdc/src/acdc_agent_fsm.erl
@@ -559,7 +559,7 @@ answered({channel_hungup, CallId}
559 559 acdc_agent:channel_hungup(Srv, CallId),
560 560 Ref = start_wrapup_timer(WrapupTimeout),
561 561
562   - acdc_stats:agent_wrapup(AcctId, AgentId, CallId, WrapupTimeout),
  562 + acdc_stats:agent_wrapup(AcctId, AgentId, WrapupTimeout),
563 563
564 564 {next_state, wrapup, State#state{wrapup_timeout=0, wrapup_ref=Ref}};
565 565
@@ -582,7 +582,7 @@ answered({channel_hungup, CallId}
582 582 acdc_agent:channel_hungup(Srv, CallId),
583 583 Ref = start_wrapup_timer(WrapupTimeout),
584 584
585   - acdc_stats:agent_wrapup(AcctId, AgentId, CallId, WrapupTimeout),
  585 + acdc_stats:agent_wrapup(AcctId, AgentId, WrapupTimeout),
586 586
587 587 {next_state, wrapup, State#state{wrapup_timeout=0, wrapup_ref=Ref}};
588 588
@@ -630,7 +630,6 @@ wrapup({timeout, Ref, wrapup_expired}, #state{wrapup_ref=Ref
630 630 ,agent_id=AgentId
631 631 }=State) ->
632 632 lager:debug("wrapup timer expired, ready for action!"),
633   -
634 633 acdc_stats:agent_ready(AcctId, AgentId),
635 634
636 635 {next_state, ready, clear_call(State)};
@@ -807,7 +806,7 @@ code_change(_OldVsn, StateName, State, _Extra) ->
807 806 %%%===================================================================
808 807 -spec start_wrapup_timer/1 :: (integer()) -> reference().
809 808 start_wrapup_timer(Timeout) when Timeout < 0 -> start_wrapup_timer(0); % send immediately
810   -start_wrapup_timer(Timeout) -> gen_fsm:start_timer(Timeout, wrapup_expired).
  809 +start_wrapup_timer(Timeout) -> gen_fsm:start_timer(Timeout*1000, wrapup_expired).
811 810
812 811 -spec start_sync_timer/0 :: () -> reference().
813 812 start_sync_timer() ->

0 comments on commit 4cd9841

Please sign in to comment.
Something went wrong with that request. Please try again.