<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Just use the domain module for that:<br>
         
<a class="moz-txt-link-freetext" href="https://opensips.org/html/docs/modules/2.4.x/domain.html#func_is_uri_host_local">https://opensips.org/html/docs/modules/2.4.x/domain.html#func_is_uri_host_local</a><br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>

</pre>
    <div class="moz-cite-prefix">On 4/30/20 11:08 AM, Sasmita Panda
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CALf-Q440ECbx234hSMAcP=LrHHK_f7mvEWETF3Dp_0JJus3TcA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">I have one opensips server , and I have mapped 2
        domain into that . In the config file I have added the alias
        list for that domain . 
        <div>for example :</div>
        <div>alias="<a href="http://freeswitch-registrar.xyz.com"
            moz-do-not-send="true">freeswitch-registrar.xyz.com</a>"</div>
        <div>alias="<a href="http://freeswitch-cisco.xyz.com"
            moz-do-not-send="true">freeswitch-cisco.xyz.com</a>"</div>
        <div><br>
        </div>
        <div>route{</div>
        <div>  if (!uri==myself) {<br>
                                          send_reply("403","Rely
          forbidden");<br>
                                          exit;<br>
                                  }<br>
        </div>
        <div>......................</div>
        <div>}</div>
        <div>If any request coming to this has the request uri matches
          with the alias added then that request get processed else it
          gives Error message . </div>
        <div><br>
        </div>
        <div>Now if I am mapping another domain to the server but I dont
          want to change the config and restart the service again . I
          want any other way to do dynamically so that whenever I will
          add any domain opensips will read that and process the request
          without service restart . </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>How will I achive this ? </div>
        <div><br>
        </div>
        <div><br>
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr"><b><i>Thanks & Regards</i></b>
                    <div><i>Sasmita Panda</i></div>
                    <div><i>Senior Network Testing and Software Engineer</i></div>
                    <div><i>3CLogic , ph:07827611765</i></div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Thu, Apr 30, 2020 at 12:56
          PM Bogdan-Andrei Iancu <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div bgcolor="#FFFFFF"> <tt>Hi Sasmita,<br>
              <br>
              To be honest I do not understand what you want to achieve.
              Could you provide an example of aliasing you want to have
              ?<br>
              <br>
              Regards,<br>
            </tt>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>

</pre>
            <div>On 4/30/20 9:33 AM, Sasmita Panda wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">Ok . But username cant be fixed . That can
                be anything . 
                <div><br>
                </div>
                <div>When I am adding aliase in the config file that
                  only matches the domain and process the request .
                  Isn't the aliase_db do the same thing ?</div>
                <div><br>
                </div>
                <div><br clear="all">
                  <div>
                    <div dir="ltr">
                      <div dir="ltr">
                        <div>
                          <div dir="ltr"><b><i>Thanks & Regards</i></b>
                            <div><i>Sasmita Panda</i></div>
                            <div><i>Senior Network Testing and Software
                                Engineer</i></div>
                            <div><i>3CLogic , ph:07827611765</i></div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                  <br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Wed, Apr 29, 2020
                  at 6:21 PM Bogdan-Andrei Iancu <<a
                    href="mailto:bogdan@opensips.org" target="_blank"
                    moz-do-not-send="true">bogdan@opensips.org</a>>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0px 0px
                  0px 0.8ex;border-left:1px solid
                  rgb(204,204,204);padding-left:1ex">
                  <div bgcolor="#FFFFFF"> <tt>Hi,<br>
                      <br>
                      The aliase_db module does full aliasing,
                      user+domain to another user+domain, not only
                      domains. And you can test the return code of the
                      lookup function to see if any matching and
                      translation was done or not.<br>
                      <br>
                      Regards,<br>
                    </tt>
                    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>

</pre>
                    <div>On 4/29/20 10:16 AM, Sasmita Panda wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">Hi All ,
                        <div><br>
                        </div>
                        <div>For the first time I am trying to use alias
                          db . Before processing any request I wanted to
                          do alias db lookup , if find the corresponding
                          domain in the alias db then process the
                          request otherwise not .</div>
                        <div><br>
                        </div>
                        <div>How will I do this ?</div>
                        <div><br clear="all">
                          <div>
                            <div dir="ltr">
                              <div dir="ltr">
                                <div>
                                  <div dir="ltr"><b><i>Thanks &
                                        Regards</i></b>
                                    <div><i>Sasmita Panda</i></div>
                                    <div><i>Senior Network Testing and
                                        Software Engineer</i></div>
                                    <div><i>3CLogic , ph:07827611765</i></div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>