Re: [asterisk-dev] ast_safe_system() from within chan_sip.c

2016-02-22 Thread Jaco Kroon
Hi, And please keep in mind that SIP calls (in asterisk 11 at least) are very much serialized and you're going to affect the response times to SIP frames by introducing extra work there - really do look at the ASF. Frankly, if you're after what I think you're after, I've been parsing the logs for

Re: [asterisk-dev] ast_safe_system() from within chan_sip.c

2016-02-22 Thread Scott Griepentrog
​> unsuccessful register count Why not use the security event logging system instead? Would be easier than modifying chan_sip, and less prone to introducing undesired side affects by inserting a system call. https://wiki.asterisk.org/wiki/display/AST/Asterisk+Security+Framework ​ On Mon, Feb 2

[asterisk-dev] ast_safe_system() from within chan_sip.c

2016-02-22 Thread Pedro Guillem [e-Mediate]
Hi Folks I haven´t used C in a decade so i´m kind of rusty, but I understand the advanced basics of it. I know there is a function called ast_safe_system() declared on asterisk.c used to perform system calls. I need chan_sip.c to call a local program each time a registration is unsuccessful.