<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face="Courier New" color=#000000 size=2>Hi, when using Dynamic routing, we call do_routing() to rewrite target URI, we can not do it on BYE / CANCEL / ACK ?</FONT></DIV>
<DIV><FONT face="Courier New" color=#000000 size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2>Is this a correct way to handle CANCEL, ACK and BYE when using Drouting ?</FONT></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><FONT face="Courier New" size=2> ....</FONT></DIV>
<DIV><FONT size=2><FONT face="Courier New"> if (is_method("CANCEL") || is_method("ACK")){<BR> if(t_check_trans()){<BR> t_relay();<BR> }</FONT></FONT></DIV>
<DIV><FONT size=2><FONT face="Courier New"> exit;</FONT><BR><FONT face="Courier New"> }</FONT></FONT></DIV>
<DIV><FONT face="Courier New" size=2> else if (is_method("BYE")){<BR> t_relay();</FONT></DIV>
<DIV><FONT face="Courier New" size=2> exit;<BR> }</FONT></DIV>
<DIV><FONT face="Courier New" size=2> else{</FONT></DIV>
<DIV><FONT face="Courier New" size=2> if(!do_routing()) {<BR> sl_send_reply("503", "No destination available");<BR> exit;<BR> }</FONT></DIV>
<DIV><FONT face="Courier New" size=2> }</FONT></DIV>
<DIV><FONT face="Courier New" size=2> .....</FONT></DIV></BODY></HTML>