[SR-Users] RTP proxy

michel freiha michofr at gmail.com
Mon Jun 13 15:37:22 CEST 2011


Dear All,

I'm using the below config plan for routing my calls...The issue that
forcing rtp proxy is not working well and the rtp proxy is never
forced....Can you please provide me a guidance here?


        if($rU=~"^00.*" )
        {


                if(!cr_route("default", "domain.com", "$rU", "$rU",
"call_id")){
                  sl_send_reply("403", "Not allowed");
                } else {

                setbflag(6);
                route(1);
                }
                exit; ## this was missing here -bogdan!!!
        }
        else
        {
                route(LOCATION);

                route(RELAY);
        }
}



############# THIS IS THE GENERIC RELAY ROUTE THAT MUST BE USED ALL THE TIME
FOR RELAY
route[1]
{


        # apply any NAT changes?
        if(isflagset(5)||isbflagset(6)) {
                route(4);
        }



        exit;
}

route[4]
{


        if (is_method("BYE|CANCEL")) {
                unforce_rtp_proxy();
        } else if (is_method("INVITE")){

                if (nat_uac_test("8")) {
                    *    force_rtp_proxy();*
                } else {
                        force_rtp_proxy();
                }
                xlog("L_ERR","66666666666666666666666666666666666666666");
                t_on_failure("1");
                t_on_reply("1");



        };

The call is going through Route[1] then through Route[4], but rtp proxy is
never forced...Any tips please?

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110613/91080072/attachment.htm>


More information about the sr-users mailing list