|
@@ -2,6 +2,7 @@ package co.id.datacomsolusindo.ipphonebridge
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper
|
|
|
import com.fasterxml.jackson.databind.ObjectWriter
|
|
|
+import org.apache.commons.lang3.StringUtils
|
|
|
import org.apache.logging.log4j.LogManager
|
|
|
import org.springframework.core.Ordered
|
|
|
import org.springframework.core.annotation.Order
|
|
@@ -102,7 +103,7 @@ class BridgeFilter(private val template: SimpMessagingTemplate, val resourceLoad
|
|
|
val partStr = ow.writeValueAsString(rb).chunked(chunkSize)
|
|
|
val partialID = UUID.randomUUID().toString()
|
|
|
val st2 = System.nanoTime()
|
|
|
- if (!ClientHolder.get().containsKey(clientNumber.toString())) {
|
|
|
+ if (!ClientHolder.get().containsKey(StringUtils.leftPad(clientNumber.toString(), 3, '0'))) {
|
|
|
// subscribeGW /topic/request/reqID
|
|
|
// sendGW "/app/partial/$client"
|
|
|
chain.doFilter(request, response)
|