Hi Lonnie My conscience has got the better of me, my statement about Australian CLI is not entirely correct,
AUSTEL POTS CLI, My Telco sends E.164 National Significant Number plus the AUSTEL Trunk Prefix code eg Trunk Prefix = 0 + E.164 National Significant Number ((X = 1 digit National Destination Code) + (XXXXXXXX=8 digit Local Subscriber Code)) = 0-X-XXXXXXXX AUSTEL ISDN CLI Services typically send/receive E.164 National Number only eg E.164 National Significant Number (X-XXXXXXXX).Note: PBX will need to format the CLI number for return dialling. There is also a facility to send/receive E.164 (International) Telephone Country Code + National Significant Number (XXX-X-XXXXXXXX), and just to confuse things there's also the number type UNKNOWN which I believe can be subscriber number, national number or international number with/without access codes etc Thought I'd better mention just encase you spend a whole lot of time on number normalisation rules PS some Telco's do whatever they like. Regards Guy ________________________________ From: [EMAIL PROTECTED] on behalf of Guy Neale Sent: Sun 6/04/2008 12:37 PM To: AstLinux Users Mailing List Subject: Re: [Astlinux-users] Alternate Web Interface Hi Lonnie Had to change your regular expression in ciname.php to suit Australian CLI Eg 0X(STD code) + XXXXXXXX(Local number) = 0XXXXXXXXXX (national number CLI) Changed from if (preg_match('/^[2-9][0-9][0-9][2-9][0-9][0-9][0-9][0-9][0-9][0-9]/', $cidnum)) to if (preg_match('/^[0][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]/', $cidnum)) I also have calls routed from a trunked PBX with on/off net 4/5 digit extension numbers which I have added as 4/5 digit CLI name lookups. I suppose theirs a couple of schools of thought here, eg I should really be using a standard national number CLI name lookup and letting asterisk do the correct call routing. Regards Guy ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]
<<winmail.dat>>
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to [EMAIL PROTECTED]