[Freeswitch-users] Current timestamp variable in dialplan?
Antony Stone
Antony.Stone at freeswitch.open.source.it
Wed Nov 9 15:45:03 UTC 2022
On Wednesday 09 November 2022 at 15:49:04, Gregor Nanger wrote:
> What does ${regex(${system date '+%F %T.%6N'}|(.+)|%1)} returns? If I try
> it in CLI I don't get anything.
I haven't tried it in the CLI - I need it in the dialplan.
The log output of that shows me:
[2022-11-09 14:00:23.682026]
helen eac89f23-fd7b-4514-b473-a3effb857b84
2022-11-09 14:00:23.663775 89.47%
[INFO] switch_core_session.c:2897
EXECUTE [depth=0] sofia/trunk/0x3x1x2x0x0 at 195.51.100.56
set(now=2022-11-09 14:00:23.679399)
I then have a variable ${now} which I can use later.
Antony.
--
"Life is just a lot better if you feel you're having 10 [small] wins a day
rather than a [big] win every 10 years or so."
- Chris Hadfield, former skiing (and ski racing) instructor
Please reply to the list;
please *don't* CC me.
More information about the FreeSWITCH-users
mailing list