On Wednesday 09 November 2022 at 20:23:50, Brian West wrote:
All of this is already present in the XML CDR, each action, every step all time stamped down to microseconds and more accurate than setting variables. Did you happen to load xml_cdr and do a call and see the information?
I have not done that yet, no; I have been busy with other things, but in the meantime I simply wanted to answer Gregor's questions as far as I could. Antony.
On Wed, Nov 9, 2022 at 10:08 AM Antony Stone wrote:
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@195.51.100.56 set(now=2022-11-09 14:00:23.679399)
I then have a variable ${now} which I can use later.
-- Heisenberg, Gödel, and Chomsky walk in to a bar. Heisenberg says, "Clearly this is a joke, but how can we work out if it's funny or not?" Gödel replies, "We can't know that because we're inside the joke." Chomsky says, "Of course it's funny. You're just saying it wrong." Please reply to the list; please *don't* CC me.