<div dir="ltr">My PSTN sends all calls without the 1. Most of them are working fine. <div><br></div><div>I have attached a photo at <a href="http://pasteboard.co/GydwtwNoI.png">http://pasteboard.co/GydwtwNoI.png</a></div><div><br></div><div>However calls to this subcriber do get rewritten but still fail:</div><div><br></div><div>See this error:</div><div><br></div><div><div>Mar  7 09:03:15 sip proxy[3763]: NOTICE: <script>: Rewriting called party '7879217782' to '17879217782' - R=sip:7879217782@74.85.156.17:5060;transport=udp ID=<a href="mailto:AE0E17E0@10.246.9.8">AE0E17E0@10.246.9.8</a> UA='<null>'</div><div>Mar  7 09:03:15 sip proxy[3763]: NOTICE: <script>: Callee is not local - R=sip:17879217782@74.85.156.17:5060;transport=udp ID=<a href="mailto:AE0E17E0@10.246.9.8">AE0E17E0@10.246.9.8</a> UA='<null>'</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 7, 2017 at 8:53 AM, Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF" text="#000000"><span>Hi Abel,<br>
actually you may be right that this is not the case. I recall it was 
needed in older releases (?) otherwise the server would reply 403 Domain
 not served here. </span><span>Domain matters when there is no record in
 dbaliases so it falls back to user and domain check in subscriber 
table. </span><span><br>
  <br>
As long as you have a record in dbaliases matching dialed number the 
system should be able to match inbound call to subscriber. That is where
 the problem happens I think, because the dialed number does not have 1 
in front and probably callee-in rewrite rule for inbound peer is not 
adding 1.<br>
You can fix that with a rewrite rule.<br>
</span><span>Nothing has been changed in mr4.5.4 in that regard (mr5.x 
has inbound peering 
rules and tighter source port check for peers but that is whole other 
story)..</span><br>
<span>Andrew<br>
  <br>
Abel Alejandro wrote:</span><span class=""><br>
<blockquote type="cite">Hey Andrew,
  <div><br></div>
  <div>Did that changed recently and only affects new subscribers? I 
will speak with my PSTN to make the change however.</div>
  <div><br></div>
  <div>However calls coming to other subscribers are working from the 
very same PSTN and they use the IP, not the domain.</div>
  <div><br></div>
  <div><div>root@<a class="m_8350117056671188722moz-txt-link-freetext">sip:/var/log/ngcp#</a> grep <a href="mailto:5435BC51@10.246.9.8" target="_blank">5435BC51@10.246.9.8</a> 
kamailio-proxy.log </div><div><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date">Mar  7 08:30:38</span></span></span></span></span></span></span></span></span></span>
 sip proxy[3757]: NOTICE: <script>: New request on proxy - 
M=INVITE R=<a class="m_8350117056671188722moz-txt-link-freetext">sip:7877050555@74.85.156.17:<wbr>5060;transport=udp</a> F=<a href="http://sip:7875868313@196.12.170.244:5060" target="_blank">sip:7875868313@196.12.170.<wbr>244:5060</a>
 T=<a href="http://sip:7877050555@74.85.156.17:5060" target="_blank">sip:7877050555@74.85.156.17:<wbr>5060</a>
 IP=<a href="http://196.12.170.244:5060" target="_blank">196.12.170.244:5060</a>
 (<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>)
 ID=<a href="mailto:5435BC51@10.246.9.8" target="_blank">5435BC51@10.246.9.8</a>
 UA='<null>'</div><div><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date"><span class="m_8350117056671188722__postbox-detected-content m_8350117056671188722__postbox-detected-date">Mar  7
 08:30:38</span></span></span></span></span></span></span></span></span></span>
 sip proxy[3757]: NOTICE: <script>: Call from PSTN - 
R=<a class="m_8350117056671188722moz-txt-link-freetext">sip:7877050555@74.85.156.17:<wbr>5060;transport=udp</a> ID=<a href="mailto:5435BC51@10.246.9.8" target="_blank">5435BC51@10.246.9.8</a>
 UA='<null>'</div></div>
</blockquote>
<br></span><span class="HOEnZb"><font color="#888888">
Andrew<br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);color:rgb(102,102,102)"><i><font size="4" face="'trebuchet ms', sans-serif">Abel Alejandro</font></i></span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><blockquote style="margin:0px 0px 0px 40px;border-style:none;padding:0px"></blockquote><span style="color:rgb(51,51,51);font-family:'trebuchet ms',sans-serif">787 586 8313 </span><span style="font-family:'trebuchet ms',sans-serif"><font color="#ff6600">|</font></span><span style="color:rgb(51,51,51);font-family:'trebuchet ms',sans-serif"> 787 705 0555</span><div><a href="mailto:joquendo@alliedtechnologygrouppr.com" style="color:rgb(17,85,204)" target="_blank"></a><div><br></div><div><span style="color:rgb(102,102,102);font-family:'trebuchet ms',sans-serif">400 Calle Calaf 477</span></div><div><div style="text-align:left"><span style="color:rgb(102,102,102);font-family:'trebuchet ms',sans-serif">San Juan, PR 00918</span></div></div></div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255);text-align:left"><a href="mailto:aalejandro@alliedtechnologygrouppr.com" target="_blank">aalejandro@alliedtechnologygrouppr.com</a></div></div></div>
</div>