ARI DB-based login


#1

Hello. I’m not sure if this is the right forum for thsi type of question. please let me know where I should post this instead.

I’ve been asked to modify the ARI CallMonitor module. The requirements are to allow users to login using their telephone number and an assigned password.

To achieve this, I’ve added a users table to the asteriskcdrdb. Now, I need to access this from the login class. I modified that class to access the users table, the same way they do in the CallMonitor module. But now I get an error:

Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition db_mysql of the object you are trying to operate on was loaded before the session was started in /var/www/html/aaa/includes/login.php on line 234

I’m not at all familiar with ARI or Asterisk. In fact, what dopes ARI stand for? I’m guessing Asterisk Remote Interface.

Can anyone help?

Thanks,

  • AAA