When I send messages to another extension the log return the WARNING bellow, what is this:
-- Executing [4701005@messages:1] MessageSend("Message/ast_msg_queue", "sip:4701005,""<sip:1901003@xxxx.com>") in new stack
[2018-02-22 23:57:35] WARNING[14595][C-0000007c]: pbx.c:4482 __ast_pbx_run: Timeout, but no rule 't' or 'e' in context 'messages'
This message it its making reference to the Asterisk special extensions
t: Response timeout extension
When the caller waits too long before entering a response to the Background() or WaitExten() applications, and there are no more priorities in the current extension, the call is sent to the t extension.
Or
e: Exception Catchall extension
This extension will substitute as a catchall for any of the ‘i’, ‘t’, or ‘T’ extensions, if any of them do not exist
I’ve not used the message send, feature, so I’m not sure if it re-enters the dialplan somehow, but t generally means that the dialplan was waiting for the user to enter digits tot meet the dialplan’s minimum number length requirements. I’m not sure how WaitExten triggers t handling - I suspect code is part of pbx.c, but it seems unlikely that message sending has any direct ability to do so.
I don’t know what would happen if the messages destination responded with a redirect to an incomplete number.
You need to enable protocol debugging on the SIP channel, to see if anything his happening there, and you need to set a high verbosity, to see what is being attempted in the dialplan.