<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Using avpops to change ruri/domani I found a
strange behaviour:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>If you try to modify the ruri/domain of a
previously received msg using avp_push to, you can't handle with the
port.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Suppose to receive a msg with ruri: <A
href="mailto:name@domain:port">name@domain:port</A> and you wanna change it to
<A href="mailto:name@newdomain:newport">name@newdomain:newport</A> it
seems to be impossible.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>if you do something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>avp_write("newdomain","s:_newdomain");</FONT></DIV>
<DIV><FONT face=Arial
size=2>avp_pushto("$ruri/domain","s:_newdomain");</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the result is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="mailto:name@newdomain:port">name@newdomain:port</A>
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>the do_action method just change the domain using
the SET_HOST_T action type and leaves the final part of the string
unchanged!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>But I wanna change it too setting the newport
value.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>A possible solution could be to recall the
do_action wiht action SET_PORT_T with an empty value to reset the :port in the
ruri field of the received domain, so I can set entire new domain
using:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial
size=2>avp_write("newdomain:newport","s:_newdomain");</FONT></DIV>
<DIV><FONT face=Arial
size=2>avp_pushto("$ruri/domain","s:_newdomain");</FONT></DIV>
<DIV> </DIV>
<DIV>having as a result:</DIV>
<DIV> </DIV>
<DIV><A href="mailto:name@newdomain:newport">name@newdomain:newport</A></DIV>
<DIV> </DIV>
<DIV>and not</DIV>
<DIV> </DIV>
<DIV><A
href="mailto:name@newdomain:newport:port">name@newdomain:newport:port</A></DIV>
<DIV> </DIV>
<DIV>as happens now.</DIV>
<DIV> </DIV>
<DIV>Or (the best way I think) add a new value for the first parameters in
method avp_pushto(destination, name) that allows to have the domainport as
destination (invoking do_action whit SET_PORT_T action). I'm disposable to work
on it, let me know.</DIV>
<DIV> </DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Marco.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>