Log of /contributions/modules/asterisk/asterisk.module
Parent Directory
|
Revision Log
|
Revision Graph
Revision
1.106 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 31 23:06:48 2008 UTC
(17 months, 3 weeks ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.105: +3 -3 lines
Diff to
previous 1.105
first steps at some intelligent debugging messages. small file perm change in install instructions.
Revision
1.100 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Nov 10 03:18:38 2007 UTC
(2 years ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.99: +105 -156 lines
Diff to
previous 1.99
more 6.x updates: hook_help(), hook_user(), hook_block(), .info file, file handling, rip out dead direct leap code, rip out dead call queue code.
Revision
1.96 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 16 07:37:11 2007 UTC
(2 years, 9 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.95: +4 -3 lines
Diff to
previous 1.95
added missing return in record attachment form. fixed misnamed validate/submit functions. module is now tested as working Drupal 5.
Revision
1.95 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 16 06:08:39 2007 UTC
(2 years, 9 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.94: +8 -5 lines
Diff to
previous 1.94
remove collapsible fieldset from server connection parameters. make asterisk server username a form item. small layout change to test server link.
Revision
1.94 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 16 05:18:04 2007 UTC
(2 years, 9 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.93: +124 -74 lines
Diff to
previous 1.93
update to Drupal 5 -- untested. Note that there will be no DRUPAL-4-7 branch for this module.
Revision
1.93 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Oct 27 18:12:44 2006 UTC
(3 years, 1 month ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.92: +2 -2 lines
Diff to
previous 1.92
temporary solution for wrong caller on audio block bug. not using the play for multiple users feature at the moment anyways, so i'll fully solve this issue when i refactor the code to properly support it via a form, probably.
Revision
1.92 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 24 04:44:22 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.91: +16 -10 lines
Diff to
previous 1.91
replace record filename validation with required form field. added callee number option to asterisk record file feature--allows call to be bridged to another number and optionally recorded.
Revision
1.91 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 24 03:04:24 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.90: +6 -5 lines
Diff to
previous 1.90
extended asterisk_call_number so that other variables in the call array can be passed. adjusted call block and user call feature to use new drupal-bridge context.
Revision
1.90 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 22 15:44:21 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.89: +27 -17 lines
Diff to
previous 1.89
fixed validation for the call block and the record attachment form. added file naming check for record attachment form.
Revision
1.86 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 20 04:14:48 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.85: +19 -2 lines
Diff to
previous 1.85
added record enable per node type feature. users w/ proper permissions who own a node(or call admins) whose type is enabled for recordings will be allowed to record.
Revision
1.82 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 17 22:15:28 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.81: +426 -379 lines
Diff to
previous 1.81
cleanup/updating of code doc. move caller/callee validation from asterisk_call to asterisk_send_calls. fixed bug in optional listing of recordings. moved the call block execution to fapi. added asterisk_user_has_number--helper function which checks to make sure that the current user has a number. changed asterisk_validate_playback_files to use fids instead of the asterisk server filename. fixed bad args in asterisk_call_user_page and asterisk_record_message.
Revision
1.81 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 16 05:48:20 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.80: +23 -31 lines
Diff to
previous 1.80
removed cruft and fixed bad variable assignment in asterisk_get_file_info. finished converting message playback to new push model--automatic uploading of uncached messages still untested. changes to asterisk_create_call_file to make it more universal and efficient.
Revision
1.80 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 16 04:27:23 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.79: +9 -1 lines
Diff to
previous 1.79
added asterisk_process_new_message, which routes the incoming message to the proper function based on message type. fixed bad file name in move from recording dir to cache. automatic upload of recordings is now working.
Revision
1.79 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 15 23:17:57 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.78: +25 -16 lines
Diff to
previous 1.78
hashed out the rest of the initial code for uploading recorded files, and picking up waiting messages for the new push model, including the first AGI script which handles that process--totally untested.
Revision
1.77 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 15 19:35:06 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.76: +18 -14 lines
Diff to
previous 1.76
fid->drupal_fid, nid->drupal_nid. added list option functionality to recording code--enables user to have the recording listed automatically (or not) upon file upload.
Revision
1.76 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 15 05:13:16 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.75: +11 -16 lines
Diff to
previous 1.75
added doc for placement of DRUPAL_INTEGRATION and DRUPAL_ACCOUNTS global variables. removed error messages from asterisk_record_submit--redundant. filename->drupal_filename. updated asterisk_record_message to the new push model. replaced periods with underscores for the asterisk username--periods conflict w/ filenaming. user->drupal_user. changed filepath for recorded file to user's recordings directory.
Revision
1.74 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 13 16:23:09 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.73: +68 -20 lines
Diff to
previous 1.73
added most of the code to support playback of files in the new push model--completely untested. changed xmlrpc name for passing calls to plural, since multiple calls can be passed now.
Revision
1.72 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 13 03:01:26 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.71: +112 -60 lines
Diff to
previous 1.71
completely revamped asterisk_call and related xmlrpc functions. calls are now put into an associative array by type, and each type can have multiple calls. integrated filename parameter into call array. fixed dispatch_time bugs. added write_ini_file function. added some initial code for processing of playback messages.
Revision
1.68 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 12 20:25:30 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.67: +14 -7 lines
Diff to
previous 1.67
asterisk_call and asterisk_write_call_file each missing a parameter. fixed error in determining default call status. added xmlrpc call to asterisk_call, and corrected the return value. asterisk_call had wrong args in asterisk_call_number. fixed missing error declaration in asterisk_call_number. changed 'host' to 'user' for file variables in call file--more consistent. is_dir requires full path name, and parse_ini_file needed sections arg in asterisk_validate_host. added asterisk_validate_user_directories, which checks for existence of a user's management dirs, and creates them if not found. asterisk_write_call_file missing doc, and proper defines for temp dir and call spool--also the unlink in that function was in the wrong place, which was generating a php error and causing malformed xmlrpc responses. added doxygen for asterisk_test_connection.
Revision
1.66 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Sep 12 17:42:54 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.65: +40 -23 lines
Diff to
previous 1.65
added test function for connection to Asterisk XML-RPC server. corrected doc and bad variable in asterisk_xmlrpc.php. coding style corrections in asterisk.module.
Revision
1.61 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 10 22:58:03 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.60: +368 -553 lines
Diff to
previous 1.60
first major rework of the module to a complete push model. If you want to test a working module, you might want to get the cvs revision previous to this one. :) completely removed the site list feature. added a perm for admin of call logs. updated the help text--it's going to need filled out again with new instructions. converted asterisk_call function to use a single array for an argument--more flexible. also, calls are now passed directly from asterisk_call to the Asterisk server if they are marked 'dispatched' (which is the default). converted all support functions to work w/ asterisk_call. removed asterisk_link. moved the record processing code to the record submit function. removed all of the old xmlrpc functions, and added a single ping function--this is how the Asterisk server will alert the Drupal site that it has messages waiting. Drupal will then query Asterisk for the messages, which is more secure if the Asterisk XML-RPC server is set up as recommended. removed asterisk_validate_user. added callback for the check messages XML-RPC call. removed asterisk_error. converted asterisk_upload_file to asterisk_save_file. converted asterisk_get_file_info to hand info directly to the call file code. removed asterisk_get_site_list. reworked asterisk_getnextinqueue. removed _asterisk_is_user_valid, asterisk_user_validate, and asterisk_authenticate_user. reworked the parameters for connection--user is now an automatically generated string based on the base url of the site, and the server parameter is gone. made url of the drupal xmlrpc server configurable. move the check for a user's phone number, and for access to node files, to asterisk_page. removed the instant upload recording code, and the old instant notification approach. removed asterisk_call_self_page. consolidated all user calls through asterisk_call_number. removed old cron code. moved creation of call files to the asterisk module--this now happens on the drupal side. commented out all of the user creation code on the asterisk side--not working. reworked the fetch_file function. reworked the asterisk_config.inc file to use defines, removed the auto directory generation, and added code doc. reworked asterisk_xmlrpc.php, added code doc and support functions for the xmlrpc call to write the call file.
Revision
1.60 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 9 18:35:10 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.59: +4 -4 lines
Diff to
previous 1.59
temporarily disabling the system calls. they don't appear to be working, and are causing problems with the current work on instant notification.
Revision
1.59 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 8 17:13:32 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.58: +9 -19 lines
Diff to
previous 1.58
added a 'call me' link to user's own user page--calls user and plays demo. removed all the automatic telephone number/pin stuff in the user edit form--seems unnecessary, and can result in faulty numbers being entered and called.
Revision
1.55 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 7 21:02:29 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.54: +2 -3 lines
Diff to
previous 1.54
fix bug in record attachment form--upload button was overwriting submit button. for now, made filename field not required--will fix up validation later.
Revision
1.54 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 7 20:53:53 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.53: +27 -5 lines
Diff to
previous 1.53
finished initial debugging of instant notification feature. working, but the xmlrpc responses to the drupal site still need work. reorganized how all the helper files are included on the asterisk server. added an instant notification button that allows users to upload recorded files right away--untested.
Revision
1.53 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Sep 7 07:24:08 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.52: +10 -4 lines
Diff to
previous 1.52
fixed the instant notification function, and a call to it. instant notification still isn't working, though.
Revision
1.50 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 3 13:31:36 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.49: +3 -3 lines
Diff to
previous 1.49
commenting out the link function for now--i think the node view option is a better implementation.
Revision
1.48 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Sep 3 13:22:04 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.47: +39 -36 lines
Diff to
previous 1.47
commented out all CiviCRM/Direct Leap functionality. this hasn't really gone anywhere, so it will probably either be removed in the future, or broken out into a seperate module.
Revision
1.46 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 2 15:14:19 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.45: +35 -1 lines
Diff to
previous 1.45
added a basic recording form for users own nodes that have the 'make calls' permission. this is very basic, and will need to be expanded/refactored probably.
Revision
1.44 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Sep 2 05:34:31 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.43: +2 -1 lines
Diff to
previous 1.43
strip the destination query from the fid before putting it in the call queue--it's screwing up the filenaming code.
Revision
1.41 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 31 06:25:22 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.40: +13 -12 lines
Diff to
previous 1.40
fixed fatal bug in .install file. get rid of USING clauses in favor on ON syntax. fixed return value for hook_user view op. fixed form/theme code for delete server table. fixed bad query build and cleaned up table display for call logs.
Revision
1.40 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Aug 31 01:46:04 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.39: +132 -41 lines
Diff to
previous 1.39
converted to form API. added output check. initial conversion of the module to 4.7 is complete--untested.
Revision
1.39 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Aug 30 06:53:26 2006 UTC
(3 years, 2 months ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.38: +53 -54 lines
Diff to
previous 1.38
conversion of module from drupal 4.6 -> 4.7. fapi conversion still remains--all other items should be complete.
Revision
1.28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 12 22:35:03 2005 UTC
(4 years, 1 month ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.27: +6 -2 lines
Diff to
previous 1.27
with permission from malthus. added urlencoding to acct number. included xmlrpc path in query string.
Revision
1.26 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 12 02:47:46 2005 UTC
(4 years, 1 month ago)
by
thehunmonkgroup
Branch:
MAIN
Changes since
1.25: +20 -3 lines
Diff to
previous 1.25
with permission from malthus. added user field for direct leap account number. added direct leap perm. added direct leap menu link and goto function
Revision
1.25 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 12 02:25:02 2005 UTC
(4 years, 1 month ago)
by
malthus
Branch:
MAIN
Changes since
1.24: +134 -1 lines
Diff to
previous 1.24
Request from Directleap
Functions:
grab_groups (account_id)
returns (group_id, group_name)
grab_numbers (account_id, group_id)
returns (numbers)
This patch exposes the requested data via the xmlrpc server.
Revision
1.23 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 9 03:07:15 2005 UTC
(4 years, 1 month ago)
by
malthus
Branch:
MAIN
Changes since
1.22: +49 -4 lines
Diff to
previous 1.22
Merged contributions from Leo Burd. Added functions to facilitate authenticating a user in a phone application by uid and telephone pin.
Revision
1.22 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 9 02:45:32 2005 UTC
(4 years, 1 month ago)
by
malthus
Branch:
MAIN
Changes since
1.21: +182 -29 lines
Diff to
previous 1.21
Added support for becoming a master asterisk/drupal site. If this feature is enabled, users will be able to input details of their drupal website that also uses the asterisk module. Thus this central site will maintain a list of sites to be queried for calls. In turn this is exported via an xmlrpc method which is called by the asterisk server that will actually make the calls.
There are also some assorted bugfixes.
Revision
1.19 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 5 21:44:56 2005 UTC
(4 years, 1 month ago)
by
malthus
Branch:
MAIN
Changes since
1.18: +2 -2 lines
Diff to
previous 1.18
Changed the call user page from asterisk_calluser to asterisk_call. asterisk_calluser() should be used when connecting a user to an IVR
Revision
1.15 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Oct 2 07:12:41 2005 UTC
(4 years, 1 month ago)
by
malthus
Branch:
MAIN
Changes since
1.14: +111 -23 lines
Diff to
previous 1.14
Added to implementation of hook_user. User creation and updates are forwarded to the aserisk server as well. This means that drupal users can reigster (via iax) to the asterisk server that is querying the call queue of the drupal installation. User can thus use iax://username as their phone number. They will need to install and configure a iax client. The username is their drupal username and their pass is their configured telephone pin. This probably won't work with distributed auth users (eg, username@example.com). This will be investigated and fixed if necessary.
Several small fixes.
Revision
1.14 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Sep 23 23:24:05 2005 UTC
(4 years, 2 months ago)
by
malthus
Branch:
MAIN
Changes since
1.13: +11 -3 lines
Diff to
previous 1.13
Made it compatible with drupal 4.6 again. The asterisk_cron.php is _not_ currertly compatible with common.inc from 4.6
Revision
1.12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Sep 21 19:30:44 2005 UTC
(4 years, 2 months ago)
by
malthus
Branch:
MAIN
Changes since
1.11: +118 -13 lines
Diff to
previous 1.11
Added 2 blocks
1. List audio files. When clicked calls user and plays audio file.
2. Call number. Input number and click to call.
General bugfixing.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.