<!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.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><FONT face=Arial size=2>Hi all, I have tried implementing SIP redirection
as mentioned in the example script below:</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>route{<BR><BR># for testing purposes, simply okay all REGISTERs<BR><BR>if
(method=="REGISTER") {<BR><BR>log("REGISTER");<BR><BR>sl_send_reply("200",
"ok");<BR><BR>break;<BR><BR>};<BR><BR># rewrite current URI, which is always
part of destination ser<BR><BR>rewriteuri("sip:parallel@iptel.org:9");<BR><BR>#
append one more URI to the destination
ser<BR><BR>append_branch("sip:redirect@iptel.org:9");<BR><BR># redirect
now<BR><BR>sl_send_reply("300", "Redirect");<BR><BR>}<BR></DIV>
<DIV><FONT face=Arial size=2> But that does redirection only for that
account as the account is included in the code. I need the code to be able to
redirect any call. Can you tell me how I can generalize the code so that
</FONT></DIV>
<DIV><FONT face=Arial size=2>redirection works for any account I choose to
redirect?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance,</FONT></DIV>
<DIV><FONT face=Arial size=2>Padmaja</FONT></DIV></BODY></HTML>