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

Normando Hall nhall at unixlan.com.ar
Tue Sep 22 16:08:22 UTC 2020


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:domain2.png.expertflow.com <http://www.expertflow.com/>   FB:
>> FB-f-Logo__blue_29.png/Expertflow
>> <https://www.facebook.com/Expertflow>  LinkedIn:
>> linkedIn.png   /company/expertflow
>> <https://www.linkedin.com/company/expertflow>Youtube:
>>  YouTube-social-square_red_128px.png/user/expertflow
>> <https://www.youtube.com/user/expertflow>Twitter:
>>  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 <mailto: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
>> <mailto:freeswitch-users at lists.freeswitch.org>> wrote:
>>
>>
>>
>>
>>     ---------- Forwarded message ----------
>>     From: Normando Hall <nhall at unixlan.com.ar
>>     <mailto:nhall at unixlan.com.ar>>
>>     To: freeswitch-users at lists.freeswitch.org
>>     <mailto: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 <mailto: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
>>     <mailto: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
>>     <mailto:freeswitch-users at lists.freeswitch.org>>
>>     To: freeswitch-users at lists.freeswitch.org
>>     <mailto: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 <mailto: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
>>     <mailto: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/75796adf/attachment-0001.html>


More information about the FreeSWITCH-users mailing list