<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Thanks!<br>
      I can now make the call work, but I need to tweak some details...<br>
      The slightly missing link for me now - how can I set channel
      variables for the B-leg there?<br>
      Is there any way I can send them to the A-leg and have the A-leg
      export them to the B?<br>
      I'm still a little baffled as to how this even works!<br>
      <br>
      Alex<br>
    </div>
    <blockquote
cite="mid:CALNZuwkHOg2TVpiNefmOKs3XD270UN7jMJO2V+oFa+Fccn3wiA@mail.gmail.com"
      type="cite">
      <div dir="ltr">You almost got it: it's: exten [dialplan] [context]
        <div><br>
          <div>So you just needed to do:</div>
          <div>originate
            {origination_caller_id_name=CallBack,origination_caller_id_number=07775123456}user/0095302
            07775123456 xml dp0095</div>
          <div>... without the &amp;bridge. You <i>either</i> choose an
            extension or do &amp;(app).<br>
            <div>
              <pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">Usage: originate &lt;call_url&gt; &lt;exten&gt;|&amp;&lt;application_name&gt;(&lt;app_args&gt;) 
   [&lt;dialplan&gt;] [&lt;context&gt;] [&lt;cid_name&gt;] [&lt;cid_num&gt;] [&lt;timeout_sec&gt;]</pre>
            </div>
            <div>To quote from the wiki:</div>
            <div>
              <p
                style="line-height:19.046875px;font-size:13px;font-family:sans-serif;margin:0.4em
                0px 0.5em">
                "Here's an example of originating a call to an extension
                in a different context than 'default' (required for the
                FreePBX which uses context_1, context_2, etc.):"</p>
              <pre style="padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.1em">
   originate sofia/internal/<a moz-do-not-send="true" href="mailto:2001@foo.com" target="_blank">2001@foo.com</a> 3001 xml context_3</pre>
              <div>
                <div dir="ltr"><span
                    style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi
                    Marcus</span><br>
                  BestFone</div>
              </div>
              <br>
              <br>
              <div class="gmail_quote">On Thu, Mar 7, 2013 at 4:02 PM,
                Alex Lake <span dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</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>Yes, I'd seen that - but I'm currently the
                      wrong side of the "got it" fence. However, I did
                      this:<br>
                      <br>
                      originate
{origination_caller_id_name=CallBack,origination_caller_id_number=07775123456}user/0095302&amp;bridge({<a
                        moz-do-not-send="true"
href="mailto:origination_caller_id_number=2070602000%7Dsofia/internal/07775123456@pstngateway.com"
                        target="_blank">origination_caller_id_number=2070602000}sofia/internal/07775123456@pstngateway.com</a>)<br>
                      <br>
                      and it kind of did what I wanted.<br>
                      <br>
                      However, what I really want to do is to simulate
                      as closely as possible what happens when ext
                      0095302 makes an outbound call to 07775123456 from
                      a handset - preferably using the dp0095 context of
                      the xml (?) dialplan.<br>
                      <br>
                      So I thought I'd try using the dialplan and
                      context parameters like this:<br>
                      <br>
                      originate
                      {origination_caller_id_name=CallBack,origination_caller_id_number=07775123456}user/0095302

                      &amp;bridge(07775123456) xml dp0095<br>
                      <br>
                      But I've clearly got the wrong end of the stick!<br>
                      <br>
                    </div>
                    <blockquote type="cite">
                      <div>
                        <div>
                          <div dir="ltr">There's a whole bunch of
                            examples here:
                            <div><a moz-do-not-send="true"
                                href="http://wiki.freeswitch.org/wiki/Mod_commands#originate"
                                target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#originate</a></div>
                            <div><br>
                            </div>
                            <div>The first arg rings first, and must be
                              an endpoint, e.g. sofia/, user/.</div>
                            <div>Once they pick up, the second arg is
                              called.</div>
                            <div><br>
                            </div>
                            <div>So originating to a local user or to a
                              remote endpoint is nearly the same...
                              especially if you can use the lcr/
                              endpoint.</div>
                            <div>Your leg B can be a brige, a
                              conference&nbsp;<span style="line-height:1.1em">&amp;conference(conf_uuid-TEST_CON),

                                or just hit the dialplan.</span></div>
                            <div><br>
                            </div>
                            <div><br clear="all">
                              <div>
                                <div dir="ltr"><span
                                    style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi

                                    Marcus</span><br>
                                </div>
                              </div>
                              <br>
                              <div class="gmail_quote">On Thu, Mar 7,
                                2013 at 1:00 PM, Alex Lake <span
                                  dir="ltr">&lt;<a
                                    moz-do-not-send="true"
                                    href="mailto:alex@digitalmail.com"
                                    target="_blank">alex@digitalmail.com</a>&gt;</span>
                                wrote:<br>
                                <blockquote class="gmail_quote"
                                  style="margin:0 0 0
                                  .8ex;border-left:1px #ccc
                                  solid;padding-left:1ex">I was
                                  wondering where's a good place to find
                                  some examples of how, by<br>
                                  sending the right commands to the
                                  event_socket, I could have Freeswitch<br>
                                  establish callbacks for me.<br>
                                  <br>
                                  Essentially there are a couple of
                                  different termination types - PSTN<br>
                                  (via a gateway) and internally
                                  registered SIP accounts<br>
                                  <br>
                                  I would wish to be able to set up
                                  A-&gt;B (and maybe small conferences)<br>
                                  using these types of destination in
                                  any combination.<br>
                                  <br>
                                  I've looked through the event_socket
                                  pages and the "originate" syntax,<br>
                                  but would like to put together
                                  something a little more
                                  "idiot-friendly"<br>
                                  so am looking around for
                                  precedents/tips...<br>
                                  <br>
                                  <br>
                                  <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>
                          <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>
                          <br>
                          <fieldset></fieldset>
                          <br>
                        </div>
                      </div>
                      <p color="#000000" align="left">No virus found in
                        this message.<br>
                        Checked by AVG - <a moz-do-not-send="true"
                          href="http://www.avg.com" target="_blank">www.avg.com</a><br>
                        Version: 2012.0.2240 / Virus Database: 2641/5652
                        - Release Date: 03/06/13</p>
                    </blockquote>
                    <br>
                  </div>
                  <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>
                  <br>
                </blockquote>
              </div>
              <br>
            </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>

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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="" avgcert""="" color="#000000" align="left">No virus
        found in this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 2012.0.2240 / Virus Database: 2641/5652 - Release Date:
        03/06/13</p>
    </blockquote>
    <br>
  </body>
</html>