From 30485e3c94baa69235582e3cc7cb1d041da26fe0 Mon Sep 17 00:00:00 2001 From: Dtsnko Date: Wed, 3 Jul 2024 15:46:40 +0300 Subject: [PATCH] [WTEL-4696]: + silence_timeout chat close reason --- go.mod | 6 +++--- queue/chat_inbound.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 9160d3a9..fc4279a2 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/pborman/uuid v1.2.1 github.com/pkg/errors v0.9.1 github.com/streadway/amqp v1.1.0 - github.com/webitel/engine v0.0.0-20240703095009-cdc3ac7a5118 + github.com/webitel/engine v0.0.0-20240703124144-4b6ca5c48050 github.com/webitel/flow_manager v0.0.0-20240408104238-6ef381ff2d58 github.com/webitel/wlog v0.0.0-20220608103744-93b33e61bd28 golang.org/x/sync v0.6.0 @@ -26,8 +26,8 @@ require ( 4d63.com/gocheckcompilerdirectives v1.2.1 // indirect 4d63.com/gochecknoglobals v0.2.1 // indirect buf.build/gen/go/grpc-ecosystem/grpc-gateway/protocolbuffers/go v1.34.2-20231027202514-3f42134f4c56.2 // indirect - buf.build/gen/go/webitel/chat/grpc/go v1.4.0-20240702143950-364c79a4f8d2.2 // indirect - buf.build/gen/go/webitel/chat/protocolbuffers/go v1.34.2-20240702143950-364c79a4f8d2.2 // indirect + buf.build/gen/go/webitel/chat/grpc/go v1.4.0-20240703121916-db3266bbfcd3.2 // indirect + buf.build/gen/go/webitel/chat/protocolbuffers/go v1.34.2-20240703121916-db3266bbfcd3.2 // indirect buf.build/gen/go/webitel/engine/grpc/go v1.4.0-20240618123100-3e740393d1cc.1 // indirect buf.build/gen/go/webitel/engine/protocolbuffers/go v1.34.2-20240627112700-3fe53516f45c.2 // indirect buf.build/gen/go/webitel/logger/grpc/go v1.3.0-20240404135439-f6c7830c29dd.2 // indirect diff --git a/queue/chat_inbound.go b/queue/chat_inbound.go index 5ee663f3..5fd7309c 100644 --- a/queue/chat_inbound.go +++ b/queue/chat_inbound.go @@ -218,7 +218,7 @@ func (queue *InboundChatQueue) process(attempt *Attempt, inviterId, invUserId st if queue.settings.MaxIdleDialog > 0 && aSess != nil && conv.SilentSec() >= queue.settings.MaxIdleDialog { attempt.Log("max idle dialog") attempt.SetResult(AttemptResultDialogTimeout) - aSess.Leave("todo silence timeout") + aSess.Leave(model.SilenceTimeout) break }