[Freeswitch-users] mod_conference, endconf, execute_on_answer

Luis Daniel Lucio Quiroz luis.daniel.lucio at gmail.com
Thu Jun 11 17:20:22 MSD 2015


Yolu may use the esl to verify if call initiator is still logged.
On Jun 11, 2015 07:22, "René Weiss" <rw at panorgan.ch> wrote:

> Hi
>
> I have setup an outbound conference which ends automaticly if the
> initiator leaves thanks to the "endconf" flag.
>
> Now I got an new requirement:
>
> The called participants shold not automaticly join the conference,
> but instead the system should first play an audio file like "this is a
> conference call, press 9 to enter", and only after pressing "9" they
> should be added to the conference.
>
> I solved this (mostly) with "execute_on_answer" and a lua script:
>
> ---
> repeat
>      digits = session:playAndGetDigits(1, 1, 3, 3000, "#", "audio.wav",
> "", "[9]")
> until digits == "9"
> ---
>
> The only problem is now that when the initiator hangs up while this
> script is running the call/conference doesn't end.
>
> In my tests the call continued like nothing happend, and after pressing
> "9" the participant was still redirect to the conference where he was
> now the only member.
>
> Any ideas how to solve this?
>
> Thanks.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.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
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150611/c9aaece4/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list