[OpenSIPS-Users] Bypass UAC IP

Ahmed Munir ahmedmunir007 at gmail.com
Thu Dec 24 06:37:00 CET 2009


Hi,

I want to know how can I bypass UAC IP through OpenSIPS. Like my UAC IP is
xx.xx.xx.xx, my OpenSIPS IP is yy.yy.yy.yy and Asterisk IP is zz.zz.zz.zz,
where I'm using OpenSIPs as redirect server, when I make a call I want UAC
IP displayed on Asterisk machine not OpenSIPs IP.

Kindly advise me which fuction do I require for it. The configuration I've
done is listed down below;

route{

        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                exit;
        }

        if (is_method("INVITE")) {
                log("########INVITE#######################");
                ds_select_domain("1","4");
                sl_send_reply("300","Redirect");
                route(1);
                log("#####END");
                exit;
        }

        if (is_method("REGISTER")) {
                log("########REGISTER#######################");
                ds_select_dst("1","4");
                #t_replicate("77.66.2.136");
                #sl_send_reply("200", "ok");
                forward();
                log("#####END");
                #exit;
                return;
        }

}


-- 
Regards,

Ahmed Munir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091224/8671e0f7/attachment.htm 


More information about the Users mailing list