diff --git a/agents/astagent.go b/agents/astagent.go index 372a5bd7f..3b8418ea5 100644 --- a/agents/astagent.go +++ b/agents/astagent.go @@ -202,7 +202,7 @@ func (sma *AsteriskAgent) handleStasisStart(ev *SMAsteriskEvent) { } // Set absolute timeout for non-postpaid calls if !sma.setChannelVar(ev.ChannelID(), CGRMaxSessionTime, - strconv.Itoa(int(authReply.MaxUsage.Seconds()*1000))) { + strconv.Itoa(int(authReply.MaxUsage.Milliseconds()))) { return } }