On Sun, 2005-12-25 at 01:08 +0100, Pisac wrote: > How to pass some parameters to shell script, invoked in CLI through > application system(...)? > > I want to do some logging of incoming CID-s to file. Is there some other > method to do this?
Other than through system? Or did you want information on using system to do this? You could do system(echo some parameters>>/some/logfile) if in ael odds are you will need to escape the / marks with \ (ie \/some \/logfile) If you want another way to log specific data and only that data to a file, you can call an AGI to do it, you can write a logging module for asterisk, there may be other ways as well but that is the first that comes to mind. -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 http://www.sacaug.org/ Sacramento Asterisk Users Group
signature.asc
Description: This is a digitally signed message part
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
