Sip messages configuring

From the SDK supplier we are using for mobile sip phones.

Our SDK send text messages using SIP SIMPLE protocol, to be specific using Page mode.

  • The Page Mode makes use of the SIP method MESSAGE, as defined in RFC 3428. This mode establishes no sessions.

Some servers does not support it directly or only after configuration.

> Any settings in FreePBX I need to enable ?
Not sure which actually. Also it depends on used backend and FreePBX version.
Some examples:

We are on ver 16.

I pasted into ext 204 & 205

[messages]
; Deliver to local 4-digit extension
exten => _XX!,1,Set(FROMUSER=${CUT(MESSAGE(from),<,2)})
same => n,Set(FROMUSER=${CUT(FROMUSER,@,1)})
same => n,Set(FROMUSER=${CUT(FROMUSER,:,2)})
same => n,Set(DIALSTRING=${DB(DEVICE/${EXTEN}/dial)})
same => n,Set(TODEVICE=${TOLOWER(${STRREPLACE(DIALSTRING,“/”,“:”)})})
same => n,MessageSend(${TODEVICE},${FROMUSER})

But the messages don’t happen.

Any ideas please