<div dir="ltr"><div><div><div>@Kevin:<br>Were such invalid endpoint parameters settings reported on Asterisk CLI ?<br><br>My system reported:<br></div>Could not find option suitable for category 'asterisk8' named 'foo' at line 15 of /etc/asterisk/pjsip.conf<br><br></div>when I added ( at line 15 of /etc/asterisk/pjsip.conf):</div>foo=bar <br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-08 14:48 GMT+01:00 George Joseph <span dir="ltr"><<a href="mailto:gjoseph@digium.com" target="_blank">gjoseph@digium.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Feb 8, 2018 at 12:53 AM, Kevin Long <span dir="ltr"><<a href="mailto:kevin.long@haloprivacy.com" target="_blank">kevin.long@haloprivacy.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
Greetings !<br>
<br>
<br>
My goal is to get Twilio trunking working, and with TLS/SRTP.<br>
<br>
I see this concerning message in my log:<br>
<br>
[Feb  7 16:50:26] ERROR[20596] res_sorcery_config.c: Could not create an object of type 'endpoint' with id ’twilio' from configuration file ‘pjsip.conf’<br>
<br>
<br>
<br>
Thus, ‘pjsip show endpoints’  does not show the endpoint for the Twilio trunk.<br>
<br>
<br>
Hoping for a sanity check of my pjsip.conf file, and what could be causing this.<br>
<br>
A test call form Twilio’s system hits the PBX (over TLS), but always says “No matching endpoint found” in the asterisk log.<br>
<br>
<br>
<br>
pjsip.conf<br>
<br>
[transport-tls]<br>
type = transport<br>
protocol = tls<br>
bind = <a href="http://0.0.0.0:5061" rel="noreferrer" target="_blank">0.0.0.0:5061</a><br>
cert_file=cert_file<br>
priv_key_file=key_file<br>
method=tlsv1<br>
external_media_address=X.Y.Z.D<br>
external_signaling_address=X.Y<wbr>.Z.D<br>
verify_client=no<br>
verify_server=no<br>
allow_reload=yes<br>
<br>
[twilio](!)<br>
type=endpoint<br>
transport=transport-tls<br>
context=from-twilio<br>
disallow=all<br>
allow=ulaw<br>
dtmf_mode=inband<br></blockquote><div><br></div></div></div><div>Are you sure you want "inband" and not "rfc4733"?</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
media_encryption=sdes<br>
rtp_symmetric=yes<br>
rewrite_contact=yes<br>
force_rport=yes<br>
canreinvite=no<br>
tlsdontverifyserver=yes<br></blockquote><div><br></div></span><div>"canreinvite" and "tlsdontverifyserver" aren't valid endpoint parameters which is why the endpoint is failing to load.</div><div><div class="h5"><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
<br>
[auth-out](!)<br>
type=auth<br>
auth_type=userpass<br>
<br>
[twilio]<br>
aors=twilio-aors<br>
<br>
[twilio-aors]<br>
type=aor<br>
contact=sips:<a href="http://trunkname.pstn.twilio.com:5061" rel="noreferrer" target="_blank">trunkname.pstn.tw<wbr>ilio.com:5061</a> ;tried with sip: also<br>
<br>
[twilio]<br>
type=identify<br>
endpoint=twilio<br>
match=54.172.60.0<br>
match=54.172.60.1<br>
match=54.172.60.2<br>
match=54.172.60.3<br>
<br>
[endpoint-basic](!)<br>
type=endpoint<br>
transport=transport-tls<br>
context=from-phones<br>
disallow=all<br>
allow=ulaw<br>
<br>
[auth-userpass](!)<br>
type=auth<br>
auth_type=userpass<br>
<br>
[aor-single-reg](!)<br>
type=aor<br>
max_contacts=20<br>
<br>
[1001](endpoint-basic)<br>
auth=auth1001<br>
aors=1001<br>
<br>
[auth1001](auth-userpass)<br>
password=password123<br>
username=1001<br>
<br>
[1001](aor-single-reg)<br>
<br>
<br>
Extensions.conf<br>
<br>
[from-twilio]<br>
exten => _+1NXXXXXXXXX,1,Dial(PJSIP/100<wbr>1)<br>
<br>
[from-phones]<br>
exten => _NXXNXXXXXX,1,Set(CALLERID(all<wbr>)="David" <78451234>)<br>
same => n,Dial(PJSIP/+1${EXTEN}@twilio<wbr>)<br>
<span class="m_-8401757114757213504gmail-HOEnZb"><font color="#888888">--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org<wbr>/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki<wbr>/display/AST/Getting+Started</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/mailm<wbr>an/listinfo/asterisk-users</a></font></span></blockquote></div></div></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-8401757114757213504gmail_signature"><div dir="ltr"><span style="font-size:12.8px">George Joseph</span><br style="font-size:12.8px"><span style="font-size:12.8px">Digium, Inc. | Software Developer</span><span style="font-size:12.8px"><br>445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br></span><span style="font-size:12.8px">Check us out at: </span><a href="http://www.digium.com/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.digium.com</a><span style="font-size:12.8px"> & </span><a href="http://www.asterisk.org/" rel="noreferrer" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">www.<wbr>asterisk.org</a><br><div><br></div></div></div>
</font></span></div></div>
<br>--<br>
______________________________<wbr>______________________________<wbr>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.<wbr>org/</a><br>
<br>
New to Asterisk? Start here:<br>
      <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/<wbr>wiki/display/AST/Getting+<wbr>Started</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/<wbr>mailman/listinfo/asterisk-<wbr>users</a><br></blockquote></div><br></div>