<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>I think you missundestood what you have to setup on the PBX ...<br></div><div><br data-mce-bogus="1"></div><div>In you NGCP you have created a 'domain' (namely or just and IP, doesn't matter), and your subscriber under that 'domain'.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>That way, in our PBX you MUST setup your trunk to the NGCP as user@domain, the 'trusted source' for the susbcriber it's only to accept the request from that IP without authenticating them ... but request MUST come as number@domain. So it's mandatory on you PBX side to setup the domain.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>If you check the logs, you will see (I'm sure), that the request from you PBX comes as number@ip_of_ngcp ... and they MUST comes as number@domain<br data-mce-bogus="1"></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Roberto Oliveira" <roberto.oliveira@tmco.com.br><br><b>Para: </b>spce-user@lists.sipwise.com<br><b>Enviados: </b>Lunes, 6 de Junio 2016 0:55:35<br><b>Asunto: </b>Re: [Spce-user] Rejecting peering attempt with non-local request        domain<br></blockquote></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><style><!--

@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><div class="WordSection1"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Thanks Raul, but I couldn’t find anything wrong (sorry!). What should I be looking for?</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">It is sending an INVITE from username@ip_address</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">This ip_address is the same I have inserted in the TRUSTED SOURCE, and I have “sip:username@ip_address” as a permanent registration device (although I noticed it says this registration expires in 1969-Dec-31!!!)</span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><div><table class="MsoNormalTable" style="border-collapse:collapse" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="width:21.3pt;border:none;border-top:solid windowtext 1.0pt;background:#222a35;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="28"><p class="MsoNormal"><span style="font-size:2.0pt;font-family:"Calibri",sans-serif;color:#1f497d;background:navy"><br><br></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d;background:navy"></span></p></td><td style="width:410.9pt;border:none;border-top:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="548"><p class="MsoNormal"><b><span style="font-size:2.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><br><br></span></b><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#0f243e" lang="PT-BR">Roberto Oliveira</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="PT-BR"></span></p></td></tr></tbody></table><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d" lang="PT-BR"> </span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"> </span></p><div><div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Spce-user [mailto:<a href="mailto:spce-user-bounces@lists.sipwise.com" target="_blank">spce-user-bounces@lists.sipwise.com</a>] <b>On Behalf Of </b>Raúl Alexis Betancor Santana<br><b>Sent:</b> domingo, 5 de junho de 2016 18:33<br><b>To:</b> <a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a><br><b>Subject:</b> Re: [Spce-user] Rejecting peering attempt with non-local request domain</span></p></div></div><p class="MsoNormal"> </p><div><div><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black">You are getting that error because your PBX is not sending the domain part it should on it request to the NGCP.</span></p></div><div><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black"> </span></p></div><div><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black">Check you pbx settings and correct the domain part of them.</span></p></div><div><p class="MsoNormal"><span style="font-family:"Arial",sans-serif;color:black"> </span></p></div><div class="MsoNormal" style="text-align:center" align="center"><span style="font-family:"Arial",sans-serif;color:black"><hr id="zwchr" align="center" size="2" width="100%"></span></div><div><blockquote style="border:none;border-left:solid #1010ff 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt"><p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif;color:black">De: </span></b><span style="font-family:"Helvetica",sans-serif;color:black">"Roberto Oliveira" <<a href="mailto:roberto.oliveira@tmco.com.br" target="_blank">roberto.oliveira@tmco.com.br</a>><br><b>Para: </b><a href="mailto:spce-user@lists.sipwise.com" target="_blank">spce-user@lists.sipwise.com</a><br><b>Enviados: </b>Domingo, 5 de Junio 2016 20:02:14<br><b>Asunto: </b>[Spce-user] Rejecting peering attempt with non-local request domain</span></p></blockquote></div><div><blockquote style="border:none;border-left:solid #1010ff 1.5pt;padding:0cm 0cm 0cm 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt"><div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">Hi,</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">I am setting up a PBX behind NGCP. I have configured a subscriber with a trusted source pointing to the PBX.</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">However, I keep getting this message in the kamailio proxy log when I try to place a call from the PBX to the PSTN (passing through NGCP).</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">“Rejecting peering attempt with non-local request domain”</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d"> </span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">I have tried many tweaks in the subscriber and domain preferences to no avail.</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">Anybody had this problem before?</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d"> </span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d">Thanks for the help</span><span style="color:black"></span></p><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1f497d"> </span><span style="color:black"></span></p><div><table class="MsoNormalTable" style="border-collapse:collapse" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="width:21.3pt;border:none;border-top:solid windowtext 1.0pt;background:#222a35;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="28"><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:2.0pt;color:#1f497d;background:navy"><br><br><br></span></p></td><td style="width:410.9pt;border:none;border-top:solid windowtext 1.0pt;padding:0cm 5.4pt 0cm 5.4pt" valign="top" width="548"><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:2.0pt;color:#1f497d"><br><br></span></b><b><span style="color:#0f243e" lang="PT-BR">Roberto Oliveira</span></b></p></td></tr></tbody></table></div><p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black"> </span></p></div><p class="MsoNormal"><span style="font-family:"Helvetica",sans-serif;color:black"><br>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com" target="_blank">Spce-user@lists.sipwise.com</a><br><a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a></span><br data-mce-bogus="1"></p></blockquote></div></div></div>
<br>_______________________________________________<br>Spce-user mailing list<br>Spce-user@lists.sipwise.com<br>https://lists.sipwise.com/listinfo/spce-user<br></blockquote></div></div></body></html>