Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Jim Van Meggelen
Risto, I tried that out and it looks to be doing what it should! Thank you so much for generously taking your time to help me with this. I'm still trying to wrap my head around how contexts and descriptions and such connect it all together, but I am learning! Is there some way I can support

Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Risto Vaarandi
hi Jim, if you want to match the "ActivationHelp" event and react to the earliest "User entered" event, provided that these events share the same caller ID, you could use the following rule: type=PAIR desc=IVR caller $4 offered activation or statement inquiry ptype=RegExp action= write - $4 activ

Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Jim Van Meggelen
Risto, Absolutely. The following pattern should catch it: ^.*\[(20[234][0-9]-[0-9]{2}-[0-3][0-9])-([0-2][0-9]:[0-5][0-9]:[0-5][0-9]).*VERBOSE\[([0-9]{3,6})\]\[(C-[0-9a-f]{8})\].* pbx.c: Spawn extension \(.*\) exited non-zero on.* Here's a few lines leading up to it (interesting because her

Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Risto Vaarandi
hi Jim, can you provide an example of the log event that indicates the end of the call? kind regards, risto Kontakt Jim Van Meggelen () kirjutas kuupäeval N, 31. märts 2022 kell 15:45: > Risto, > > Thank you for the reply. > > You are correct that the C-[0-9a-f]{8} string uniquely identifies each

Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Jim Van Meggelen
Risto, Thank you for the reply. You are correct that the C-[0-9a-f]{8} string uniquely identifies each call, and is present on all log lines. We cannot safely assume the maximum call length; some calls could reasonably be 30 minutes or even more. We will be able to identify the end of call,

Re: [Simple-evcorr-users] Parsing Asterisk log files for downstream reporting - so far so good!

2022-03-31 Thread Risto Vaarandi
hi Jim, I do have couple of things in mind that might help addressing this issue, but before coming up with any suggestions, may I ask some questions? As I understand, the phone call is uniquely identified by the numeral that follows the C character (C-4037 in your example) which is present in