Martin,
You can use AVPOPS for this. Try something like this:
avp_write("$ruri/username", "i:30"); # store username part of r-uri in
avp i:30
# do your r-uri manipulation stuff here
avp_pushto("$ruri/username", "i:30"); # rewrite usernam part of u-uri
The AVPOPS documentation is available at
http://www.siphub.net/docs/avpops/
Regards,
Paul
On Apr 5, 2005 7:11 AM, Martin Koenig <martin.koenig(a)toplink-plannet.de> wrote:
Hello all,
is it possible to store the User-Part of the current state of the RURI,
do manipulations then and revert the User-Part later in Ser.cfg.
Scenario is the following:
1) Incoming RURI is e164@proxy, e164 is saved.
2) e164@proxy is aliased to username@proxy
3) username@proxy is looked-up in registrar, now contact@client-ip
4) contact@client-ip should be rewritten to saved-e164@client-ip
Is this possible using avps?
With best regards,
Martin Koenig
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers