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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bastian Friedrich
Sent: Wednesday, September 26, 2007 11:27 AM
To: users@openser.org
Subject: Re: [OpenSER-Users] PERL-Script - dialnumbers

Hi,

On Mittwoch 26 September 2007, [EMAIL PROTECTED] 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@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users

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

Reply via email to