Hi Ali,
I think that you must call :
 if(status=="180")
   {
       xlog("this is a 180 Ringing reply");
   };

   if(status=="200")
   {
       xlog("this is a 200 OK reply");
   };

in the onreply_route, note in tne route function