[SR-Users] force_send_socket - multiple times per dialog, subsequent times fail

Geoffrey Mina geoffreymina at gmail.com
Wed Jun 30 14:15:43 CEST 2010


##############################
##########################################
# Failure route 'pstn-failover'
########################################################################
failure_route[1]
{

    xlog("L_INFO", "Failure route for PSTN entered - M=$rm RURI=$ru F=$fu
T=$tu IP=$si ID=$ci\n");
    route(16);

    if(!next_gw())
    {

        xlog("L_ERR", "Failed to select next PSTN gateway - M=$rm RURI=$ru
F=$fu T=$tu IP=$si ID=$ci\n");
        route(5);
        exit;
    }
    t_on_failure("1");
    t_on_branch("1");
    route(7);
}


branch_route[1]{
        switch($rd)
        {
                    case "10.10.10.2":
                            force_send_socket(udp:10.10.10.1:5060);
                    case "10.10.10.4":
                            force_send_socket(udp:10.10.10.3:5060);
                    case "10.10.10.6":
                            force_send_socket(udp:10.10.10.5:5060);
                    case "10.10.10.8":
                            force_send_socket(udp:10.10.10.7:5060);
                    break;
        }

}


On Wed, Jun 30, 2010 at 4:14 AM, Iñaki Baz Castillo <ibc at aliax.net> wrote:

> 2010/6/30 Ernest Mavrel <ernest.mavrel at novatel.si>
> >
> > How can I move force_send_socket() call into branch_route?
>
> Use t_on_branch("N") before t_relay(); so after that each branch would
> run into branch_route[N] in which you should invoke
> force_send_socket().
>
>
> --
> Iñaki Baz Castillo
> <ibc at aliax.net>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100630/457dceef/attachment.htm>


More information about the sr-users mailing list