<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    not sure I really understood what you want to achieve, but
    authentication by kamailio is done only if you call route(AUTH) for
    requests (in case you based your config on default one) or, in other
    words, the auth/auth_db functions.<br>
    <br>
    But then, be aware of impacts in security. Be sure the
    authentication is done by someone, being you or being the provider.
    For registrations, if they are handled by kamailio, you have to keep
    doing authentication. So, just use conditions like:<br>
    <br>
    if(is_method("REGISTER")) {<br>
       route(AUTH);<br>
    }<br>
    <br>
    For rtp, if the clients are on the same network, then don't engage
    rtpproxy, the audio should work. But if they are behind routers in
    the same network, you may still need to do rtp relaying.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 18/01/14 19:10, Carel Burger wrote:<br>
    </div>
    <blockquote
cite="mid:CA+Sh8AxDFJKTFS-wfwnzrtg5_Ua3rbtPM-ihetQfMoT6J63UXg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi there,
        <div><br>
        </div>
        <div>I have never used Kamailio before but want to investigate
          if if will work in my scenario before I invest time to learn
          it.</div>
        <div><br>
        </div>
        <div>I am the administrator of a small Wireless ISP. We do not
          provide SIP channels to our customers, we rather let them
          choose a service provider of their choice. Currently our
          customers are using two different providers.</div>
        <div><br>
        </div>
        <div>Since we are using ADSL with only one static IP we
          sometimes run into issues at the providers side with one way
          audio when our clients make a call to another client which is
          using the same service provider. I assume this is because of
          NAT. Since the RTP traffic actually leaves our network and
          then comes back to the other client the quality of the call is
          not as good as phoning a non client from the network.</div>
        <div><br>
        </div>
        <div>I want to know if it would be possible to setup Kamailio to
          keep the internal network calls traffic from leaving the
          network, and also allow free phone calls on our network. To do
          this we would require the authentication to take place on the
          service providers sip server and not on Kamailio. Kamailio
          would only do routing of the traffic and not worry about
          authentication.</div>
        <div><br>
        </div>
        <div>Would this be possible?</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div><br>
        </div>
        <div>Carel Burger</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>