How do I enable the chat to communicate inside from 100 to 101?

Tell me please.What do I need to do to enable the chat to communicate internally with each other?Without external SMS, namely, only for internal communication.How do I do this step by step in FreePBX17?
At the moment, after installing FreePBX 17, messages are sent, and the internal subscriber receives only a call and that’s it.Messages are not reaching him.
It is necessary to make sure that the numbers 100 and 101 can communicate with each other internally via SMS (chat).
P/s. I’m new, so if possible, step by step;)

Sounds like you are trying to do internal messaging over SIP, which is not available as part of FreePBX. You can write some custom dialplan to support this. It would look something like this:

[messages-in]
; Deliver to local 4-digit extension. If you use 3, 5 or other length extensions, adjust accordingly.
exten => _XXXX,1,Set(FROMUSER=${CUT(MESSAGE(from),<,2)})
same => n,Set(FROMUSER=${CUT(FROMUSER,@,1)})
same => n,Set(FROMUSER=${CUT(FROMUSER,:,2)})
same => n,Set(TODEVICE=${DB(DEVICE/${EXTEN}/dial)})
same => n,Set(TODEVICE=${TOLOWER(${STRREPLACE(TODEVICE,"/",":")})})
same => n,MessageSend(${TODEVICE},${FROMUSER})
same => n,Hangup()

Excuse me, please tell me where to insert this code?
And I plan to have more than 10 participants who will compete with each other.Does this code give general instructions, or do I need to write my own code for each participant?

I haven’t checked the dialplan fragment, but you also need to add a message context to the endpoint definitions. The error they are getting is because the message is being sent to the voice call part of the dialplan. That’s the part that needs to be repeated for each sender.

It turns out that there is no way to fully organize chat communication between users within the network.This is only possible when connecting SMS providers to external networks.

If you want something for internal communication look into Nextcloud Talk

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.