Hello,
I have problem to encrypt file thru asterisk PBX.
I can encrypt a file when using GnuPG from the command line. gpg -e -r cchla1021@yahoo.com record.gsm then tap enter.
It will generate record_mode.gsm.gpg encryption file.
But I failed to generate encryption file “record_mode.gsm.gpg” when I dial number 1234 into asterisk phone system.
/******************************************************* This is my simple test extensions_custom script: extensions_custom.conf
[from-internal-custom]
exten => 1234,1,SayDigits(1234)
exten => 1234,2,System(/var/lib/asterisk/sounds/dictate/test.pl)
exten => 1234,3,Wait(3)
exten => 1234,4,Hangup()
exten => h,1,Hangup()
/******************************************************* My simple perl testing script test.pl
#!/usr/bin/perl -w
Any input from everybody, I am greatly appreciate. I believe this small testing will also enlighten some people who wish to use GnuPG free open source for file encryption in asterisk system.
Problem still exist. It still fail to generate encryption file when I execute shell script as you recommend and dial number 1234 to execute shell script as below via asterisk pbx. If I execute shell script under console won’t have problem.
When you done all the above procedure, dial extension# 1234 to execute test1.sh script.
It should generate record_mode.gsm.gpg under this path “/var/lib/asterisk/sounds/dictate/” after phone hang up.