[Freeswitch-users] Current timestamp variable in dialplan?
Antony.Stone at freeswitch.open.source.it
Wed Nov 2 15:46:24 UTC 2022
On Wednesday 02 November 2022 at 16:12:22, Brian West wrote:
> 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.
No, this is nothing to do with billing.
I'm basically just looking for the same value which would be logged in a
verbose logfile output against each dialplan action.
> On Wed, Nov 2, 2022 at 9:55 AM Antony Stone 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.
I own three Windows books, published by O'Reilly. They are "Windows
Annoyances", "Office 97 Annoyances" and "Windows 98 Annoyances". That pretty
much sums it up for me.
Please reply to the list;
please *don't* CC me.
More information about the FreeSWITCH-users