<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 07/06/15 05:06, Antonio Gómez Soto
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAPFm8U=ybkDcfHp_zbxu23mmy91CW7RxRziSS_kTGOWCmE+gug@mail.gmail.com"
      type="cite">
      <div dir="ltr"><span style="font-size:12.8000001907349px">Hello,</span>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">This is question on
          PBX behavior, what is the right thing to do, and how do PBX's
          generally behave. <br>
        </div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">If a user on a phone,
          dials a number, which happens to be configured on the same
          phone system (for example another tenant), there are two
          options:</div>
        <div style="font-size:12.8000001907349px">
          <ol>
            <li style="margin-left:15px">The PBX notices this, and
              directly connects the phone to the DID on that system
              (breaking separation of tenants)<br>
            </li>
            <li style="margin-left:15px">The PBX sends the call out on
              the SIP trunk, and the provider-routing sends the call
              back as an incoming call.<br>
            </li>
          </ol>
        </div>
        <div style="font-size:12.8000001907349px">What are the pros and
          cons of each option from the SIP provider point of view? </div>
        <div style="font-size:12.8000001907349px">How do PBX's generally
          behave? </div>
        <div style="font-size:12.8000001907349px"><br>
        </div>
        <div style="font-size:12.8000001907349px">Thanks,</div>
        <div style="font-size:12.8000001907349px">
          <div dir="ltr">Antonio</div>
        </div>
        <div><br>
        </div>
        <div>PS: I reposted, because the original question was
          apparently not phrased in a clear way.</div>
      </div>
    </blockquote>
    I guess the proper answer is: this is an option of the dialplan of
    the pbx.<br>
    <br>
    But based on experience so far, the pbx doesn't sent the call out to
    a provider when the call is to another extension in the same pbx.
    More, in many cases there is not 1-to-1 relation between pbx
    extensions and PSTN numbers. Typically a pbx has more extensions
    than PSTN numbers. PBX extensions are short numbers allocated as
    needed, while PSTN numbers are bought based on estimation of use,
    being mappend to some internal pbx extensions.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<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>
Book: SIP Routing With Kamailio - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
  </body>
</html>