I have Drupal 4.7 installed, then I download Asterisk integration package from http://drupal.org/node/31142/, install it as written in INSTALL.txt. But when I open my information page ( http://192.168.0.13/drupal/?q=user/1/edit ) I get an error
Fatal error: Call to undefined function: form_textfield() in /usr/local/apache/htdocs/drupal/modules/asterisk/asterisk.module on line 762

Also, when I press "my calls" link ( http://192.168.0.13/drupal/?q=user/1/calls ) I get an error
Fatal error: Call to undefined function: tablesort_pager() in /usr/local/apache/htdocs/drupal/modules/asterisk/asterisk.module on line 1070

Also at administration section there is a big error message:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE u.uid = 1' at line 2 query: SELECT COUNT(*) FROM asterisk_callqueue a INNER JOIN users u USING(uid) WHERE caller_number != 'system' AND callee_number != 'system'AND WHERE u.uid = 1 in /usr/local/apache/htdocs/drupal/includes/database.mysql.inc on line 120.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE u.uid = 1 ORDER BY dispatch_time ASC LIMIT 0, 30' at line query: SELECT a.*, u.name FROM asterisk_callqueue a INNER JOIN users u USING(uid) WHERE caller_number != 'system' AND callee_number != 'system'AND WHERE u.uid = 1 ORDER BY dispatch_time ASC LIMIT 0, 30 in /usr/local/apache/htdocs/drupal/includes/database.mysql.inc on line 120.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE u.uid = 1' at line 2 query: SELECT COUNT(*) FROM asterisk_callqueue a INNER JOIN users u USING(uid) WHERE caller_number != 'system' AND callee_number != 'system'AND WHERE u.uid = 1 in /usr/local/apache/htdocs/drupal/includes/database.mysql.inc on line 120.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE u.uid = 1 ORDER BY dispatch_time ASC LIMIT 0, 30' at line query: SELECT a.*, u.name FROM asterisk_callqueue a INNER JOIN users u USING(uid) WHERE caller_number != 'system' AND callee_number != 'system'AND WHERE u.uid = 1 ORDER BY dispatch_time ASC LIMIT 0, 30 in /usr/local/apache/htdocs/drupal/includes/database.mysql.inc on line 120.

,
though I created the neccessary tables for Asterisk in Drupal database as it was written in installation manual... =(

What could be done with it?

Comments

Chris Johnson’s picture

Category: bug » feature

Asterisk has not been updated to be compatible with Drupal 4.7. For example, the form_textfield() call is a Drupal 4.6 form function, which is not used in the Forms API that was part of the Drupal 4.7 release.

Changing category to "feature request" where the requested feature is a 4.7 compatible branch.

hunmonk’s picture

Status: Active » Fixed

module has been updated to 4.7--use the HEAD version of the module for now--i'll make a 4.7 branch when appropriate.

Anonymous’s picture

Status: Fixed » Closed (fixed)