<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">now is by default, if you just use strftime. Try eval ${strftime()}</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif">Do you know how to print now in milliseconds like:</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><action application="set" data="var_name=${utcnow}"/><br></div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 9 Nov 2022 at 10:22, Antony Stone <<a href="mailto:Antony.Stone@freeswitch.open.source.it" target="_blank">Antony.Stone@freeswitch.open.source.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tuesday 08 November 2022 at 23:55:18, Gregor Nanger wrote:<br>
<br>
> Antony, would strftime [format_string] do the job?<br>
<br>
Quite possibly, provided I can find a value of "now" to format with it.<br>
<br>
> On Sat, 5 Nov 2022 at 21:48, Piotr Gregor wrote:<br>
> > Antony,<br>
> > <br>
> > This sounds like a job for a module, especially that you mentioned you<br>
> > would like to upload/send it somewhere and combine it with data from<br>
> > other services.<br>
> > You create a module that exports one or more applications, you can call<br>
> > them from dialplan.<br>
> > <br>
> > best,<br>
> > <br>
> > <br>
> > Piotr Gregor<br>
> > <br>
> > On Fri, Nov 4, 2022 at 7:30 PM Antony Stone wrote:<br>
> >> On Friday 04 November 2022 at 19:13:27, Brian West wrote:<br>
> >> > Antony,<br>
> >> > <br>
> >> > Maybe you can come to our next office hours?<br>
> >> <br>
> >> Er, what? Where are you?<br>
> >> <br>
> >> > On Fri, Nov 4, 2022 at 1:05 PM Antony Stone wrote:<br>
> >> > > On Friday 04 November 2022 at 18:25:21, Brian West wrote:<br>
> >> > > > I'd not recommend doing that, because every time you do a get var,<br>
> >> > > > you cause a pool allocation and doing this in a loop will make your<br>
> >> > > > session pool swell at the rate of whatever you're calling get_var<br>
> >> > > > on.<br>
> >> > > > Doing anything at all inline with the dialplan is not the right<br>
> >> > > > approach. your logic and info should be all external, keying off<br>
> >> > > > events either on ESL or custom modules you wrote.<br>
> >> > > <br>
> >> > > Hm, this sounds like an interesting and important conceptual aspect<br>
> >> > > of the way FreeSwitch works which I suspect I haven't fully "got".<br>
> >> > > <br>
> >> > > Can you point me at the documentation which explains this, for<br>
> >> > > people who are more used to procedural programming, and show how we<br>
> >> > > should be thinking about FreeSwitch dialplans instead?<br>
> >> > > <br>
> >> > > I'm certainly keen on using FreeSwitch in as efficient a manner as<br>
> >> > > possible :)<br>
> >> <br>
> >> Antony.<br>
<br>
-- <br>
<flopsie> yes, but this is #lbw, we don't do normal<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div><div dir="ltr"></div>
</div>