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

Larry Moore lmoore at omninet.net.au
Mon Sep 21 02:37:05 CDT 2015


Could it be in the [general] section you should have;

accept_outofcall_message=yes

Your line appears to be missing the 'p' in accept and an extraneous 's' 
in message.

Larry.

On 21/09/2015 2:48 PM, Emil Ohlsson wrote:
> 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