<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
<TITLE>Create 302 message and modify contact header</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I checked archive without any result... >From an openSER rule, I want to create a 302 message if a specific RURI is used.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">First I need to change the contact header to specify the URI of the new callee. </FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I tried something like that:</FONT>

<BR><FONT SIZE=2 FACE="Arial">avp_printf(&quot;$avp(s:100)&quot;, &quot;sip:test@christophe.fr;target=$ruri;cause=486;&quot;);</FONT>

<BR><FONT SIZE=2 FACE="Arial">avp_pushto(&quot;$ct&quot;, &quot;$avp(s:100)&quot;); # =&gt; error generated on this line</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">ERROR:avpops:fixup_pushto_avp: unsupported&nbsp; destination &quot;$ct&quot;; expected $ru,$du,$br</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So how can I modify the contact header ?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Just after the update on the contact header I envisaged to use this function</FONT>

<BR><FONT SIZE=2 FACE="Arial">sl_send_reply(302, &quot;Moved Temporarily&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Is it&nbsp; correct ? Is there a better way to 'create' 302 message in this case ? </FONT>

<BR><FONT SIZE=2 FACE="Arial">I check UAC_REDIRECT module but I don't think I can use it in this case or perhaps I missed something</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Before to use a 302 message I succesfully tested to create a new INVITE with the $ruri modified correctly. But I would like to create a 302 message to prevent any problem of authentication.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Christophe</FONT>
</P>

</BODY>
</HTML>