Instant message for PJSIP endpoints

Hello,

I’m trying to setup instant messages in asterisk 15. I use X-lite softphone. How I can enable instant messages in pjsip configuration file?

Thank you,
Best regards

You’ll probably need to specify message_context in PJSIP configuration files, and then flesh out a context in your extensions.conf file to handle the data using the MESSAGE dialplan function.

[general]

accept_outofcall_message=yes
outofcall_message_context=SMS
auth_message_requests=yes

check this site : https://hsunryou.blog.me/221601010101?Redirect=Log&from=postView

These are Chan_SIP settings not Chan_PJSIP, they don’t apply or work. SIP Messaging with PJSIP is automatically enabled and usable. It will use the same context as defined in context= setting or you can specify a context for messages with the message_context= setting.

3 Likes

Hello,
I tried, but i received the following errors. Please see the photo. Can you give me some hints?

Thank you.

inbound8222319236506212822|690x245

Hello,

I figured out the problem. I did not inserted the message context for all the users. Thank you all for the support.