<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello Brian<br>
      <br>
      I did not specify this detail because i did not though&nbsp; this was
      important a the beginning, but the same domains are installed on
      freeswitch1 and freeswitch2 and mydomain.org is in fact a DNS SRV
      record witch point to freeswitch1 and freeswitch2.<br>
      <br>
      When someone on freeswitch1 wan't to call extension@domain, if
      it's not registered on freeswitch1 (i check using sofia_contact )&nbsp;
      i want to forward the call to freeswitch2 and vice versa.<br>
      <br>
      So i think i can't do a this with a original sofia bridge&nbsp; but it
      was possible by using sip_invite_to_uri as suggested by Sergey.
      Now i need to secure it :-)<br>
      <br>
      It's probably possible to use opensips, but it's seems more
      complex than a pure freeswitch.<br>
      <br>
      On 18/09/2015 21:49, Brian West wrote:<br>
    </div>
    <blockquote
cite="mid:CAEJMVkDb=v89nf3MCvm50MAgj-oayNfW14NotXpDgt9iGiHx4g@mail.gmail.com"
      type="cite">
      <div dir="ltr">what is wrong with:
        <div><br>
        </div>
        <div>&lt;action application="bridge" data="sofia/profile/<a
            moz-do-not-send="true"
            href="mailto:sip%3Asomeone@somedomain.com">sip:someone@somedomain.com</a>"/&gt;</div>
        <div><br>
        </div>
        <div>???</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Sep 18, 2015 at 12:23 PM,
          Tanguy <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:phenix@vfemail.net" target="_blank">phenix@vfemail.net</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">
              <div>Hello Sergey<br>
                <br>
                I am agree with you that my dial plan can be risky I
                used ACL but this can be not sufficient. I want to be
                able to call any internal sip extension, but i don't
                want that this piece dialplan to be usable reach
                external numbers. <br>
                <br>
                I probably need to protect theses variables (
                sip_to_user must be only a locally registered sip
                extension )&nbsp; or avoid using them ( maybe using multiple
                conditions field for each domain ? )<br>
                <br>
                I don't fully understand your initial example:<span
                  class=""><br>
                  <br>
                  <font face="Courier New, Courier, monospace">&lt;action

                    application="bridge"
                    data="{sip_invite_to_uri=&lt;sip:${<a
                      moz-do-not-send="true"
                      href="mailto:destination_number%7D@mydomain.org"
                      target="_blank">destination_number}@mydomain.org</a>&gt;}user/<a
                      moz-do-not-send="true"
                      href="mailto:reg_user@mydomain.org"
                      target="_blank">reg_user@mydomain.org</a>"/&gt;</font><br>
                  <br>
                </span> What is <b>reg_user</b> for freeswitch1 ? What
                should i use on freeswitch2 dialplan to recognize the
                inbound call ?<br>
                <br>
                Thanks<span class=""><br>
                  <br>
                  <br>
                  <br>
                  &nbsp;<br>
                  <br>
                  On 18/09/2015 07:10, Sergey Safarov wrote:<br>
                </span></div>
              <span class="">
                <blockquote type="cite">
                  <p dir="ltr">1) I recommend not use "domain" and
                    dereviated variables. This variables may be used in
                    bridge and other application.<br>
                    2) try send invite as in example provided early. </p>
                  <br>
                  <div class="gmail_quote">
                    <div dir="ltr">On Thu, Sep 17, 2015, 23:22&nbsp;Tanguy
                      &lt;<a moz-do-not-send="true"
                        href="mailto:phenix@vfemail.net" target="_blank">phenix@vfemail.net</a>&gt;

                      wrote:<br>
                    </div>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div bgcolor="#FFFFFF" text="#000000">
                        <div>I am now able to call a extension from a
                          remote server, for those who are interested i
                          used theses options on freeswitch2 public
                          dialplan<br>
                          <br>
                          &lt;action application="set"
                          data="call_direction=inbound"/&gt;<br>
                          &lt;action application="set"
                          data="domain_name=${sip_to_host}" &gt;<br>
                          &lt;action application="set"
                          data="domain=${sip_to_host}"/&gt;<br>
                          &lt;action application="transfer"
                          data="${sip_to_user} XML ${sip_to_host}" /&gt;</div>
                      </div>
                      <div bgcolor="#FFFFFF" text="#000000">
                        <div><br>
                          <br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </blockquote>
                <br>
              </span></div>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" rel="noreferrer"
              target="_blank">http://www.freeswitchsolutions.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://confluence.freeswitch.org" rel="noreferrer"
              target="_blank">http://confluence.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              rel="noreferrer" target="_blank">http://www.cluecon.com</a><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"
              rel="noreferrer" 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"
              rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div>
                          <div dir="ltr">
                            <p><font face="courier new, monospace"><b><i><font
                                      size="4">Brian West</font></i></b><br>
                                <span style="font-size:x-small"><a
                                    moz-do-not-send="true"
                                    href="mailto:brian@freeswitch.org"
                                    target="_blank">brian@freeswitch.org</a></span></font></p>
                            <p><font face="courier new, monospace"
                                size="1"><img moz-do-not-send="true"
                                  src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br>
                              </font></p>
                            <p><font face="monospace, monospace"
                                size="2"><b><i>Twitter: @FreeSWITCH ,
                                    @briankwest</i></b><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchbook.com"
                                  target="_blank">http://www.freeswitchbook.com</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchcookbook.com"
                                  target="_blank">http://www.freeswitchcookbook.com</a></font></p>
                            <p><font face="monospace, monospace">Got
                                Bugs? Report them <a
                                  moz-do-not-send="true"
                                  href="https://freeswitch.org/jira"
                                  target="_blank">here</a>! | Reddit:&nbsp;<a
                                  moz-do-not-send="true"
                                  href="https://www.reddit.com/r/freeswitch"
                                  target="_blank">/r/freeswitch</a></font></p>
                            <p><font face="monospace, monospace"
                                size="2"><b>T:</b>+19184209001 | <b>F:</b>+19184209002
                                | <b>M:</b>+1918424WEST (9378)<br>
                                <b>iNUM:</b>+883 5100 1420 9001 |&nbsp;<b>ISN:</b>410*543
                                |&nbsp;<b>Skype:</b>briankwest</font></p>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

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>
  </body>
</html>