[Freeswitch-users] How to Answer a Call from ESL java

Ehtasham Ul-Haq ehtasham.malik at expertflow.com
Tue Sep 22 17:41:18 UTC 2020


Thanks, Normando,
Actually we are dialing from SIP Phone A  to SIP-Phone-B, by directly
calling the extension. We are not calling form outside.

Malik Ehtasham, Lead ProjDev

WWW:[image: domain2.png].expertflow.com <http://www.expertflow.com/>
 FB: [image:
FB-f-Logo__blue_29.png]/Expertflow <https://www.facebook.com/Expertflow>
  LinkedIn: [image: linkedIn.png]    /company/expertflow
<https://www.linkedin.com/company/expertflow> Youtube:  [image:
YouTube-social-square_red_128px.png]/user/expertflow
<https://www.youtube.com/user/expertflow> Twitter:  [image: twitter.JPG]
/Expertflow <https://twitter.com/Expertflow>
361 Model Town Lahore Pakistan ; Mobile +92 3347815664,+92 334 4853664;
email, Cisco Spark and Google Talk: ehtasham.malik at expertflow.com
<andreas.stuber at expertflow.com>; Skype:
<http://andreas.stuber.expertflow.com/>*shani.awan3*


On Tue, Sep 22, 2020 at 9:48 PM Normando Hall via FreeSWITCH-users <
freeswitch-users at lists.freeswitch.org> wrote:

