<!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.6000.16441" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2>Hello</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>I am trying to
change the Remote-Party-ID header of a forwarded call but have little
luck.</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>I found several
examples on the net where avps are used inside a subst but when I try this the
resulting Remote-Party-ID is wrong</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>My
code:</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007></SPAN><SPAN class=828351810-06072007><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2>
avp_write("$ruri/username","s:calledno");<BR>
subst('/^Remote-Party-ID:(.*)>/Remote-Party-ID: <sip:$avp(calledno)
user=phone>/ig');<BR></FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>The
result:</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>Remote-Party-ID:
<sip:$avp(calledno)
user=phone>;party=calling;screen=no;privacy=off.<BR></FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>Anyone who can point
me to the error?</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial size=2>I use SER
0.9.6</FONT></SPAN></DIV>
<DIV><SPAN class=828351810-06072007></SPAN><SPAN class=828351810-06072007><FONT
face=Arial size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=828351810-06072007><FONT face=Arial
size=2> </DIV></FONT></SPAN>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>Med vänliga hälsningar/Kind
regards</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>Roger Lewau</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV> </DIV></BODY></HTML>