Hi Adam,
were Almost there!!
with your latest piece, I was able to click on the phone number and now its going to the call.php with the phone number in the GET vars.
I also completed the Admin action for the server configuration is stored with
Variable::set
Now I have encountered two issues which I can't figure out.
1. in my call.php, I am getting an error:
Fatal error: Class 'Variable' not found in call.php on line 2
the code is simple:
<?php
echo Variable::get('server_ip');
?>
What do I have to include to get the variable data?
2. In My->Settings->dialing, I have added additional fields (in the premium module code). how would I save this data? would I have to create a DB just to store each user's data? How would I call this data in call.php?
My current code for settings are:
public static function user_settings()
{
if(Acl::is_user()) {
return array(__('Dialing')=>array( array('name'=>'callid', 'label'=>__('Caller ID'), 'type'=>'text', 'param'=>30, 'default'=>'Caller ID' ),
array('name'=>'extension', 'label'=>__('Your Extension'), 'type'=>'text', 'param'=>25, 'default'=>'000')));
}
}
When this is finished, I will zip this module to share with you and give you a brief description what is going on in the background.
Thanks,
jjjj12212