<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 26, 2019 at 10:56 AM Brian J. Murrell <<a href="mailto:brian@interlinx.bc.ca">brian@interlinx.bc.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a trunk set up for the DID from my provider:<br>
<br>
[my_provider]<br>
type=registration<br>
outbound_auth=my_provider<br>
server_uri=sip:<a href="http://sip.example.com" rel="noreferrer" target="_blank">sip.example.com</a><br>
client_uri=<a href="mailto:sip%3Amy_username@sip.example.com" target="_blank">sip:my_username@sip.example.com</a><br>
retry_interval=60<br>
<br>
[my_provider]<br>
type=auth<br>
auth_type=userpass<br>
password=123456<br>
username=my_username<br>
<br>
[my_provider]<br>
type=aor<br>
contact=sip:<a href="http://sip.example.com:5060" rel="noreferrer" target="_blank">sip.example.com:5060</a><br>
<br>
[my_provider]<br>
type=endpoint<br>
context=from-my_provider<br>
disallow=all<br>
allow=ulaw<br>
outbound_auth=my_provider<br>
aors=my_provider<br>
<br>
[my_provider]<br>
type=identify<br>
endpoint=my_provider<br>
match=<a href="http://sip.example.com" rel="noreferrer" target="_blank">sip.example.com</a><br>
<br>
And it registers fine:<br>
<br>
 <Registration/ServerURI..............................>  <Auth..........>  <Status.......><br>
==========================================================================================<br>
<br>
 mytrunk/sip:<a href="http://sip.example.com" rel="noreferrer" target="_blank">sip.example.com</a>                             my_provider       Registered      <br>
<br>
<br>
And when it gets an INVITE from my provider (192.168.0.1):<br>
<br>
<--- Received SIP request (997 bytes) from UDP:<a href="http://192.168.0.1:5060" rel="noreferrer" target="_blank">192.168.0.1:5060</a> ---><br>
INVITE <a href="http://sip:1235551212@10.75.22.5:5060" rel="noreferrer" target="_blank">sip:1235551212@10.75.22.5:5060</a> SIP/2.0<br>
Via: SIP/2.0/UDP 192.168.0.1:5060;branch=z9hG4bK06d035fd;rport<br>
Max-Forwards: 70<br>
From: "Fred Flintstone" <<a href="mailto:sip%3A4565551212@192.168.0.1" target="_blank">sip:4565551212@192.168.0.1</a>>;tag=as539f9476<br>
To: <<a href="http://sip:1235551212@10.75.22.5:5060" rel="noreferrer" target="_blank">sip:1235551212@10.75.22.5:5060</a>><br>
Contact: <<a href="http://sip:4565551212@192.168.0.1:5060" rel="noreferrer" target="_blank">sip:4565551212@192.168.0.1:5060</a>><br>
Call-ID: <a href="http://3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060" rel="noreferrer" target="_blank">3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060</a><br>
CSeq: 102 INVITE<br>
User-Agent: foobar<br>
Date: Sat, 26 Jan 2019 17:40:00 GMT<br>
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE<br>
Supported: replaces, timer<br>
Remote-Party-ID: "Fred Flintstone" <<a href="mailto:sip%3A4565551212@192.168.0.1" target="_blank">sip:4565551212@192.168.0.1</a>>;party=calling;privacy=off;screen=no<br>
Content-Type: application/sdp<br>
Content-Length: 295<br>
<br>
[SDP redacted]<br>
<br>
It logs an error:<br>
<br>
[Jan 26 12:40:00] NOTICE[21775]: res_pjsip/pjsip_distributor.c:525 log_failed_request: Request 'INVITE' from '"Fred Flintstone" <<a href="mailto:sip%3A4565551212@192.168.0.1" target="_blank">sip:4565551212@192.168.0.1</a>>' failed for '<a href="http://192.168.0.1:5060" rel="noreferrer" target="_blank">192.168.0.1:5060</a>' (callid: <a href="http://3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060" rel="noreferrer" target="_blank">3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060</a>) - No matching endpoint found<br>
<br>
But then goes on to complete the call:<br>
<br>
<--- Transmitting SIP response (352 bytes) to UDP:<a href="http://192.168.0.1:5060" rel="noreferrer" target="_blank">192.168.0.1:5060</a> ---><br>
SIP/2.0 100 Trying<br>
Via: SIP/2.0/UDP 192.168.0.1:5060;rport=5060;received=192.168.0.1;branch=z9hG4bK06d035fd<br>
Call-ID: <a href="http://3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060" rel="noreferrer" target="_blank">3ef877dc4477d8ce4aae29965c5d0875@192.168.0.1:5060</a><br>
From: "Fred Flintstone" <<a href="mailto:sip%3A4565551212@192.168.0.1" target="_blank">sip:4565551212@192.168.0.1</a>>;tag=as539f9476<br>
To: <<a href="mailto:sip%3A1235551212@10.75.22.5" target="_blank">sip:1235551212@10.75.22.5</a>><br>
CSeq: 102 INVITE<br>
Server: Asterisk PBX 13.11.1<br>
Content-Length:  0<br>
<br>
[ launch into dialplan ]<br>
<br>
So why the spurious error when it was able to complete the call?<br></blockquote><div><br></div><div>What version of Asterisk and what's the value of the "identify_by" parameter for the endpoint?</div><div>When you have an "identify" object configured, you should just use "ip" as the "identify_by",</div><div><br></div><div><br></div><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">
<br>
Cheers,<br>
b.<br>
<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>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.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/wiki/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/mailman/listinfo/asterisk-users</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr" style="font-size:12.8px"><b style="font-family:arial,helvetica,sans-serif;font-size:12.8px">George Joseph</b><br></div><div dir="ltr"><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Digium - A Sangoma Company | Software Developer | Software Engineering</font></div><font size="1">445 Jan Davis Drive NW - Huntsville, AL 35806 - US</font></div><div dir="ltr"><font size="1">direct/fax: +1 256 428 6012</font><div style="font-size:12.8px"><font face="arial, helvetica, sans-serif" size="1">Check us out at: <a href="https://digium.com/" style="color:rgb(17,85,204)" target="_blank">https://digium.com</a> · <a href="https://sangoma.com/" style="color:rgb(17,85,204)" target="_blank">https://sangoma.com</a></font></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><img src="https://www.digium.com/sites/digium/themes/digium/logo.png" width="96" height="60"></div></div></div></div></div></div></div>