[OpenSER-Users] PERL-Script - dialnumbers

Martin.Gruber1 at infineon.com Martin.Gruber1 at infineon.com
Wed Sep 26 15:13:20 CEST 2007


Well, that is running, thanks.

But how can I access the new generated number. As you can see in my dialplan I call the script and then want
To check the new number, if "does_uri_exist", but it always takes the 1007 without the new prefix, etc.

Thanks

Martin

-----Original Message-----
From: users-bounces at openser.org [mailto:users-bounces at openser.org] On Behalf Of Bastian Friedrich
Sent: Wednesday, September 26, 2007 11:27 AM
To: users at openser.org
Subject: Re: [OpenSER-Users] PERL-Script - dialnumbers

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


_______________________________________________
Users mailing list
Users at openser.org
http://openser.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list