<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><tt>Hello,<br>
        <br>
        Please keep the list CC'ed all the time !<br>
        <br>
        You did no inserted the topo hiding triggering in the write
        place - you need to do it only for initial INVITEs ; for
        sequential requests you need the be sure to invoke the
        match_dialog() function. See:<br>
           
        <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144">http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id295144</a><br>
        <br>
        It will be helpful to provide more info on what "it is not
        working" - like do you see any changes on the INVITE sent out by
        OpenSIPS, any script errors, etc<br>
        <br>
        <br>
        Regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 11.02.2014 16:21, Александр Пучков wrote:<br>
    </div>
    <blockquote cite="mid:52FA3200.4080703@poig.ru" type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      <div class="moz-cite-prefix">11.02.2014 16:37, Bogdan-Andrei Iancu
        пишет:<br>
      </div>
      <blockquote cite="mid:52FA1980.10906@opensips.org" type="cite">
        <div class="moz-cite-prefix"><tt>Hello,<br>
            <br>
            Use the dialog based topology hiding <br>
                    <a moz-do-not-send="true"
              class="moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001">http://www.opensips.org/html/docs/modules/1.10.x/dialog.html#id296001</a><br>
            <br>
            when forwarding the INVITE to Asterisk (in OpenSIPS).<br>
          </tt></div>
      </blockquote>
      <tt>Thank you.<br>
        <br>
        I tried it like this code fragment:<br>
        <br>
