<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
    &nbsp;&nbsp;&nbsp; Hmmm... I think this is useless feature. You already have an
    user_context and separate sip profiles.<br>
    <br>
    <blockquote
      cite="mid:BANLkTimy3i_b=AzoWE6WXz5mA=aQLCYH8A@mail.gmail.com"
      type="cite">Had it been FS identifying the call to be of some
      domain and using the dial-plan with &lt;domain name="<a
        moz-do-not-send="true" href="http://xyz.com/" target="_blank">xyz.com</a>"&gt;&nbsp;
      ...&nbsp;&nbsp; &lt;/domain&gt; ,<br>
      that would had been great .<br>
      <br>
      Regds<br>
      Sam<br>
      <br>
      &nbsp;<br>
      <br>
      <div class="gmail_quote">On Sat, Jun 4, 2011 at 12:21 PM, Boris
        Kovalenko <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Hello!<br>
            <br>
            &nbsp;&nbsp;&nbsp; No, You can't use it this way. There are 2 possibilites:<br>
            1. You have one context (dialplan) and use something like<br>
            <br>
            &lt;extension name="ext_01"&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;condition field="${domain_name}" expression="^<a
              moz-do-not-send="true" href="http://xyz.com"
              target="_blank">xyz.com</a>$"/&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;condition filed="destination_number"
            expression="^(1001)$"&gt;
            <div class="im"><br>
              &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;action application="voicemail" data="default
              $${domain name} ${sip_to_host}"/&gt;<br>
            </div>
            &nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
            &lt;/extension&gt;<br>
            <br>
            2. I prefer the way to have separate contexts (dialplans)
            for each domain. So in the main context You do something
            like:<br>
            &lt;action application="tranfser"
            data="${destination_number} XML context_${domain_name}"/&gt;<br>
            And after that You know that is context_${domain_name} (<a
              moz-do-not-send="true" href="http://context_xyz.com"
              target="_blank">context_xyz.com</a> as in your example)
            You have o
            <div>
              <div class="h5"><br>
                <blockquote type="cite">Hello,<br>
                  <br>
                  After doing this ,<br>
                  <br>
                  &lt;action application="set" data="domain
                  name=${regex(${sip_from_uri}|^.*@(.*)$|%1)}"
                  inline="true"/&gt;<br>
                  <br>
                  i get domain name = <a moz-do-not-send="true"
                    href="http://xyz.com" target="_blank">xyz.com</a><br>
                  <br>
                  Now how can i use the fundas of identified domain and
                  using below to execute .<br>
                  <br>
                  &lt;domain name="<a moz-do-not-send="true"
                    href="http://xyz.com" target="_blank">xyz.com</a>"&gt;<br>
                  &lt;condition field="destination_number"
                  expression="^(1001)$"&gt;<br>
                  &nbsp;&lt;action application="voicemail" data="default
                  $${domain name} ${sip_to_host}"/&gt;<br>
                  &lt;/domain&gt;<br>
                  <br>
                  <br>
                  <br>
                  Is that possible.<br>
                  <br>
                  <br>
                  Regards<br>
                  Sam<br>
                  <br>
                  <br>
                  <div class="gmail_quote"> On Fri, Jun 3, 2011 at 2:46
                    PM, Boris Kovalenko <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:boris@tagnet.ru" target="_blank">boris@tagnet.ru</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin: 0pt
                      0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
                      204, 204); padding-left: 1ex;">
                      <div text="#000000" bgcolor="#ffffff"> Hello!<br>
                        <br>
                        &nbsp;&nbsp;&nbsp; There is a variable named ${sip_from_user}.
                        You may do something like<br>
                        <br>
                        &lt;action application="set" data=<a
                          moz-do-not-send="true"
