[OpenSER-Users] PERL-Script - dialnumbers

Bastian Friedrich bastian.friedrich at collax.com
Wed Sep 26 11:26:44 CEST 2007


Hi,

On Mittwoch 26 September 2007, Martin.Gruber1 at infineon.com wrote:
> when I use the
> "canonical" function, it always adds "+" in front of the number.

the "canonical" form includes the "+" symbol to describe the 
international prefix. You may simply strip this symbol after calling 
the canonicalForm function with a perl regexp (or any other means, if 
you prefer) to be compliant with your setup:
  $c =~ s/\+//;

Best,
   Bastian

-- 
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10        www.collax.com

Geschäftsführer: William K. Hite / Boris Nalbach
AG München HRB 158898 . Ust.-IdNr: DE 814464942
\ Backups? We doan *NEED* no steenking baX%^~,VbKx NO CARRIER





More information about the Users mailing list