I have tried the account lock and seems it doesn't work. here is the CLI output.
Quote:
Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
-- <SIP/000000000-08391000> Playing 'digits/minus' (language 'en')
-- <SIP/000000000-08391000> Playing 'digits/1' (language 'en')
-- <SIP/000000000-08391000> Playing 'digits/minus' (language 'en')
-- <SIP/000000000-08391000> Playing 'digits/1' (language 'en')
-- <SIP/000000000-08391000> Playing 'digits/minus' (language 'en')
-- <SIP/000000000-08391000> Playing 'digits/minus' (language 'en')
-- AGI Script a2billing.php completed, returning -1
but looking at A2Billing.php this is what is supposed to happen
Code:
// Check if the locking option is enabled for this account
if ($result[0][0] == 1 && strlen($result[0][1]) > 0) {
$try = 0;
do {
$return = FALSE;
$res_dtmf = $agi -> get_data('prepaid-enter-pin-lock', 3000, 10, '#'); //Please enter your locking code
anybody having this problem.
Rgds
Eamonn
http://www.eatelco.com