Hello,<br><br>After doing this ,<br><br>&lt;action application=&quot;set&quot; data=&quot;domain name=${regex(${sip_from_uri}|^.*@(.*)$|%1)}&quot; inline=&quot;true&quot;/&gt;<br><br>i get domain name = <a href="http://xyz.com">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=&quot;<a href="http://xyz.com">xyz.com</a>&quot;&gt;<br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^(1001)$&quot;&gt;<br>
 &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain name} ${sip_to_host}&quot;/&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 href="mailto:boris@tagnet.ru">boris@tagnet.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


  
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hello!<br>
    <br>
        There is a variable named ${sip_from_user}. You may do something
    like<br>
    <br>
    &lt;action application=&quot;set&quot;
    data=<a href="mailto:from_domain=$%7Bregex%28$%7Bsip_from_user%7D%7C%5E.*@%28.*%29$%7C%251%29%7D" target="_blank">&quot;from_domain=${regex(${sip_from_user}|^.*@(.*)$|%1)}&quot;</a>
    inline=&quot;true&quot;/&gt;<br>
    &lt;action application=&quot;transfer&quot; data=&quot;${from_domain} XML
    domain_context&quot;/&gt;<div><div></div><div class="h5"><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 href="http://wiki.freeswitch.org/wiki/Multi-tenant" target="_blank">http://wiki.freeswitch.org/wiki/Multi-tenant</a> 
      <br>
      <br>
      Here how can we recognized from the header on which domain is it
      ?  like if we get an from header as <a 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 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>
                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 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=&quot;<a href="http://xyz.com" target="_blank">xyz.com</a>&quot;&gt;  ...  
                  &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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a 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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
          <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a 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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a 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 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>