>
>
>
> ---------- Forwarded message ----------
> From: Normando Hall <nhall at unixlan.com.ar>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Tue, 22 Sep 2020 13:08:22 -0300
> Subject: Re: [Freeswitch-users] How to Answer a Call from ESL java
>
> Of course, after you have handled park call, answer it or bridge or
> transfer to destination
> El 22/09/2020 a las 01:05 p. m., Normando Hall escribió:
>
> Hello Malik
>
> It is strange. Can you chare you dialplan extension where you park the
> incoming call?
>
> I asume you are subscribed for all events and listen for park.
>
> This is my public dialplan extension:
>
> <include>  <extension name="IVR_FXO">    <condition field="destination_number" expression="^(66[78][0-9])$">      <action application="park"/>    </condition>  </extension></include>
>
> The in my js code (snipet)
>
>     conn.on(Events.RECEIVED, event => {      const eventName = event.getHeader('Event-Name');      if(eventName != null){        const uuid = event.getHeader('Caller-Unique-ID');        let callerNumber = event.getHeader('Caller-ANI');        if(debug) callerNumber = '4275595'        const context = event.getHeader('Caller-Context');        const destination = event.getHeader('Caller-Destination-Number');        const callDirection = event.getHeader('Call-Direction');        const internal = event.getHeader('variable_sip_user_agent');        //logger.info(eventName)        switch (eventName) {          case ChannelEvents.HANGUP:            const hangupCause = event.getHeader('Hangup-Cause');            helpers.delChannel(uuid);            //logger.info(hangupCause + ' ' + uuid)          break;          *case* *ChannelEvents**.**PARK**:*            //logger.info("ID: " + uuid + "\nNumero: " + callerNumber + "\nContexto: " + context + "\nDestino: " + destination + "\nTipo: " + callDirection + "\nInterno: " + internal + "\n"); .....
>
>
>
> El 22/09/2020 a las 06:38 a. m., Ehtasham Ul-Haq escribió:
>
> Hello Normando,
> Thanks for your Answer,
> However, when we park the callee, the call got disconnected.
>
> Malik Ehtasham, Lead ProjDev
>
> WWW:[image: domain2.png].expertflow.com <http://www.expertflow.com/>
>    FB: [image: FB-f-Logo__blue_29.png]/Expertflow
> <https://www.facebook.com/Expertflow>   LinkedIn: [image: linkedIn.png]
>    /company/expertflow <https://www.linkedin.com/company/expertflow>
> Youtube:  [image: YouTube-social-square_red_128px.png]/user/expertflow
> <https://www.youtube.com/user/expertflow> Twitter:  [image: twitter.JPG]
> /Expertflow <https://twitter.com/Expertflow>
> 361 Model Town Lahore Pakistan ; Mobile +92 3347815664,+92 334 4853664;
> email, Cisco Spark and Google Talk: ehtasham.malik at expertflow.com
> <andreas.stuber at expertflow.com>; Skype:
> <http://andreas.stuber.expertflow.com/>*shani.awan3*
>
>
> On Tue, Sep 22, 2020 at 1:48 AM Normando Hall via FreeSWITCH-users <
> freeswitch-users at lists.freeswitch.org> wrote:
>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Normando Hall <nhall at unixlan.com.ar>
>> To: freeswitch-users at lists.freeswitch.org
>> Cc:
>> Bcc:
>> Date: Mon, 21 Sep 2020 17:14:17 -0300
>> Subject: Re: [Freeswitch-users] How to Answer a Call from ESL java
>> Hi.
>>
>> If you are using inbound ESl, you must park the call in your dialplan,
>> and listen for "park" event in your ESL code. Then answer this call
>>
>> Regards
>>
>> El 21/09/2020 a las 04:38 p. m., Malik Ehtasham escribió:
>> > Hello,
>> > I want to answer the call from my web application. For Example, SIP
>> Phone 1,
>> > dial a call to SIP Phone B, now Phone B is ringing, now I want to
>> answer the
>> > call on Phone B, via my Web Interface, so there is a button on my
>> interface
>> > to answer the call.
>> > To answer the call I am executing the below command, but this doesn't do
>> > anything and the call keeps on ringing on phone B. Any
>> >
>> > EslMessage response =
>> > client.sendSyncApiCommand("uuid_answer",Event_Header.get("Unique-ID"));
>> >
>> >
>> >
>> > --
>> > Sent from: http://freeswitch-users.2379917.n2.nabble.com/
>> >
>> >
>> _________________________________________________________________________
>> >
>> > The FreeSWITCH project is sponsored by SignalWire
>> https://signalwire.com
>> > Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> > Build your next product on our scalable cloud platform.
>> >
>> > Join our online community to chat in real time
>> https://signalwire.community
>> >
>> > Professional FreeSWITCH Services
>> > sales at freeswitch.com
>> > https://freeswitch.com
>> >
>> > Official FreeSWITCH Sites
>> > https://freeswitch.com/oss
>> > https://freeswitch.org/confluence
>> > https://cluecon.com
>> >
>> > FreeSWITCH-users mailing list
>> > FreeSWITCH-users at lists.freeswitch.org
>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> > UNSUBSCRIBE:
>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>> > https://freeswitch.com
>>
>>
>>
>>
>> ---------- Forwarded message ----------
>> From: Normando Hall via FreeSWITCH-users <
>> freeswitch-users at lists.freeswitch.org>
>> To: freeswitch-users at lists.freeswitch.org
>> Cc:
>> Bcc:
>> Date: Mon, 21 Sep 2020 13:48:47 -0700 (PDT)
>> Subject: Re: [Freeswitch-users] How to Answer a Call from ESL java
>> _________________________________________________________________________
>>
>> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
>> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
>> services.
>> Build your next product on our scalable cloud platform.
>>
>> Join our online community to chat in real time
>> https://signalwire.community
>>
>> Professional FreeSWITCH Services
>> sales at freeswitch.com
>> https://freeswitch.com
>>
>> Official FreeSWITCH Sites
>> https://freeswitch.com/oss
>> https://freeswitch.org/confluence
>> https://cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> https://freeswitch.com
>
>
>
>
> ---------- Forwarded message ----------
> From: Normando Hall via FreeSWITCH-users <
> freeswitch-users at lists.freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc:
> Bcc:
> Date: Tue, 22 Sep 2020 09:48:12 -0700 (PDT)
> Subject: Re: [Freeswitch-users] How to Answer a Call from ESL java
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200922/0300c286/attachment-0001.html>


More information about the FreeSWITCH-users mailing list