Thankyou.<br><br>Regds<br>Sam<br><br><div class="gmail_quote">On Sat, Jun 4, 2011 at 12:21 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>
        No, You can&#39;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=&quot;ext_01&quot;&gt;<br>
        &lt;condition field=&quot;${domain_name}&quot; expression=&quot;^<a href="http://xyz.com" target="_blank">xyz.com</a>$&quot;/&gt;<br>
        &lt;condition filed=&quot;destination_number&quot;
    expression=&quot;^(1001)$&quot;&gt;<div class="im"><br>
            &lt;action application=&quot;voicemail&quot; data=&quot;default $${domain
    name} ${sip_to_host}&quot;/&gt;<br></div>
        &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=&quot;tranfser&quot; data=&quot;${destination_number} XML
    context_${domain_name}&quot;/&gt;<br>
    And after that You know that is context_${domain_name}
    (<a href="http://context_xyz.com" target="_blank">context_xyz.com</a> as in your example) You have o<div><div></div><div class="h5"><br>
    <blockquote type="cite">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" 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=&quot;<a href="http://xyz.com" target="_blank">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" 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>
                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><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" 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>