[OpenSIPS-Users] Bypass UAC IP

Bogdan-Andrei Iancu bogdan at voice-system.ro
Thu Dec 24 08:35:55 CET 2009


Hi Ahmed,

If Asterisk dislpays the IP from the network level, you cannot change 
it. Otherwise you can do a trick and make opensips to place the UAC IP 
into a SIP header to be passed to Asterisk and maybe you can "convince" 
Asterisk to display the IP from the header.

Regards,
Bogdan

Ahmed Munir wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list