Project Detail

Asterisk PBX PHP Scripts Part 1  

Asterisk PBX PHP Scripts Part 1 is project number 509447
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: AlexandrGevlich

Budget: $30-250

Created: 09/16/2009 at 11:02 EDT

Bid Count: 8

Average Bid:
N/A

09/21/2009 at 11:02 EDT

Project Creator: icpage
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (20 reviews)

Bid On This Project
 

Description

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

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project