[Freeswitch-users] How to play file into session not endlessly?

Chris Tunbridge blasterjr at gmail.com
Thu Feb 26 15:25:30 MSK 2015


bordmi i use playAndGetDigits from lua as an IVR and i can capture digits
while the files are playing.  If you're having trouble collecting the
digits make sure you're receiving info or rfc2833 DTMF if its inband, make
sure to do start_dtmf first.

On Mon, Feb 23, 2015 at 2:13 PM, Борисов, Дмитрий / Dmitriy Borisov <
bordmi at rarus.ru> wrote:

> No-no-no, session:playAndGetDigits don`t work with DTMF in the time of
> playing.
>
> session:setInputCallback + session:streamFile solves my problem. A little
> bad thing: I couldn`t send a parameters to callback, but this is not very
> bad for me.
>
> 2015-02-20 1:29 GMT+03:00 Bote Man <bote_radio at botecomm.com>:
>
>> It is possible that play_and_get_digits will do what you wish.
>>
>>
>>
>> https://freeswitch.org/confluence/display/FREESWITCH/play+and+get+digits
>>
>>
>>
>> Bote
>>
>>
>>
>>
>>
>> *From:* Dmitriy Borisov
>> *Sent:* Thursday, 19 February, 2015 10:50
>> *Subject:* [Freeswitch-users] How to play file into session not
>> endlessly?
>>
>>
>>
>> I have next task: play sound file list to session only once. Callee must
>> to control session by DTMF. Session must to hangup when sound file list are
>> played if no keys a pressed by callee.
>>
>>
>>
>> Session is created and controlled by Lua.
>>
>>
>>
>> How?
>>
>>
>>
>> --
>>
>> with best regards,
>>
>> Dmitriy Borisov
>>
>> _________________________________________________________________________
>> 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
>>
>
>
>
> --
> with best regards,
> Dmitriy Borisov
>
> _________________________________________________________________________
> 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/20150226/2c0c49ee/attachment.html 


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