mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
AsteriskAgent - using directly ms duration instead of seconds with multiply
This commit is contained in:
committed by
Dan Christian Bogos
parent
c4565d1c9d
commit
db672ba0e5
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user