[SR-Users] question about force_send_socket

John Petrini jpetrini at coredial.com
Wed Jan 31 23:35:39 CET 2018


Trying setting force_send_socket(PUBLIC_IP:5060); in a branch route. Get
redirects creates a new branch for each contact header returned in the 302
and you want to act upon those branches.

        if (t_check_status("302")) {
                get_redirects("*");
             t_on_branch("REDIRECT_BRANCH")
                t_relay();
        }


     branch_route[REDIRECT_BRANCH] {
       force_send_socket(PUBLIC_IP:5060);
     }


John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180131/23bc5974/attachment.html>


More information about the sr-users mailing list