href="mailto:from_domain=$%7Bregex%28$%7Bsip_from_user%7D%7C%5E.*@%28.*%29$%7C%251%29%7D"
                          target="_blank">"from_domain=${regex(${sip_from_user}|^.*@(.*)$|%1)}"</a>
                        inline="true"/&gt;<br>
                        &lt;action application="transfer"
                        data="${from_domain} XML domain_context"/&gt;
                        <div>
                          <div><br>
                            <br>
                            <blockquote type="cite">The call would be
                              coming from outside to FS and not within ,
                              so the call would be routed from public to
                              different domains ,<br>
                              <br>
                              and after that following the doc <a
                                moz-do-not-send="true"
                                href="http://wiki.freeswitch.org/wiki/Multi-tenant"
                                target="_blank">http://wiki.freeswitch.org/wiki/Multi-tenant</a>&nbsp;
                              <br>
                              <br>
                              Here how can we recognized from the header
                              on which domain is it ?&nbsp; like if we get an
                              from header as <a moz-do-not-send="true"
                                href="mailto:1001@xyz.com"
                                target="_blank">1001@xyz.com</a><br>
                              how can we recognized the domain and route
                              the call accordingly ... when an outside
                              system sends a call via acl .<br>
                              <br>
                              regards<br>
                              Sam<br>
                              <br>
                              <div class="gmail_quote">On Fri, Jun 3,
                                2011 at 1:51 PM, Boris Kovalenko <span
                                  dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:boris@tagnet.ru"
                                    target="_blank">boris@tagnet.ru</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin: 0pt 0pt 0pt 0.8ex;
                                  border-left: 1px solid rgb(204, 204,
                                  204); padding-left: 1ex;">
                                  <div text="#000000" bgcolor="#ffffff">
                                    Hello!<br>
                                    <br>
                                    &nbsp;&nbsp;&nbsp; What do You mean? You may (for
                                    example) set the domain variable for
                                    a user and test it inside condition.<br>
                                    <br>
                                    <blockquote type="cite">
                                      <div>
                                        <div>Hello,<br>
                                          <br>
                                          I have a user registered by
                                          domain (<a
                                            moz-do-not-send="true"
                                            href="mailto:1001@xyz.com"
                                            target="_blank">1001@xyz.com</a>)
                                          and when the invite comes to
                                          my FS server it should
                                          recognize the domain and route<br>
                                          the calls accordingly to the
                                          group &lt;domain name="<a
                                            moz-do-not-send="true"
                                            href="http://xyz.com"
                                            target="_blank">xyz.com</a>"&gt;&nbsp;

                                          ...&nbsp;&nbsp; &lt;/domain&gt; .<br>
                                          The call would be entering via
                                          the acl to public.xml. Here i
                                          want to route the call
                                          according to domain names, how
                                          will i do that.<br>
                                          <br>
                                          Any suggestions...<br>
                                          <br>
                                          <br>
                                          Regards<br>
                                          Sam<br>
                                          <br>
                                          <br>
                                        </div>
                                      </div>
                                      <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<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>
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>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                                    </blockquote>
                                    <br>
                                    <br>
                                    <pre cols="72">-- 
Regards,
Boris

</pre>
                                  </div>
                                  <br>
_______________________________________________<br>
                                  FreeSWITCH-users mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                                    target="_blank">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>
                              <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<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>
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>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                            </blockquote>
                            <br>
                            <br>
                            <pre cols="72">-- 
Regards,
Boris

</pre>
                          </div>
                        </div>
                      </div>
                      <br>
                      _______________________________________________<br>
                      FreeSWITCH-users mailing list<br>
                      <a moz-do-not-send="true"
                        href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                        target="_blank">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>
                  <pre><fieldset></fieldset>
_______________________________________________
FreeSWITCH-users mailing list
<a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<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>
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>
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
                </blockquote>
                <br>
                <br>
                <pre cols="72">-- 
Regards,
Boris

</pre>
              </div>
            </div>
          </div>
          <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>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Regards,
Boris

</pre>
  </body>
</html>