<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>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.</div><div><br></div><div>The confluence page does not advertise such options: <a href="https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-uuid_displace">https://freeswitch.org/confluence/display/FREESWITCH/mod_commands#mod_commands-uuid_displace</a></div><div><br></div><div>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:</div><div><br></div><div><span style="white-space:pre">  </span>if (flags && strchr(flags, 'l')) {</div><div><span style="white-space:pre">            </span>dh->loop++;</div><div><span style="white-space:pre">        </span>}</div><div><br></div><div>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.</div><div><br></div><div>Any advice is appreciated! See you all next week in Chicago!</div><div><br></div><div>-Ciprian</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Best Regards,<br>Ciprian Dosoftei<br><br>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.<br><br>Any disclosure, distribution or copying of this message is strictly prohibited without the expressed permission of the sender.</div></div>