Find Jobs
Hire Freelancers

Asterisk PBX PHP Scripts Part 1

$30-250 USD

进行中
已发布超过 14 年前

$30-250 USD

货到付款
I need a script written using PHPAGI that can be called from Asterisk Dialplan. A datetime string will appear as YYYYMMDDHHMMSS. (Year,Month,Days,Hour,Minute and Seconds). 1. Function SubDate() - This function will Subtract two datetime variables and return a number of seconds, minutes, hours, days or a new datetime string. It should be able to handle leap years. Example: SubDate(datetime1, datetime2,seconds|minutes|hours|days|datetime) 2. Function AddDays() - This function will add days to a datetime string and return a new datetime string. AddDays(datetime, increment) 3. Function AddHour() - This function will add 'X' hours to a datetime string. Example: AddHour(datetime, increment) 4. Function AddMin() - This function will add 'X'minutes to a datetime sting. Example: AddMin(datetime, increment). These are not related to datetime: 5. Function AddFile(<file1> TO <file2>) - This function will concatenate <file1> to the end of <file2>. File1 or 2 will be full path to files including extension. File will be voice files such as .wav, .gsm or ulaw. 6. CopyFile(<file1> TO <file2>) - This function will copy a file1 to file2. 7. DeleteFile(<file>) - This function will delete a file - The name will be the full path to file. 8. ListFiles(<pattern> TO <Database-table> - This function will add to table any files that match pattern. Table fields are file including path, file size, file datetime. Pattern could be var/lib/asterisk/sounds/custom/*.* for example. 9. Lower(string) - This function will convert string or parts of string to lower case. Example Lower("My Name Is Bart") to "my name is bart" 10. MakeDir(<directory>) - This function will create a new directory 11. PrintFile(<message>) - This function will print <message> to printer. 12. ReadFile([-b] <ascii file TO <table>) - this function will read an ascii file to a table. It's assumed that ascii file is delimited with ','. However if -b is used, then it will be delimited with space. The table will already exist. 13 RemoveDir([-r] <directory>) - This function will remove a directory. If -r is set, then it will remove recursively. 14. RenameFile(<file1 TO <file2>) - This function will rename an existing file. 15. Upper(string) - This function convert a string to all upper case. I think that's all :) Bart
项目 ID: 509447

关于此项目

7提案
远程项目
活跃15 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED STATES的国旗
Buena Park, United States
5.0
46
会员自1月 28, 2009起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。