<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi @Vitalie,<br>
    <br>
    I guess this will do it, but I just have one questione. As call FW
    number is not in destination_number variable I need a help how to
    make a bridge with a contact variable (Contact:
    <a class="moz-txt-link-rfc2396E" href="sip:AAA@a.a.a.a:1024;line=bldz828o">&lt;sip:AAA@a.a.a.a:1024;line=bldz828o&gt;</a>;reg-id=1) as in this
    variblae CFW number is hidden on which call should transfer.<br>
    <br>
    Thanks!<br>
    <br>
    Miha<br>
    <br>
    On 1/27/2012 9:24 AM, Vitalie Colosov wrote:
    <blockquote
cite="mid:CACc3D0WNJ1jqtLitZ=Pr6kTq0wgkncnW6BMtEuV-ovXp_Y0Xtw@mail.gmail.com"
      type="cite">And when you say "<span style="">phone is set to make
        call FW" - are you calling to this phone A from another phone
        which is connected to FS? (lets say phone B), and Phone A is
        doing SIP redirect to the external number which is set by you in
        the Phone A's settings?</span>
      <div>
        <font color="#222222" face="arial, sans-serif"><br>
        </font></div>
      <div><font color="#222222" face="arial, sans-serif">If so, I
          assume the call will enter FS, and then it depends of your
          dialplan... You can setup it in the way that if the number
          does not exist, or based on some prefix, it should bridge to
          external number via&nbsp;</font>sofia/external/386$1@SBC_IP, but
        this should be done explicitly, FS does not know that you want
        to forward it to the outside world...</div>
      <div><br>
      </div>
      <div>For example:</div>
      <div>
        <div><br>
        </div>
        <div>&lt;extension
          name="user_not_found_lets_try_external_gateway"&gt;</div>
        <div>&nbsp; <span class="Apple-tab-span" style="white-space:pre"> </span>&lt;condition
          field="${user_exists(id ${destination_number} $${domain})}"
          expression="false"&gt;</div>
        <div>&nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">
          </span>&lt;action application="bridge"
          data="sofia/external/386${destination_number}@SBC_IP"/&gt;</div>
        <div>&nbsp; <span class="Apple-tab-span" style="white-space:pre"> </span>&lt;/condition&gt;</div>
        <div>&lt;/extension&gt;</div>
        <div><br>
        </div>
        <div>Let me know if this bring more light to your issue.</div>
        <div><br>
        </div>
        <div>Vitalie</div>
        <div><font color="#222222" face="arial, sans-serif"><br>
          </font></div>
        <div><font color="#222222" face="arial, sans-serif"><br>
          </font>
          <div class="gmail_quote">2012/1/26 Miha Zoubek <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:miha@softnet.si">miha@softnet.si</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hi @Vitalie,<br>
                <br>
                what is here..? here is trunk to sbc with registration
                false option (without password, just ip). Outside call I
                am doing like this :<br>
                <br>
                &lt;action application="bridge"
                data="sofia/external/386$1@SBC_IP"/&gt;<br>
                <br>
                Thanks!
                <div>
                  <div class="h5"><br>
                    <br>
                    <br>
                    On 1/27/2012 8:08 AM, Vitalie Colosov wrote:
                    <blockquote type="cite">Could you please elaborate
                      more on your&nbsp;topology...&nbsp;
                      <div><br>
                      </div>
                      <div>Sip phone A (1001) --&gt; FS --&gt; what is
                        here..? Where do you want it to call? Do you
                        have an external profile with a gateway
                        configured?<br>
                        <div>
                          <div> <br>
                            <br>
                            <div class="gmail_quote">2012/1/25 Miha
                              Zoubek <span dir="ltr">&lt;<a
                                  moz-do-not-send="true"
                                  href="mailto:miha@softnet.si"
                                  target="_blank">miha@softnet.si</a>&gt;</span><br>
                              <blockquote class="gmail_quote"
                                style="margin:0 0 0 .8ex;border-left:1px
                                #ccc solid;padding-left:1ex"> Hi,<br>
                                <br>
                                I have phone registered on FS and phone
                                is set to make call FW. I<br>
                                noticed that FS do not make a call FW
                                the external number but looks on<br>
                                FS if the phone is registered on FS
                                (because the calling number is not<br>
                                on FS the call is being rejected).<br>
                                How to tell FS that it should make a
                                call fw to a number that is not on FS.<br>
                                <br>
                                Thanks!<br>
                                <br>
                                Regards,<br>
                                Miha<br>
                                <br>
                                --<br>
                                Best regards / Lep Pozdrav<br>
                                Miha Zoubek<br>
                                Softnet d.o.o.<br>
                                <br>
                                <br>
_________________________________________________________________________<br>
                                Professional FreeSWITCH Consulting
                                Services:<br>
                                <a moz-do-not-send="true"
                                  href="mailto:consulting@freeswitch.org"
                                  target="_blank">consulting@freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitchsolutions.com"
                                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                                <br>
                                FreeSWITCH-powered IP PBX: The CudaTel
                                Communication Server<br>
                                <a moz-do-not-send="true"
                                  href="http://www.cudatel.com"
                                  target="_blank">http://www.cudatel.com</a><br>
                                <br>
                                Official FreeSWITCH Sites<br>
                                <a moz-do-not-send="true"
                                  href="http://www.freeswitch.org"
                                  target="_blank">http://www.freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://wiki.freeswitch.org"
                                  target="_blank">http://wiki.freeswitch.org</a><br>
                                <a moz-do-not-send="true"
                                  href="http://www.cluecon.com"
                                  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"
                                  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>
                              </blockquote>
                            </div>
                            <br>
                          </div>
                        </div>
                      </div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

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">-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
                  </div>
                </div>
              </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"
                target="_blank">http://www.freeswitchsolutions.com</a><br>
              <br>
              FreeSWITCH-powered IP PBX: The CudaTel Communication
              Server<br>
              <a moz-do-not-send="true" href="http://www.cudatel.com"
                target="_blank">http://www.cudatel.com</a><br>
              <br>
              Official FreeSWITCH Sites<br>
              <a moz-do-not-send="true" href="http://www.freeswitch.org"
                target="_blank">http://www.freeswitch.org</a><br>
              <a moz-do-not-send="true"
                href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
              <a moz-do-not-send="true" href="http://www.cluecon.com"
                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"
                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>
        </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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.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>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
  </body>
</html>