Trying To Get SMS From GXV3240 To Trigger Dialplan Code.

Home » Asterisk Users » Trying To Get SMS From GXV3240 To Trigger Dialplan Code.
Asterisk Users 2 Comments

I am trying to send SMS from my Grandstream GXV3240 Asterisk receives the message in a NOTIFY block.

How can I get asterisk to run dialplan code when receiving these Notify SMS Message Blocks. I can then route them to my SMS provider.

Any ideas are appreciated. Below is debug of a message sent from the phone when received no dialplan code is triggered. I am wounding if I need to modify some setting in sip.conf or the peer config. Incomming SMS from my vendor works without issue and is transmitted to the phone.

2 thoughts on - Trying To Get SMS From GXV3240 To Trigger Dialplan Code.

  • This is not a SIP NOTIFY but a SIP MESSAGE (the first line in the logs is not related to the few next ones).

    If you are using chan_sip, you have to activate out of call messages in sip.conf :

    accept_outofcall_message=yes outofcall_message_context=messages

    Then in extensions.conf, define a context “messages” with the appropriate extensions (to stick to your example, it will be
    16162995607) and use the function MESSAGE to retrieve the SMS content.

    Best regards

    Jean Aunis

    Le 10/03/2017

  • Jean

    Thank you for your response. I have the options you suggested already set, and I am still not getting the dialplan to trigger. The message is being sent but nothing. I have tried with the auth both set to no and yes as well.

    accept_outofcall_message = yes outofcall_message_context = messages auth_message_requests = yes

    Thanks Bryant

    ————————————–