How To Config Instance Messaging For Asterisk 12
I am using the asterisk 12 with pjsip, I wonder how could I config the instance meesseging for pjsqip in asterisk 12 ? What is the default message context for pjssip ? I use the default extension.conf from the installation and I successfully could make the call over each but when I try to send message, it does not receive by the client.
7 thoughts on - How To Config Instance Messaging For Asterisk 12
The context can be configured (at least in 13) using the message_context option on endpoints but will fall back to the value of the context option otherwise.
Just an additional reminder that 12 is in security fix only[1] and has not received bug fixes for quite some time. It will also go end of life at the end of this year.
[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions
Yes, sorry actually in asterisk 13, anyway how could i do that ?
I’ve told you how the context is determined in my response. Otherwise the MESSAGE dialplan function and MessageSend dialplan application can be used to retrieve message information and send a message out of dialog.
MessageSend is command for send message, however I don’t know what the context for sending message. I create a pjsip with the context
‘from-internal’ then when i config the extension for context
‘from-internal’ it works but then the my call dialplan does not work. Because they both sms and call are coming to the same context
‘from-internal’, as I notice. I wonder how could i custom the context for the messaging ?
As I originally mentioned the “message_context” option can be used to send messages to a different context.
I heard some talk about message_context too but I don’t know to where to put the message_context info in .
It goes in the endpoint[1].
[1]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip#Asterisk13Configuration_res_pjsip-endpoint_message_context