Hello,

On 2/21/11 7:59 PM, x-kamai...@sidell.org wrote:
I'm trying to do something very basic, which is to forward a call to a
different number on busy.  But, the various things I've tried from the
examples don't work.

Starting with the kamailio.cfg that is included with version 3.1, what
code would I add to forward all busy calls to "sip:f...@bar.com", a
target that is not necessarily local to the server?

after going to lookup("location") and forwarding for the first time the INVITE, set a failure_route with:

t_on_failure("REDIRECT_BUSY");

before doing the t_relay().

Then, define the failure_route like:

failure_route[REDIRECT_BUSY] {
   if(t_check_status("486")) {
       $ru = "sip:f...@bar.com";
       t_relay();
   }
}

Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to