getSipMaxTextBodySize

open fun getSipMaxTextBodySize(    @NonNull context: Context,     withSipThumbnailAttachment: Boolean,     thumbnailAttachmentSize: Long): Long

Return

max text byte allowed for sip packet

Parameters

thumbnailAttachmentSize

thumbnail file size if exist otherwise 0

context

used to retrieve configured value from Settings

withSipThumbnailAttachment

whether calculation of text byte size must take into account the thumbnail size