<DIV>
<DIV>
<DIV>Hello,</DIV>
<DIV>I ran out into some problem when implementing Call Forwarding feature using SER. </DIV>
<DIV>My test setup:</DIV>
<DIV>192.168.25.101 - XLite ---> INVITE UA(sip:444)</DIV>
<DIV>192.168.25.163 - ser; rewrites to Address of record of Asterisk (sip:1111 instead of sip:444)</DIV>
<DIV>192.168.25.169 - PBX Asterisk</DIV>
<DIV> </DIV>
<DIV>As I see from log files, SER sends INVITE 2 times,</DIV>
<DIV>then Asterisk sends 3 times 200 status etc . until BYE is sent (here everything correct....)</DIV>
<DIV>Here is my configuration script:</DIV>
<DIV>==================================</DIV>
<DIV>route{</DIV>
<DIV>. . .<BR> <BR> record_route();</DIV>
<DIV> #--rewrite URI <BR> if (method=="INVITE"){ #--call forwarding<BR> setflag(1);<BR> route(1); #--cfw<BR> if(!isflagset(1)) {<BR> break;<BR> }</DIV>
<DIV>lookup("location")</DIV>
<DIV>...</DIV>
<DIV>};</DIV>
<DIV> </DIV>
<DIV>route[1] {<BR> log(1, "forwarding\n");<BR> if (!if_activated("to")) { <BR> #--continue regular call set up<BR> break;<BR> };<BR> if (!lookup_dn()){<BR> sl_send_reply("404","Not Found");<BR> resetflag(1); #--continue!<BR> break;<BR>};</DIV>
<DIV>}</DIV>
<DIV>Here if_activated checks whether the feature was activated; lookup_dn() rewrites URI to new UA and call append_branch()</DIV>
<DIV> </DIV>
<DIV>Any ideas what I am doing wrong?<BR> <BR> if (!t_relay()) {<BR> sl_reply_error();<BR> };</DIV>
<DIV>}</DIV>
<DIV>===========</DIV>
<DIV> </DIV>
<DIV>Any help will be highly appreciated!!!</DIV>
<DIV>Thanks, Tina,</DIV>
<DIV>software engineer</DIV>
<DIV> </DIV></DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br>
Yahoo! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new resources site!</a>