[Freeswitch-users] Current timestamp variable in dialplan?

Brian West brian at freeswitch.com
Wed Nov 2 15:12:22 UTC 2022


Are you trying to do something like billing? If so using variables or
anything getvar related will result in pool swell.

Billing is out of band, or inband with things like nibble bill, which is
just an implementation of a core idea of being able to nibble from a
balance using the session heartbeats.

/b



On Wed, Nov 2, 2022 at 9:55 AM Antony Stone <
Antony.Stone at freeswitch.open.source.it> wrote:

> Hi.
>
> I'm looking for a variable I can access in the dialplan (I use XML if it
> matters) which will tell me the current time (when I read the variable) in
> the
> format 2022-11-02 12:34:56.789789
>
> If that's not available, but a microsecond-resolution Epoch timestamp is,
> what
> would be the function to convert this to the above human format?
>
> https://freeswitch.org/confluence/display/FREESWITCH/Switch+core+variables
> tells me about variables which are set after a channel is hung up, so
> they're
> no use during call setup, and
>
> https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables
> doesn't
> seem to have anything which represents "now".
>
>
> Can anyone suggest where I should be looking to find such variables?
>
>
> Thanks,
>
>
> Antony.
>
> --
> There's no such thing as bad weather - only the wrong clothes.
>
>  - Billy Connolly
>
>                                                    Please reply to the
> list;
>                                                          please *don't* CC
> me.
>
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> 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



-- 

Brian West | Co-founder and Developer

Need Commercial support? email sales at freeswitch.com

FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045
<https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>

Email: brian at freeswitch.com

Mobile: 918-424-9378

Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>

[image: https://www.facebook.com/signalwireinc?src=email]
<https://www.facebook.com/freeswitch> [image:
https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20221102/8dc46fc5/attachment.html>


More information about the FreeSWITCH-users mailing list