<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    I have configured Opensips to behave also as registrar. Only invites
    are load_balance to one of the FS boxes. What must I do in FS
    configuration as FS now reply&nbsp; Originate Failed.&nbsp; Cause:
    USER_NOT_REGISTERED.<br>
    This is logically to me as users are registering to Opensips and FS
    handles media and etc.<br>
    <br>
    Is there any threat on wiki about this (I did not find)? <br>
    <br>
    p.s.: I have put opensips IP to FS ACL.<br>
    <br>
    Thanks for all your help!<br>
    <br>
    Regards,<br>
    MIha<br>
    <br>
    On 4/20/2012 10:14 AM, Miha wrote:
    <blockquote cite="mid:4F911AFE.2@softnet.si" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      On 4/17/2012 2:15 PM, Anton Kvashenkin wrote:
      <blockquote
cite="mid:CANBhyPBfXzDo3f0x7VOUw+9nc0sKrGxQSMwc_LJRCC-7b1MumA@mail.gmail.com"
        type="cite">Good read&nbsp; <a moz-do-not-send="true"
href="http://blog.2600hz.com/post/18096749028/understanding-how-fs-supports-opensips-as-a">http://blog.2600hz.com/post/18096749028/understanding-how-fs-supports-opensips-as-a</a>&nbsp;<br>
        <br>
        <div class="gmail_quote">17 &#1072;&#1087;&#1088;&#1077;&#1083;&#1103; 2012&nbsp;&#1075;. 13:41 &#1087;&#1086;&#1083;&#1100;&#1079;&#1086;&#1074;&#1072;&#1090;&#1077;&#1083;&#1100;
          Miha <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:miha@softnet.si">miha@softnet.si</a>&gt;</span>
          &#1085;&#1072;&#1087;&#1080;&#1089;&#1072;&#1083;:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> <small>Hi to all,<br>
                <br>
                I have configured opensips that works like load_balancer
                (wiki on FS page).</small> <small><br>
                So, we have SBC, trunk is made to Opensips, than
                opensips is load_balacing to FSs.<br>
                When you call from FS, call is going to Opensips, then
                opensips redirect the call to SBC, if call must go
                outside.<br>
                <br>
                My question:</small> <small><br>
                <br>
                FSs boxes are all the same (same dialplan, directory
                configuration, etc.). What happens if call is made to a
                user, which is registered on one of the FS box? I guess
                I must change dialplan and set that all trafic FS send
                to opensips (not internally), because if someone calls
                to a local user, but user is registered on other FS box,
                FS will behave as user is not registered.</small> <small><br>
                <br>
                So, will opensips know which user is registered on which
                FS box when opensips will be doing load_balacing?</small>
              <small><br>
                <br>
                Thanks for explenation.</small> <small><br>
                <br>
                Regards,</small> <small><br>
                Miha</small><br>
            </div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <br>
          </blockquote>
        </div>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
      </blockquote>
      HI,<br>
      <br>
      thank you all for your answers . So If I would like to do
      load_balacing with opensips I would need some kind of logic for
      every registered phone I must know to which FS is registerd, so I
      would know to which one I must FDW call.<br>
      <br>
      But in this case this script do not work (as is written on FS
      wiki):<br>
      <br>
      <pre><small> if (is_method("INVITE")) {
                if (!load_balance("1","pstn","1")) {
                        send_reply("503","Service Unavailable");
                        exit;
                }
        }
        else if (is_method("REGISTER")) {
                if (!ds_select_dst("1", "0")) {
                        send_reply("503","Service Unavailable");
                        exit;
                }
        }
        else {
                send_reply("405","Method Not Allowed");
                exit;
        }

        # route the request
        if (!t_relay()) {
                sl_reply_error();
        }

</small>


Example:. You have three users.A and B user are registered to FS1 and C user to FS2. A and C are talking if B gets a call as Opensips do not know to which box B is registered
</pre>
      It could FWD it to FS2, which will not work as B is registered to
      FS1. Am I right?<br>
      <br>
      Rergards,<br>
      Miha<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>