AsteriskAgent - using directly ms duration instead of seconds with multiply

This commit is contained in:
andronache
2021-06-28 09:51:14 +03:00
committed by Dan Christian Bogos
parent c4565d1c9d
commit db672ba0e5

View File

@@ -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
}
}