maxlogins =3D 3;
if ((s =3D ast_variable_retrieve(cfg, "general", "maxlogins"))) {
        if (sscanf(s, "%d", &x) =3D=3D 1) {
                maxlogins =3D x;
        } else {
                ast_log(LOG_WARNING, "Invalid max failed login attempts\n");
        }
}

And yes, that should be documented somewhere... not a bad option to see
about writing in for a per user setting :)


Douglas Garstang wrote:
>> -----Original Message-----
>> From: Douglas Garstang=20
>> Sent: Tuesday, June 27, 2006 11:55 AM
>> To: Asterisk Users Mailing List - Non-Commercial Discussion
>> Subject: [Asterisk-Users] Realtime Voicemail
>>
>>
>> I'm noticing that the documentation on the voip wiki for=20
>> voicemail and realtime voicemail hasn't kept up with reality.
>>
>> I just created a column called maxmsg in my table. I set it=20
>> to 1 for the user. I can leave more than once voicemail message.
>> Why?
>=20
> Weird. Maxmsg suddenly worked on the next call. I tried setting maxlogi=
ns for the user to 1, and it's letting me put the wrong pin in 3 times be=
fore disconnecting me. What am I missing here? Are the supported options =
documented somewhere, that matches up with what's really in the code?
>=20
> Doug.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>=20
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to