>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,
Hi Lonnie,
thanks for your fast reply.
>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"
Sorry, I overlooked that. It works perfectly as I changed it.
>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}$
Great, indeed very flexible, works too - when you know where to look to :-).
I'm learning a lot. I changed it to
^[0-9\*#]{3,18}$
to allow local CID names of my ISDN PBX. But I found out that the
result would be always:
^[0-9\\*#]{3,18}$
=> the backslash was automatically escaped with another backslash.
I changed it in the prefs.txt and then I was OK.
Michael
--
Email: mailto:[EMAIL PROTECTED]
Web : http://www.easylivin.de
-------------------------------------------------------------------------
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]