[Freeswitch-users] Music on hold still plays after answering a call by ESL Inbound from external Node script

David Villasmil david.villasmil.work at gmail.com
Mon May 27 10:19:52 UTC 2019

Glad we could “help” by being a sound board :)

On Mon, 27 May 2019 at 11:48, Euan Millar <euan at ensemblepourladifference.org>

> Ha ha!  As soon as I ask for help, I figured it out.  The answer was here:
> https://freeswitch.org/confluence/display/FREESWITCH/mod_event_socket
> "If you would like to handle incoming calls using inbound mode, you
> should add the *park* command to your dialplan. Otherwise the dialplan
> might complete executing before your client can send commands to the event
> socket."
> Thanks anyway and sorry to bother you.
> All the best,
> Euan
> On Mon, May 27, 2019 at 9:43 AM Euan Millar <
> euan at ensemblepourladifference.org> wrote:
>> Hello kind Freeswitch mailing group!
>> I am using ESL to control my calls entirely from a Node application.
>> I am using the 'modesl <https://github.com/englercj/node-esl>' package
>> to create an ESL connection and listen to the FS events
>> <https://freeswitch.org/confluence/display/FREESWITCH/Event+List> and
>> then answer a call if the number matches a dialplan I want to control using
>> the mod_command "uuid_answer."
>> However, when my script answers a call, the music on hold plays in the
>> background, even if I control the channel and am able to play other IVR
>> audio in the call. As soon as my desired IVR commands complete, the music
>> on hold returns in between, and it is quite annoying to hear small snippets
>> of music.  Eventually the call hangs up.
>> I am thinking that maybe the call has not actually been answered properly
>> and that FS thinks that it is in fact on hold, and eventually hangs up on
>> it, even though my script appears to have "answered" the call.
>> Can anyone shed any light on this?  I think that I am doing
>> something wrong.  I had tried to get an Outbound
>> <https://freeswitch.org/confluence/display/FREESWITCH/Event+Socket+Outbound>
>> connection to my Node script but it was receiving no events so didn't know
>> when to answer.  The only way I could detect and answer the call was by
>> using the Inbound approach to listen to events.
>> I would be very grateful if anyone could give me some advice on this if
>> you recognise my issue.
>> Kind regards,
>> Euan
> --
> Euan Millar
> Ensemble Pour La Difference <http://www.ensemblepourladifference.org>
> c/o Mindspace 4th Floor
> 114 Whitechapel High Street
> <https://maps.google.com/?q=114+Whitechapel+High+Street+London+E1+7PT+United+Kingdom&entry=gmail&source=g>
> London
> <https://maps.google.com/?q=114+Whitechapel+High+Street+London+E1+7PT+United+Kingdom&entry=gmail&source=g>
> E1 7PT
> <https://maps.google.com/?q=114+Whitechapel+High+Street+London+E1+7PT+United+Kingdom&entry=gmail&source=g>
> United Kingdom
> <https://maps.google.com/?q=114+Whitechapel+High+Street+London+E1+7PT+United+Kingdom&entry=gmail&source=g>
> Mobile: +44 (0)7557 394986
> _________________________________________________________________________
> 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


David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20190527/bee58aa5/attachment-0001.html>

More information about the FreeSWITCH-users mailing list