[asterisk-users] Respond to an out of call SIP MESSAGE

Emil Ohlsson emo at svep.se
Mon Sep 21 01:48:52 CDT 2015


Hi,

I'm having trouble configuring Asterisk to respond to an incoming out of call SIP MESSAGE. The transport protocol is TLS and the Asterisk version is 10 (it's old, but I'm kind of stuck with it at the moment). Currently I have roughly the following configuration and handling:

sip.conf:

[general]
accet_outofcall_messages=yes
outofcall_message_context=sip-im

and extensions.conf

[sip-im]
exten _X!, 1, NoOp(Got message)
exten _X!, n, Answer()
exten _X!, n, Agi(agi://localhost/messagehandler.agi?...)
exten _X!, n, SendText(Message received)

I can see in the log from Asterisk that the script in the sip-im context is running, but there is no message sent. I have followed the code in the call, and it seems like there is no channel registered with the SendText application. Is there some other approach that I could use to send a SIP MESSAGE back to the client? Does the client need to register for this to work?

BR,
Emil



More information about the asterisk-users mailing list