[Freeswitch-users] Loop audio file with uuid_displace
Ciprian Dosoftei
ciprian.dosoftei at gmail.com
Tue Jul 17 23:19:17 UTC 2018
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180717/b344e0b1/attachment.html>
More information about the FreeSWITCH-users
mailing list