[SR-Users] 302 - stop sending once ACKed

Daniel Tryba d.tryba at pocos.nl
Tue Aug 16 12:00:13 CEST 2016


On Tue, Aug 16, 2016 at 02:50:19AM +0300, jaflong jaflong wrote:
> I have kamailio as a redirect server. It responds with 302 to invites.
> The problem I am having is it continues to send the 302 multiple times.
> How can i get it to stop sending once it gets the first ACK

That should just work (tm).

What is the config for you redirector?

Essentially it is the "default" kamailio config with a 
send_reply("302", "Redirect");

request_route {

        # per request initial checks
        route(REQINIT);

        force_rport();

        # CANCEL processing
        if (is_method("CANCEL"))
        {
                if (t_check_trans()) {
                        route(RELAY);
                }
                exit;
        }

        # handle requests within SIP dialogs
        route(WITHINDLG);

        ### only initial requests (no To tag)

        t_check_trans();

        $rd="somewhere.else";

        send_reply("302", "Redirect");
        exit;
}



More information about the sr-users mailing list