<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">I don't know if this is right, but:<DIV><BR class="khtml-block-placeholder"></DIV><DIV>        if(is_method("INVITE"))</DIV><DIV>        {</DIV><DIV>                rewritehostport("test.com");</DIV><DIV>                sl_send_reply("302", "Moved Temporarily");</DIV><DIV>        }</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>seems to work for me.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'd try loading some branches if you want more than one</DIV><DIV>item in the contact header.  Just guessing though, I'm usually</DIV><DIV>the recipient of a 302!</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-g</DIV><DIV><BR><DIV><DIV>On Aug 22, 2006, at 8:24 AM, Christophe Irles wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P><FONT size="2" face="Arial">Hi,</FONT> </P><P><FONT size="2" face="Arial">I checked archive without any result... &gt;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("$avp(s:100)", "sip:<A href="mailto:test@christophe.fr">test@christophe.fr</A>;target=$ruri;cause=486;");</FONT> <BR><FONT size="2" face="Arial">avp_pushto("$ct", "$avp(s:100)"); # =&gt; error generated on this line</FONT> </P><P><FONT size="2" face="Arial">ERROR:avpops:fixup_pushto_avp: unsupported  destination "$ct"; 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, "Moved Temporarily")</FONT> </P><P><FONT size="2" face="Arial">Is it  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><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Users@openser.org">Users@openser.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>