[OpenSER-Users] question about the INVITE method

程千 cheng_qian008 at 163.com
Tue Nov 13 09:12:26 CET 2007


hi:
   
  I isntall the openser-1.2.2-notls under the centos5.
  I config the INVITE method like this:
   

 if (is_method("INVITE"))
 {
  # enable Record-Route
  record_route();

  # Is this to one of our numbers
  if (lookup("location")) 
  {
   append_hf("P-hint: userloc applied\r\n");
  } 
  else 
  {
   sl_send_reply("404","Not found");
  }
 }
  route(1);

...

route[1] 
{
 if (isflagset(2))
 {
  if (is_method("INVITE"))
  {
   t_on_reply("1");
   t_on_failure("1");
   use_media_proxy();
  } else if (is_method("BYE|CANCEL")) {
   end_media_session();
  }
 }

 # send it out now; use stateful forwarding as it works reliably
 # even for UDP2TCP
 if (!t_relay()) 
 {
  sl_reply_error();
 }
 exit;
}

But when the end ua is not online,the ser proxy seems to be in a loop lock.

  Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20071113/0480c7c9/attachment.htm 


More information about the Users mailing list