[Freeswitch-users] Loop audio file with uuid_displace

David Villasmil david.villasmil.work at gmail.com
Thu Jul 19 03:22:25 UTC 2018


This did the trick for me:

uuid_displace c5e85793-6b3f-42d3-8291-9002e084f873  start
/usr/share/freeswitch/sounds/music/8000/audio0.wav 0 loop

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337

ᐧ

On Wed, Jul 18, 2018 at 8:02 PM David Villasmil <
david.villasmil.work at gmail.com> wrote:

> Hey Cip,
> Haven't tested this yet, but:
>
> uuid_displace uuid start <file> 0 mux
>
> Looks like it would playback the file indefinitely. The downsize being a
> and b would hear themselves, but if there's only one leg, that might work.
>
> See you next week!
> David
>
> On Tue, Jul 17, 2018, 21:33 Ciprian Dosoftei <ciprian.dosoftei at gmail.com>
> wrote:
>
>> Hello everyone,
>>
>> I am looking for a way to execute uuid_displace in a fashion which would
>> loop the file indefinitely, til uuid_displace stop is invoked.
>>
>> The confluence page does not advertise such options:
>> https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-uuid_displace
>>
>> However, upon digging deeper in the switch_ivr_displace_session function
>> (switch_ivr_async.php), it appears the last parameter of the command
>> (flags) is parsed somewhat different than suggested in the confluence page,
>> namely it would set bug's user data loop member to a non-zero value if the
>> 'l' character is found in the flags argument:
>>
>> if (flags && strchr(flags, 'l')) {
>> dh->loop++;
>> }
>>
>> Subsequently, the displacement callback (read and write) do account for
>> the user data loop member when they are being invoked (i.e. evaluated in if
>> (dh->loop) statements), which suggest the looping feature/flag should be
>> supported. Nonetheless, I could not get it working by specifying 'l' as
>> uuid_displace fifth parameter.
>>
>> Any advice is appreciated! See you all next week in Chicago!
>>
>> -Ciprian
>>
>> --
>> Best Regards,
>> Ciprian Dosoftei
>>
>> The information transmitted is intended only for the addressee and may
>> contain privileged and/or confidential material. If you are not the
>> intended recipient, kindly contact the sender and delete the message.
>>
>> Any disclosure, distribution or copying of this message is strictly
>> prohibited without the expressed permission of the sender.
>> _________________________________________________________________________
>> 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/20180718/ef3bcfd6/attachment.html>


More information about the FreeSWITCH-users mailing list