<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span>I have set my config file to allow calls coming from ip address </span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span><br></span></div><div style="background-color: transparent;"><span style="font-weight: bold;">route[AUTH] {</span></div><div style="background-color: transparent;"><span style="font-weight: bold;"><br></span></div><div style="background-color: transparent;"><span style="font-weight: bold;">  if(src_ip==64.136.100.100) {</span></div><div style="background-color: transparent;"><span style="font-weight: bold;">   return;</span></div><div style="background-color: transparent;"><span
 style="font-weight: bold;">  }</span></div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">But I keep getting the following error, any suggestions?</div><div style="background-color: transparent;"><br></div><div style="background-color: transparent;">U 2013/07/13 18:20:45.868684 10.243.63.204:5060 -> 64.136.100.100:5060</div><div style="background-color: transparent;">SIP/2.0 403 Not Allowed.</div><div style="background-color: transparent;">Via: SIP/2.0/UDP 64.136.100.100:5060;branch=z9hG4bK1sansay2536333414rdb8829;rport=5060.</div><div style="background-color: transparent;">To: <sip:12135246700@54.235.100.77>;tag=1d3ba323b5484a2f7ffc7e242c7e76f0.38ca.</div><div style="background-color: transparent;">From: <sip:184559952xx@64.136.100.100>;tag=sansay2536333414rdb8829.</div><div style="background-color: transparent;">Call-ID: 1644090003-0-1270023700@64.136.174.227.</div><div
 style="background-color: transparent;">CSeq: 1 INVITE.</div><div style="background-color: transparent;">Server: kamailio (4.0.2 (x86_64/linux)).</div><div style="background-color: transparent;"><span></span></div><div style="background-color: transparent;">Content-Length: 0.</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Thank you,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Arun</div>  <div style="font-family: 'times new roman', 'new york', times, serif;
 font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Daniel-Constantin Mierla <miconda@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> arun Jayaprakash <jayaprakasharun@yahoo.com>; Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, July 11, 2013 6:03 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [SR-Users] configuring an incoming PSTN  line...<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1732067096">
  

    
  
  <div>
    Hello,<br>
    <br>
    <div class="yiv1732067096moz-cite-prefix">On 7/6/13 5:12 PM, arun Jayaprakash
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">
        <div>Hello, </div>
        <div><br>
        </div>
        <div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;">can someone please give me
          some pointers as to how to configure the proxy server to
          receive incoming calls from a PSTN line. I had not problem
          setting up extensions and making outgoing PSTN calls. I am not
          able to find any documents ( or I am not looking in the right
          place ) as to how to configure the system to receive incoming
          PSTN calls. The DID number I have from my provider gives me
          the 10 digit DID number  and the IP address of their server.
          Thank you for the help.</div>
      </div>
    </blockquote>
    I guess you need to allow traffic from the provider without
    username/password authentication. For that you can use permissions
    module. In default config file, see WITH_IPAUTH conditions and add
    the ip in the 'address' table with grp=1. Or you can just add in the
    route[AUTH] a condition like if(src_ip==...) return;<br>
    <br>
    Then you need to map the did to a user, alias_db module can be used
    for that. It is also in the default config file, see the top
    comments about how to enable it, then add the record in dbaliases
    table.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="yiv1732067096moz-signature">-- 
Daniel-Constantin Mierla - <a rel="nofollow" class="yiv1732067096moz-txt-link-freetext" target="_blank" href="http://www.asipto.com/">http://www.asipto.com</a>
<a rel="nofollow" class="yiv1732067096moz-txt-link-freetext" target="_blank" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a rel="nofollow" class="yiv1732067096moz-txt-link-freetext" target="_blank" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
</pre>
  </div>

</div><br><br></div> </div> </div>  </div></body></html>