Re: [asterisk-users] Fail2ban for asterisk 16 PJSIP

2019-06-07 Thread John T. Bittner
Hopefully, this helps someone else. This seems to be working for me. # Fail2Ban configuration file [INCLUDES] #before = common.conf [Definition] failregex = NOTICE.* .*: Request \'REGISTER\' from '.*' failed for ':.*' .* - No matching endpoint found NOTICE.* .*: Request \'REGISTER\'

[asterisk-users] HANGUPCAUSE() not working in PJSIP for failed calls

2019-06-07 Thread Kingsley Tart - Barritel
Hi, This is using Asterisk certified/13.21-cert2, FWIW. I have a hangup handler on an outgoing SIP channel that grabs the SIP status like this: NoOp(keys=${HANGUPCAUSE_KEYS()} sipmsg=${HANGUPCAUSE(${CHANNEL},tech)}) This works fine if the call connects to the other end but the caller for

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: We're using Perl and so far I haven't found an equivalent there. On Thu, 6 Jun 2019, Steve Edwards wrote: I'm not much of a Perl programmer... But you should never turn down an opportunity to develop your skills :) Try something like:

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: What language is that please? C. We're using Perl and so far I haven't found an equivalent there. I'm not much of a Perl programmer, but I'd guess something like: $AGI->result or $AGI->lastresult might yield clues. -- Thanks

Re: [asterisk-users] Find out which key ended recording?

2019-06-07 Thread Steve Edwards
On Fri, 7 Jun 2019, David Cunningham wrote: We're using Perl and so far I haven't found an equivalent there. On Thu, 6 Jun 2019, Steve Edwards wrote: I'm not much of a Perl programmer... But you should never turn down an opportunity to develop your skills :) Try something like: