<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p>Hello Malik</p>
    <p>It is strange. Can you chare you dialplan extension where you
      park the incoming call?</p>
    <p>I asume you are subscribed for all events and listen for park.</p>
    <p>This is my public dialplan extension:</p>
    <pre class="code highlight" lang="xml"><span id="LC1" class="line" lang="xml"><span class="nt"><include></span></span>
<span id="LC2" class="line" lang="xml">  <span class="nt"><extension</span> <span class="na">name=</span><span class="s">"IVR_FXO"</span><span class="nt">></span></span>
<span id="LC3" class="line" lang="xml">    <span class="nt"><condition</span> <span class="na">field=</span><span class="s">"destination_number"</span> <span class="na">expression=</span><span class="s">"^(66[78][0-9])$"</span><span class="nt">></span></span>
<span id="LC7" class="line" lang="xml">      <span class="nt"><action</span> <span class="na">application=</span><span class="s">"park"</span><span class="nt">/></span></span>
<span id="LC21" class="line" lang="xml">    <span class="nt"></condition></span></span>
<span id="LC22" class="line" lang="xml">  <span class="nt"></extension></span></span>
<span id="LC23" class="line" lang="xml"><span class="nt"></include></span></span>
</pre>
    <p>The in my js code (snipet)</p>
    <pre class="code highlight" lang="javascript"><span id="LC61" class="line" lang="javascript">    <span class="nx">conn</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="nx">Events</span><span class="p">.</span><span class="nx">RECEIVED</span><span class="p">,</span> <span class="nx">event</span> <span class="o">=></span> <span class="p">{</span></span>
<span id="LC62" class="line" lang="javascript">      <span class="kd">const</span> <span class="nx">eventName</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Event-Name</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC63" class="line" lang="javascript"></span>
<span id="LC64" class="line" lang="javascript">      <span class="k">if</span><span class="p">(</span><span class="nx">eventName</span> <span class="o">!=</span> <span class="kc">null</span><span class="p">){</span></span>
<span id="LC65" class="line" lang="javascript">        <span class="kd">const</span> <span class="nx">uuid</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Caller-Unique-ID</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC66" class="line" lang="javascript">        <span class="kd">let</span> <span class="nx">callerNumber</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Caller-ANI</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC67" class="line" lang="javascript">        <span class="k">if</span><span class="p">(</span><span class="nx">debug</span><span class="p">)</span> <span class="nx">callerNumber</span> <span class="o">=</span> <span class="dl">'</span><span class="s1">4275595</span><span class="dl">'</span></span>
<span id="LC68" class="line" lang="javascript">        <span class="kd">const</span> <span class="nx">context</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Caller-Context</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC69" class="line" lang="javascript">        <span class="kd">const</span> <span class="nx">destination</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Caller-Destination-Number</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC70" class="line" lang="javascript">        <span class="kd">const</span> <span class="nx">callDirection</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Call-Direction</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC71" class="line" lang="javascript">        <span class="kd">const</span> <span class="nx">internal</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">variable_sip_user_agent</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC72" class="line" lang="javascript">        <span class="c1">//logger.info(eventName)</span></span>
<span id="LC73" class="line" lang="javascript"></span>
<span id="LC74" class="line" lang="javascript">        <span class="k">switch</span> <span class="p">(</span><span class="nx">eventName</span><span class="p">)</span> <span class="p">{</span></span>
<span id="LC75" class="line" lang="javascript">          <span class="k">case</span> <span class="nx">ChannelEvents</span><span class="p">.</span><span class="na">HANGUP</span><span class="p">:</span></span>
<span id="LC76" class="line" lang="javascript">            <span class="kd">const</span> <span class="nx">hangupCause</span> <span class="o">=</span> <span class="nx">event</span><span class="p">.</span><span class="nx">getHeader</span><span class="p">(</span><span class="dl">'</span><span class="s1">Hangup-Cause</span><span class="dl">'</span><span class="p">);</span></span>
<span id="LC77" class="line" lang="javascript">            <span class="nx">helpers</span><span class="p">.</span><span class="nx">delChannel</span><span class="p">(</span><span class="nx">uuid</span><span class="p">);</span></span>
<span id="LC78" class="line" lang="javascript">            <span class="c1">//logger.info(hangupCause + ' ' + uuid)</span></span>
<span id="LC79" class="line" lang="javascript">          <span class="k">break</span><span class="p">;</span></span>
<span id="LC80" class="line" lang="javascript"></span>
<span id="LC81" class="line" lang="javascript">          <b><span class="k">case</span></b><b> </b><b><span class="nx">ChannelEvents</span></b><b><span class="p">.</span></b><b><span class="na">PARK</span></b><b><span class="p">:</span></b></span>
<span id="LC82" class="line" lang="javascript">            <span class="c1">//logger.info("ID: " + uuid + "\nNumero: " + callerNumber + "\nContexto: " + context + "\nDestino: " + destination + "\nTipo: " + callDirection + "\nInterno: " + internal + "\n");</span></span>
<span id="LC83" class="line" lang="javascript"> .....
</span> 


</pre>
    <div class="moz-cite-prefix">El 22/09/2020 a las 06:38 a. m.,
      Ehtasham Ul-Haq escribió:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAG0xMLmVKLGHFmWGdD1=pA7=emFEjjD1m+F=b0bQXfogXK5TzA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">Hello Normando, <br>
        Thanks for your Answer, 
        <div>However, when we park the callee, the call got
          disconnected. <br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <p dir="ltr"
style="font-size:12.8px;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-family:Arial;vertical-align:baseline;white-space:pre-wrap">Malik Ehtasham, Lead ProjDev</span></p>
                        <p dir="ltr"
style="font-size:12.8px;line-height:1.656;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh6.googleusercontent.com/yE5sw1FNhk7A8YXwHvqJ_1eoUhx6Rly7EZQn8JVLClQgesUimaC5FBhoqcjL_0TiGnF8-z4kSqJywWlkYPcySl1rLcS18hzt1PbCqtGbvbtl6TVHQlFadPziihRZ17vCkCMArghS" style="border:none" moz-do-not-send="true" width="128" height="27"></span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"> WWW:</span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh4.googleusercontent.com/4Imm7d5fvTo1pttR1BIKC8HO8j5SLyBZTB8tWImJUvl8pOlWGLXnQW8yrpknZc1LXvs6Fh7Dqnb7364OiYyUY9k5ZrAhlHaERf2ydHCwilnMDEstZGguJryPOTargVvyKGpl6nE4" alt="domain2.png" style="border:none" moz-do-not-send="true" width="20" height="20"></span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">.</span><a
                            href="http://www.expertflow.com/"
                            style="color:rgb(17,85,204);text-decoration:none"
                            target="_blank" moz-do-not-send="true"><span style="font-size:10.6667px;font-family:Arial;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">expertflow.com</span></a><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">    FB: </span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><img src="https://lh4.googleusercontent.com/ZmZn4kweCNMrzi5Zjmsr2loQXwEvy7YJrbZwqYTWi4Bqup-UwrvpcQxq-A1YDFDCLhAkWNQYumaiQNG6afNtDeXaTw0yUBr2U-O2JJlDabZnS--zxd7yH30FH_IFUe1J9FlyrbGB" alt="FB-f-Logo__blue_29.png" style="border:none" moz-do-not-send="true" width="20" height="20"></span><a
                            href="https://www.facebook.com/Expertflow"
                            style="color:rgb(17,85,204);text-decoration:none"
                            target="_blank" moz-do-not-send="true"><span style="font-size:10.6667px;font-family:Arial;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">/Expertflow</span></a><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">   LinkedIn: </span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><img src="https://lh5.googleusercontent.com/HzDSRgDd2E4VUiBy-0DSRNHL3QtiO9lr1fNhxei91YVvqS7DtXWRn7mNNXL1i0gNqft_P8XHwy7vgsyTpMkjGU7DyYWZqXWrBAMDYgBH8hdIxSK_pZHsOdl-m2EQguC-MM4Yr4WL" alt="linkedIn.png" style="border:none" moz-do-not-send="true" width="20" height="20"></span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap">    </span><a
href="https://www.linkedin.com/company/expertflow"
                            style="color:rgb(17,85,204);text-decoration:none"
                            target="_blank" moz-do-not-send="true"><span style="font-size:10.6667px;font-family:Arial;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">/company/expertflow</span></a><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"> Youtube:  </span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><img src="https://lh3.googleusercontent.com/GKiZ4L3ynQ1utfAyUYDanJa3m5fBMvvx103k3F6mAoy-AFAmB5W551GUF5T5lrtFglf_59-Mr4Pop-aJNTVrErEf7iPUbdF-BiAu0Vf-XVfyH6lyG6eElH9KERA5F_n1O81aorHZ" alt="YouTube-social-square_red_128px.png" style="border:none" moz-do-not-send="true" width="20" height="20"></span><a
href="https://www.youtube.com/user/expertflow"
                            style="color:rgb(17,85,204);text-decoration:none"
                            target="_blank" moz-do-not-send="true"><span style="font-size:10.6667px;font-family:Arial;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">/user/expertflow</span></a><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"> Twitter:  </span><span style="font-size:10.6667px;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><img src="https://lh4.googleusercontent.com/f_tOrZI3b6KehzlZtPBbTKluAO4evCj-GQJfR0GuA75aAOa2vqTQG2UENzBbumoI4efX9xwqYNe6k0vV25_KxTPSjWeE69wvKaaKbd41Fdg42ljQkLsjvHC4_oaN5KFFMz9me_SB" alt="twitter.JPG" style="border:none" moz-do-not-send="true" width="20" height="20"></span><a
                            href="https://twitter.com/Expertflow"
                            style="color:rgb(17,85,204);text-decoration:none"
                            target="_blank" moz-do-not-send="true"><span style="font-size:10.6667px;font-family:Arial;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">/Expertflow</span></a></p>
                        <span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font color="#0000ff">361 Model Town Lahore Pakistan</font> ; Mobile +</span><span style="font-size:10.6667px;font-family:Arial;color:rgb(17,85,204);vertical-align:baseline;white-space:pre-wrap">92 3347815664,+92 334 4853664</span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">; email, Cisco Spark and Google Talk: <font color="#0000ff">ehtasham.malik</font></span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:andreas.stuber@expertflow.com" target="_blank" moz-do-not-send="true"><font color="#0000ff">@expertflow.com</font></a></span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap">; Skype:</span><span style="font-size:10.6667px;font-family:Arial;vertical-align:baseline;white-space:pre-wrap"><font color="#0000ff"><a href="http://andreas.stuber.expertflow.com/" style="text-decoration:none;font-size:12.8px" target="_blank" moz-do-not-send="true"> </a><u>shani.awan3</u></font></span><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Sep 22, 2020 at 1:48
          AM Normando Hall via FreeSWITCH-users <<a
            href="mailto:freeswitch-users@lists.freeswitch.org"
            moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
          <br>
          <br>
          ---------- Forwarded message ----------<br>
          From: Normando Hall <<a href="mailto:nhall@unixlan.com.ar"
            target="_blank" moz-do-not-send="true">nhall@unixlan.com.ar</a>><br>
          To: <a href="mailto:freeswitch-users@lists.freeswitch.org"
            target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a><br>
          Cc: <br>
          Bcc: <br>
          Date: Mon, 21 Sep 2020 17:14:17 -0300<br>
          Subject: Re: [Freeswitch-users] How to Answer a Call from ESL
          java<br>
          Hi.<br>
          <br>
          If you are using inbound ESl, you must park the call in your
          dialplan,<br>
          and listen for "park" event in your ESL code. Then answer this
          call<br>
          <br>
          Regards<br>
          <br>
          El 21/09/2020 a las 04:38 p. m., Malik Ehtasham escribió:<br>
          > Hello,<br>
          > I want to answer the call from my web application. For
          Example, SIP Phone 1,<br>
          > dial a call to SIP Phone B, now Phone B is ringing, now I
          want to answer the<br>
          > call on Phone B, via my Web Interface, so there is a
          button on my interface<br>
          > to answer the call.<br>
          > To answer the call I am executing the below command, but
          this doesn't do<br>
          > anything and the call keeps on ringing on phone B. Any <br>
          ><br>
          > EslMessage response =<br>
          >
          client.sendSyncApiCommand("uuid_answer",Event_Header.get("Unique-ID"));<br>
          ><br>
          ><br>
          ><br>
          > --<br>
          > Sent from: <a
            href="http://freeswitch-users.2379917.n2.nabble.com/"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://freeswitch-users.2379917.n2.nabble.com/</a><br>
          ><br>
          >
_________________________________________________________________________<br>
          ><br>
          > The FreeSWITCH project is sponsored by SignalWire <a
            href="https://signalwire.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://signalwire.com</a><br>
          > Enhance your FreeSWITCH install with disruptive priced
          SMS and PSTN services.<br>
          > Build your next product on our scalable cloud platform.<br>
          ><br>
          > Join our online community to chat in real time <a
            href="https://signalwire.community" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://signalwire.community</a><br>
          ><br>
          > Professional FreeSWITCH Services<br>
          > <a href="mailto:sales@freeswitch.com" target="_blank"
            moz-do-not-send="true">sales@freeswitch.com</a><br>
          > <a href="https://freeswitch.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
          ><br>
          > Official FreeSWITCH Sites<br>
          > <a href="https://freeswitch.com/oss" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
          > <a href="https://freeswitch.org/confluence"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
          > <a href="https://cluecon.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://cluecon.com</a><br>
          ><br>
          > FreeSWITCH-users mailing list<br>
          > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
            target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
          > <a
            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          > UNSUBSCRIBE:<a
            href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          > <a href="https://freeswitch.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
          <br>
          <br>
          <br>
          <br>
          ---------- Forwarded message ----------<br>
          From: Normando Hall via FreeSWITCH-users <<a
            href="mailto:freeswitch-users@lists.freeswitch.org"
            target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a>><br>
          To: <a href="mailto:freeswitch-users@lists.freeswitch.org"
            target="_blank" moz-do-not-send="true">freeswitch-users@lists.freeswitch.org</a><br>
          Cc: <br>
          Bcc: <br>
          Date: Mon, 21 Sep 2020 13:48:47 -0700 (PDT)<br>
          Subject: Re: [Freeswitch-users] How to Answer a Call from ESL
          java<br>
_________________________________________________________________________<br>
          <br>
          The FreeSWITCH project is sponsored by SignalWire <a
            href="https://signalwire.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://signalwire.com</a><br>
          Enhance your FreeSWITCH install with disruptive priced SMS and
          PSTN services.<br>
          Build your next product on our scalable cloud platform.<br>
          <br>
          Join our online community to chat in real time <a
            href="https://signalwire.community" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://signalwire.community</a><br>
          <br>
          Professional FreeSWITCH Services<br>
          <a href="mailto:sales@freeswitch.com" target="_blank"
            moz-do-not-send="true">sales@freeswitch.com</a><br>
          <a href="https://freeswitch.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a><br>
          <br>
          Official FreeSWITCH Sites<br>
          <a href="https://freeswitch.com/oss" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com/oss</a><br>
          <a href="https://freeswitch.org/confluence" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.org/confluence</a><br>
          <a href="https://cluecon.com" rel="noreferrer" target="_blank"
            moz-do-not-send="true">https://cluecon.com</a><br>
          <br>
          FreeSWITCH-users mailing list<br>
          <a href="mailto:FreeSWITCH-users@lists.freeswitch.org"
            target="_blank" moz-do-not-send="true">FreeSWITCH-users@lists.freeswitch.org</a><br>
          <a
            href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
          UNSUBSCRIBE:<a
            href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
          <a href="https://freeswitch.com" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://freeswitch.com</a></blockquote>
      </div>
    </blockquote>
  </body>
</html>