Thanks for your answer again. I solved it just yesterday.
But I have another question:
I have telephones registered on different sites (which means with different prefix)
I want e.g. users from one site only to dial 1007 instead of 43 15555 1007. This is
Now running, but how should I run it, that this is on every site so.
An if somebody dials 49 82345 1004 I do not want the perl script to add the prefix....
In the openser.cfg I have first to execute the script bevor I do routing!
Thanks for help!
Regards
martin
-----Original Message-----
From: Bastian Friedrich [mailto:bastian.friedrich@collax.com]
Sent: Thursday, September 27, 2007 1:01 PM
To: users(a)openser.org
Cc: Gruber Martin (IFKL IT OS NV)
Subject: Re: [OpenSER-Users] PERL-Script - dialnumbers
Hi,
On Mittwoch 26 September 2007, Martin.Gruber1(a)infineon.com wrote:
Well, that is running, thanks.
Good.
But how can I access the new generated number.
If I got you right, you want the address returned by canonicalForm to be your new
recipient URI (RURI). Thus, you could/should use the "rewrite_ruri()" function
in your Perl script:
$m->rewrite_ruri($c);
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 \ A chicken is an egg's way of producing more eggs.