Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit db672ba

Browse files
andronachedanbogos
authored andcommitted
AsteriskAgent - using directly ms duration instead of seconds with multiply
1 parent c4565d1 commit db672ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agents/astagent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (sma *AsteriskAgent) handleStasisStart(ev *SMAsteriskEvent) {
202202
}
203203
// Set absolute timeout for non-postpaid calls
204204
if !sma.setChannelVar(ev.ChannelID(), CGRMaxSessionTime,
205-
strconv.Itoa(int(authReply.MaxUsage.Seconds()*1000))) {
205+
strconv.Itoa(int(authReply.MaxUsage.Milliseconds()))) {
206206
return
207207
}
208208
}

0 commit comments

Comments
 (0)