<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">Hey Markus,<br>
      thanks for inputs.<br>
      I got your points.<br>
      <br>
      Let me give you some details. I have two boards running
      freeswitch; Both have PSTN number at the back-end. (Presumably
      these are also SOft SIP phone as per my understanding in FS).<br>
      So, I want to automate a call between these two guys. Where I want
      to write some scripts, that suppose originate from ENDPOINT A and
      call to ENDPOINT B.<br>
      And, then EP B auto-answers the call. (I can take up media path
      manual; One can after picking up calls, speak manually holding
      Handsets.)<br>
      <br>
      Till now, somehow, using fs_cli originate I am able to DIAL B.
      But, B still has to pick manually.<br>
      <br>
      Now, from your explanation what I think is, you are right in the
      sense of making receiving automatic. I mean, I will have to
      intervene somewhere on receiving endpoint and configure
      auto-answer somewhere; AM I RIGHT? This is what you are trying to
      explain in the context of receive path.<br>
      <br>
      Again thanks for inputs. They are helping.<br>
      <pre class="moz-signature" cols="72">Regards
Bhavesh
GS LAB
(O) +91 20 4671 1256
(M) +91 86000 64681</pre>
      On 11-07-2014 18:12, Markus Lindenberg wrote:<br>
    </div>
    <blockquote
cite="mid:CAExAoeA1Ur4RQHntaiHirYW0dzZzhaVD4aB0b0C4PZe9AZD8iw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Bhavesh,&nbsp;
        <div><br>
        </div>
        <div>what exactly are you trying to achive?</div>
        <div><br>
        </div>
        <div>If you originate a call, freeswitch creates two outgoing
          calls (it calls the "caller", as soon as the caller picks up,
          a call to the callee is created and the calls are bridged). So
          technically from the phone's perspective that's just two
          normal incoming phonecalls.&nbsp;</div>
        <div><br>
        </div>
        <div>Not to answer a call programatically, you'd have to control
          the phone. With some SIP phone you could make them answer the
          call automatically by setting a SIP header (e.g. for Snom:&nbsp;<a
            moz-do-not-send="true"
            href="http://wiki.snom.com/Category:HowTo:Intercom">http://wiki.snom.com/Category:HowTo:Intercom</a>).
          Or you could control the phone itself using a CTI mechanism
          supported by the phone, like uaCSTA.</div>
        <div><br>
        </div>
        <div>For analog lines that's not even possible I think, because
          there's no way to tell the phone that it should answer the
          call. What you can do though is look at mod_fifo and log those
          people in as "consumers", so their phones are always off-hook
          and connected to mod_fifo. I guess you can then write some
          scrips that connect a caller to a waiting consumer without
          having to touch the phone.&nbsp;</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Fri, Jul 11, 2014 at 10:52 AM,
          Bhavesh Soni <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:bhavesh.soni@gslab.com" target="_blank">bhavesh.soni@gslab.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Can I
            achieve this using DIALPLANs?<br>
            If yes, any example/link giving directions on dialplans.<br>
            <div class="im HOEnZb"><br>
              Regards<br>
              Bhavesh<br>
              GS LAB<br>
              (O) <a moz-do-not-send="true"
                href="tel:%2B91%2020%204671%201256"
                value="+912046711256">+91 20 4671 1256</a><br>
              (M) <a moz-do-not-send="true"
                href="tel:%2B91%2086000%2064681" value="+918600064681">+91
                86000 64681</a><br>
              <br>
            </div>
            <div class="im HOEnZb">On 11-07-2014 12:06, Normando Hall
              wrote:<br>
            </div>
            <div class="HOEnZb">
              <div class="h5">&gt; Hi Bravesh.<br>
                &gt;<br>
                &gt; I sugest to use events socket to implement the full
                ESL API from you own<br>
                &gt; lnaguage. It is more flexible than scripts
                applications.<br>
                &gt;<br>
                &gt; This is my advice.<br>
                &gt;<br>
                &gt; Normando<br>
                &gt;<br>
                &gt;<br>
                &gt; El 11/07/2014 03:22 a.m., Bhavesh Soni escribi&oacute;:<br>
                &gt;&gt; Guys,<br>
                &gt;&gt;<br>
                &gt;&gt; Are there APIs available to automate calls in
                freeswitch.<br>
                &gt;&gt;<br>
                &gt;&gt; DIALING:<br>
                &gt;&gt; TIll now using mod_lua, I have tried
                "originate"; And I am able to<br>
                &gt;&gt; establish a call(again tweaking some logs, i
                found endpoint URI and used<br>
                &gt;&gt; this with originate); In logs I can see
                multiple UUIDs generated, and I<br>
                &gt;&gt; dont know which one is the correct for the
                session initiated with which<br>
                &gt;&gt; I can answer from other end.<br>
                &gt;&gt;<br>
                &gt;&gt; Answering:<br>
                &gt;&gt; On other side, to answer incoming call, I am
                not able to find or do<br>
                &gt;&gt; anything as of now. I have tried uuid_answer;
                but with no luck.(I tried<br>
                &gt;&gt; uuid_answer with all different UUID I saw at
                originate), But no luck.<br>
                &gt;&gt;<br>
                &gt;&gt; Apart from these, are there other approaches. I
                am using freeswitch<br>
                &gt;&gt; version 1.2.1(I know quite an old; but I dont
                have much liberty to<br>
                &gt;&gt; update this.)<br>
                &gt;&gt;<br>
                &gt;<br>
                &gt;
_________________________________________________________________________<br>
                &gt; Professional FreeSWITCH Consulting Services:<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitchsolutions.com"
                  target="_blank">http://www.freeswitchsolutions.com</a><br>
                &gt;<br>
                &gt; FreeSWITCH-powered IP PBX: The CudaTel
                Communication Server<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
                &gt;<br>
                &gt; Official FreeSWITCH Sites<br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
                &gt; <a moz-do-not-send="true"
                  href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                &gt;<br>
                &gt; FreeSWITCH-users mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
                &gt; <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>
                &gt; 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>
                &gt; <a moz-do-not-send="true"
                  href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                <br>
                <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>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </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>
  </body>
</html>