#--8&lt;----------------------------------------------------------------------------------<br>
        <br>
        route {<br>
        <br>
            <br>
            if (!mf_process_maxfwd_header("10")) {<br>
                sl_send_reply("483","Too Many Hops");<br>
                exit;<br>
            }<br>
            <br>
            #force_rport();  <br>
        <br>
            if(avp_db_load("$fu","$avp(trace)")) {<br>
                $avp(traceuser)=$fu;<br>
                setflag(22);<br>
                sip_trace();<br>
                xlog("L_INFO","User $fu being traced");<br>
            }<br>
           
        #...................................................................<br>
            if (db_is_user_in("$fu", "asterisk"))<br>
            {<br>
                if(!has_totag() &amp;&amp; is_method("INVITE")) {<br>
                topology_hiding();<br>
                }        <br>
            }<br>
            <br>
            if (has_totag()) {<br>
            ...<br>
            }<br>
      </tt><br>
      <tt>    ...<br>
#--8&lt;----------------------------------------------------------------------------------<br>
        <br>
        But it not worked :( Perhaps, this code is wrong.<br>
        <br>
      </tt><span id="result_box" class="" lang="en"><span class="hps">Could

          you</span> <span class="hps">indicate</span> <span
          class="hps">where the error</span><span>?</span> <span
          class="hps"></span></span><span id="result_box" class=""
        lang="en"><span class="hps">Could you</span> <span class="hps">indicate</span>
        <span class="hps">where the error</span><span class="">?</span>
        <span class="hps">Or do I</span> <span class="hps">need to</span>
        <span class="hps">follow the</span> <span class="hps">documentation</span>
        <span class="hps">on the function</span> <span class="hps"></span></span><span
        id="result_box" class="" lang="en"><span class="hps"><tt>topology_hiding()?</tt></span><span
          class="hps"></span></span>
      <blockquote cite="mid:52FA1980.10906@opensips.org" type="cite">
        <div class="moz-cite-prefix"><tt> <br>
            Regards,<br>
          </tt>
          <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
          On 11.02.2014 10:12, Александр Пучков wrote:<br>
        </div>
        <blockquote cite="mid:52F9DB75.3080008@poig.ru" type="cite">
          <meta content="text/html; charset=UTF-8"
            http-equiv="Content-Type">
          <div class="moz-cite-prefix"><br>
            10.02.2014 13:24, Bogdan-Andrei Iancu пишет:<br>
          </div>
          <blockquote cite="mid:52F89AB5.7000101@opensips.org"
            type="cite">
            <meta content="text/html; charset=UTF-8"
              http-equiv="Content-Type">
            <div class="moz-cite-prefix"><tt>Hello,<br>
                <br>
                In this scenario:<br>
                    </tt><br>
              <tt>    Astеrisk &lt;-- 3 -- OpenSIPS &lt;-- 4 -- UAC<br>
                <br>
                What SIP requests the UAC is sending ? REGISTER ?
                INVITES ?<br>
              </tt></div>
          </blockquote>
          <tt>Hello!<br>
            <br>
            UAC registered to Opensips, Opensips registered as UAC on
            Asterisk. When the INVITE request comes from the UAC,
            Opensips need to sent INVITE to Asterisk as UAC.<br>
            <br>
            Note that the UAC does not know about Asterisk and Asterisk
            does not know about UAC. Asterisk know about only Opensips.<br>
            <br>
            It is necessary to any UAC registered on Opensips could
            imagine how extension on Asterisk, without changing the
            configuration of UAC.<br>
            <br>
            Thank you.<br>
          </tt><br>
          <blockquote cite="mid:52F89AB5.7000101@opensips.org"
            type="cite">
            <div class="moz-cite-prefix"><tt> <br>
                <br>
                Regards,<br>
              </tt>
              <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
              On 20.01.2014 13:05, Александр Пучков wrote:<br>
            </div>
            <blockquote cite="mid:52DD02FE.4060507@poig.ru" type="cite">
              <meta http-equiv="content-type" content="text/html;
                charset=UTF-8">
              Hi!<br>
              <br>
              OpenSIPS version 1.8.<br>
              <br>
              <span id="result_box" class="short_text" lang="en"><span
                  class="hps">We have the following</span> <span
                  class="hps">diagram</span><span>:<br>
                  <br>
                  PSTN        &lt;-- 1 --&gt; OpenSIPS    &lt;-- 2
                  --&gt; Astеrisk    &lt;-- 3 --&gt; UAC<br>
                  192.168.1.1 &lt;-- 1 --&gt; 192.168.1.2 &lt;-- 2
                  --&gt; 192.168.1.3 &lt;-- 3 --&gt; 192.168.1.*<br>
                  <br>
                </span></span><span id="result_box" class="" lang="en"><span
                  class="hps">I would like to</span> <span class="hps">make</span>
                <span class="hps">the following scheme:<br>
                  <br>
                  PSTN        &lt;-- 1 --&gt; OpenSIPS    &lt;-- 2
                  --&gt; Astеrisk    &lt;-- 3 --&gt; OpenSIPS    &lt;--
                  4 --&gt; UAC<br>
                  192.168.1.1 &lt;-- 1 --&gt; 192.168.1.2 &lt;-- 2
                  --&gt; 192.168.1.3 &lt;-- 3 --&gt; 192.168.1.2 &lt;--
                  4 --&gt; 192.168.1.*<br>
                </span></span><br>
              <div id="gt-res-content" class="almost_half_cell">
                <div dir="ltr" style="zoom:1"><span id="result_box"
                    class="short_text" lang="en"><span class="hps">Interestingly</span>
                    <span class="hps">the following schema fragment</span><span
                      class="">:</span></span></div>
              </div>
              <span id="result_box" class="" lang="en"><span class="hps">Astеrisk   





                  &lt;-- 3 --&gt; OpenSIPS    &lt;-- 4 --&gt; UAC<br>
                  <br>
                </span></span><span id="result_box" class="" lang="en"><span
                  class="hps">Here</span> <span class="hps">OpenSIPS</span>
                <span class="hps">need</span> <span class="hps">to
                  increase control</span> <span class="hps">over the
                  services</span> <span class="hps">for</span> <span
                  class="hps">UAC.</span> <span class="hps">UAC</span>
                <span class="hps">should not know</span> <span
                  class="hps">about the existence of</span> <span
                  class="hps">Asterisk</span> <span class="hps">and</span>
                <span class="hps">UAC</span> <span class="hps">must be
                  registered </span><span class="hps">on the server</span>
                <span class="hps">OpenSIPS,</span> <span class="hps">and</span>
                <span class="hps">any SIP request</span> <span
                  class="hps">OpenSIPS</span> <span class="hps">should
                  redirect</span> <span class="hps">to</span> <span
                  class="hps">Asterisk</span><span class="">.</span></span><br>
              <br>
              <span id="result_box" class="" lang="en"><span class="hps">I
                  tried</span> <span class="hps">to use the module</span>
                <span class="hps">in</span> <span class="hps">UAC_REGISTRANT</span>
                <span class="hps">OpenSIPS,</span> <span class="hps">it
                  works fine</span> <span class="hps">in the direction</span><span
                  class="">:</span></span><br>
              <br>
              Astеrisk -- 3 --&gt; OpenSIPS -- 4 --&gt; UAC<br>
              <br>
              <span id="result_box" class="short_text" lang="en"><span
                  class="hps">But</span> <span class="hps">how to
                  implement</span> <span class="hps">the scheme</span>
                <span class="hps">in the</span> <span class="hps">direction:</span></span><br>
              <br>
              Astеrisk &lt;-- 3 -- OpenSIPS &lt;-- 4 -- UAC<br>
              <br>
              <span id="result_box" class="" lang="en"><span class="hps">I
                  do not really</span> <span class="hps">imagine</span><span>.</span>
                <span class="hps">Please</span> <span class="hps">tell
                  me how</span> <span class="hps">it can be implemented</span><span
                  class="">.</span></span><br>
              <br>
              Thank!<br>
              <br>
              <br>
              <b>Александр Пучков,<br>
                Системный администратор,<br>
                Тел.: +7(496) 569-24-24 доб.тел. 255;<br>
                e-mail: <a moz-do-not-send="true"
                  class="moz-txt-link-abbreviated"
                  href="mailto:mailex@poig.ru">mailex@poig.ru</a>;<br>
              </b>ООО "ПОИГ" (Интернет-провайдер г. Щелково)<br>
              Факс: +7(496) 569-24-24 доб. 103;<br>
              Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;<br>
              WEB: <a moz-do-not-send="true"
                href="http://www.schelkovo-net.ru">http://www.schelkovo-net.ru</a><br>
              <br>
              <br>
              <fieldset class="mimeAttachmentHeader"></fieldset>
              <br>
              <pre wrap="">_______________________________________________
Users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
            </blockquote>
            <br>
          </blockquote>
          <br>
          <br>
          <br>
          <b>Александр Пучков,<br>
            Системный администратор,<br>
            Тел.: +7(496) 569-24-24 доб.тел. 255;<br>
          </b>ООО "ПОИГ" (Интернет-провайдер г. Щелково)<br>
          Факс: +7(496) 569-24-24 доб. 103;<br>
          Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;<br>
          WEB: <a moz-do-not-send="true"
            href="http://www.schelkovo-net.ru">http://www.schelkovo-net.ru</a><br>
          <br>
        </blockquote>
        <br>
      </blockquote>
      <br>
      <br>
      <br>
      <b>Александр Пучков,<br>
        Системный администратор,<br>
        Тел.: +7(496) 569-24-24 доб.тел. 255;<br>
      </b>ООО "ПОИГ" (Интернет-провайдер г. Щелково)<br>
      Факс: +7(496) 569-24-24 доб. 103;<br>
      Адрес: 141108, М.О., г.Щелково, Пролетарский пр., д.11;<br>
      WEB: <a moz-do-not-send="true" href="http://www.schelkovo-net.ru">http://www.schelkovo-net.ru</a><br>
      <br>
    </blockquote>
    <br>
  </body>
</html>