Created
December 19, 2018 03:18
-
-
Save ambiorixg12/8881f1f8f2be63fef49f5bbf23a48202 to your computer and use it in GitHub Desktop.
writting data from Asterisk file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file="/etc/asterisk/data.txt"; | |
$data=$argv[1]."\n"; | |
$data.="$argv[2]"; | |
file_put_contents("$file", $data,FILE_APPEND); | |
?> | |
Dial paln | |
[writting] | |
exten=>_1011,1,Noop() | |
same=>n,system(php /root/script_write.php ${CHANNEL} ${UNIQUEID}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment