On Apr 13, 2008, at 6:06 AM, Michael Keuter wrote:
>> Thanks to all the great suggestions, I have another update of my
>> Alternate Web Interface.
>>
>> 3) I added a new Whitelist tab (hidden by default, but can be enabled
>> via the Prefs tab). This behaves very similar to the Blacklist tab,
>
> Hi Lonnie,
>
> thanks for adding the whitelist.
>
> The CDR-Log shows something strange:
...
> Michael
Michael,
For the CDR display a custom definition is required (look at the
beginning comments of cdrlog.php)
cdr_custom.conf Master.csv definition:
Master.csv => "${CDR(start)}","${CDR(clid)}","${CDR(dst)}","${CDR
(dcontext)}","${CDR(billsec)} secs"
Located in:
/var/log/asterisk/cdr-custom/Master.csv
Maybe the CDR filename should be configurable? or just the
"Master.csv" part?
All suggestions welcome.
> Here in Germany we have variable number lengths.
> From 3 digits for a local call (without area code) in a small town to
> 18 for a call to abroad.
> I helped myself and commented out the number checking.
You should be able to make this work without any php changes.
Look at the Number Format in the Prefs tab, I use the php "ereg
()" (UNIX regular expressions, not perl) to validate the numbers,
this should give you all the flexibility you need.
Example regex allowing 3 to 18 numbers
^[0-9]{3,18}$
Be sure to start with the up-caret and end with the dollar sign as
shown.
A quick reference:
http://www.regular-expressions.info/reference.html
You will also want to change the Prefs tab "Error String" to remind
yourself what the format is.
Lonnie
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to [EMAIL
PROTECTED]