Message/ast_msg_queue stuck on Hangup() Application


#1

I’m using asterisk 13.23.1 and I noted that any SIP message sent from one device to another, despite being correctly delivered to the intended destination, get stuck in the Message/ast_msg_queue channel on the Hangup() application, as shown here:

lab-asterisk-1*CLI> core show channels 
Channel              Location             State   Application(Data)             
Message/ast_msg_queu 202@SIPmsgs:5        Up      Hangup()                      
0 active channels
0 active calls
4 calls processed

My sip.conf is:

[general]
accept_outofcall_message=yes
outofcall_message_context=SIPmsgs

My extensions.conf is:

[SIPmsgs]
exten => _X.,1,Verbose(SIP message received)
 same => n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
 same => n,MessageSend(${ACTUALTO},${MESSAGE(from)})
 same => n,Verbose(Send status is ${MESSAGE_SEND_STATUS})
 same => n,Hangup()
 same => n,Hangup()

When a message is sent the Asterisk console shows:

SIP message received
Send status is SUCCESS

I’m using as reference this document

Does anybody knows what I’m doing wrong to cause messages to stuck on Hangup()?