<!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; There is a variable named ${sip_from_user}. You may do something
    like<br>
    <br>
    &lt;action application="set"
    data=<a class="moz-txt-link-rfc2396E" href="mailto:from_domain=${regex(${sip_from_user}|^.*@(.*)$|%1)}">"from_domain=${regex(${sip_from_user}|^.*@(.*)$|%1)}"</a>
    inline="true"/&gt;<br>
    &lt;action application="transfer" data="${from_domain} XML
    domain_context"/&gt;<br>
    <br>
    <blockquote
      cite="mid:BANLkTimOZ-yxbNXFiOr519FoR=9euOZLcg@mail.gmail.com"
      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">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">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">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 class="h5">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">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>