<div dir="ltr">I did this, but I do not see this as part of my dialplan. And the chat still does not work. Why is this not documented anywhere for Asterisk 13? Is this supported still, in Asterisk 13.x?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 2:03 AM, Thyda ENG <span dir="ltr"><<a href="mailto:engthyda@gmail.com" target="_blank">engthyda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Here is my extension .<div><div>[astsms]</div><div>exten => _.,1,NoOp(SMS receiving dialplan invoked)</div><div>exten => _.,n,NoOp(To ${MESSAGE(to)})</div><div>exten => _.,n,NoOp(>From ${MESSAGE(from)})</div><div>exten => _.,n,NoOp(Body ${MESSAGE(body)})</div><div>exten => _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})</div><div>exten => _.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})</div><div>exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})</div><div>exten => _.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != "SUCCESS"]?sendfailedmsg)</div><div>exten => _.,n,Hangup()</div><div><br></div><div>exten => _.,n(sendfailedmsg),Set(MESSAGE(body)="[${STRFTIME(${EPOCH},,%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")</div><div>exten => _.,n,Set(ME_1=${CUT(MESSAGE(from),<,2)})</div><div>exten => _.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})</div><div>exten => _.,n,MessageSend(${ACTUALFROM},ServiceCenter)</div><div>exten => _.,n,Hangup()</div><div>exten => _.,n,Hangup()</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 9:58 AM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks again. How do you create that message context in extensions.conf?</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 9:44 PM, Thyda ENG <span dir="ltr"><<a href="mailto:engthyda@gmail.com" target="_blank">engthyda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">According to what I have done , I add the message_context to the pjsip.endpoint_custom.conf in /etc/asterisk and then I create that message_context in the extension.conf, and it works.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 9:34 AM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So, the only thing that is needed in the endpoint definition in pjsip.conf (there is no such file pjsip.endpoint_custom.conf) is <div><br></div><div><b style="font-size:12.8px">message_context=astsms</b><br></div><div><b style="font-size:12.8px"><br></b></div><div>Is that correct? Anything I need to do in extensions.conf? I see that the messages are received at Asterisk (when I turn on pjsip set logger on) but they are not delivered to the other endpoint. What gives?</div><div><br></div><div>Any help appreciated. Thanks!</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 16, 2015 at 9:16 PM, Thyda ENG <span dir="ltr"><<a href="mailto:engthyda@gmail.com" target="_blank">engthyda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The default message context for the pjsip is the same the call context, so to set the new message context for the pjsqip you need to modify your pjsip.endpoint_custom.conf and add the message context as in the example below :<div><br></div><div>
<p><span>[</span><span>100</span><span>]</span></p>
<p><span>type=endpoint</span></p>
<p><span>aors</span><span>=100</span></p>
<p><span>auth=100-auth</span></p>
<p><span>allow=</span><span>ulaw</span><span>,</span><span>alaw</span><span>,</span><span>gsm</span><span>,</span><span>g726</span></p>
<p><span>context</span><span>=from-internal</span></p>
<p><span>callerid</span><span>=device <100></span></p>
<p><span>dtmf_mode</span><span>=rfc4733</span></p>
<p><span>use_avpf</span><span>=no</span></p>
<p><span>ice_support</span><span>=no</span></p>
<p><span>media_use_received_transport</span><span>=no</span></p>
<p><span>trust_id_inbound</span><span>=yes</span></p>
<p><span>media_encryption</span><span>=no</span></p>
<p><span>rtp_symmetric</span><span>=yes</span></p>
<p><span>rewrite_contact</span><span>=yes</span></p>
<p><b><span>message_context</span><span>=astsms</span></b></p><p><span><br></span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 17, 2015 at 8:35 AM, Sonny Rajagopalan <span dir="ltr"><<a href="mailto:sonny.rajagopalan@gmail.com" target="_blank">sonny.rajagopalan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I am looking for documentation support for enabling instant messaging between endpoints using Asterisk 13.1.0 and vanilla VoIP clients such as Zoiper. Where do I enable this support on the server side and does it need anything on the client side? I see plenty of online help for chan_sip, but nothing for chan_pjsip.</div><div><br></div><div>I imagine there is both pjsip.conf configuration and extensions.conf configuration?<br></div><div><br></div><div>Any help is appreciated.<br></div><div><br></div><div>Thanks,</div><div>Sonny.</div></div><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div><span><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><span><font color="#888888"><br></font></span></div><span><font color="#888888">
</font></span></div></div><span><font color="#888888"><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div><span class="HOEnZb"><font color="#888888">
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div><span class="HOEnZb"><font color="#888888"><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></span></blockquote></div><br></div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" rel="noreferrer" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>