[Users] RV: Nat Help

Fernando Rodriguez frod at aitelecom.net
Wed Sep 28 19:17:58 CEST 2005


 
Hello y have 3 interfaces on my box
 
1 Lan to Internet
2 Lan to 192.168.1.x
3 Lan to 192.168.108.x
 
I only have one domain in my openser
 
I want to know a method to use the mediaproxy only when sending packet tru
interfaces for example
 
When making a call from lan 108 to internet or 192.168.1.x
 
Im putting this kind of rules
 
I set different number for number for each lan 1 for eth0 2 for eth1 3 for
eth2 so each client has different number regarding the interface he sees ..
 
Is this valid ??
  
if (from_uri=~"sip:|1[1]|2[0-9]|3[0-9][:@]"  &&
to_uri=~"sip:|1[2]|2[0-9]|3[0-9]|4[0-9][:@]") {
                log("de 1 a 2\n");
                use_media_proxy();
        };
 
        if (from_uri=~"sip:|1[2]|2[0-9]|3[0-9]|[0-9][:@]"  &&
to_uri=~"sip:|1[1]|2[0-9]|3[0-9][:@]") {
                log("de 2 a 1\n");
                use_media_proxy();
        };
 
 
And not to use mediaproxy when calling within the same lan.
 
Thanks for your help
 
 
Fernando Rodriguez V.
frod at aitelecom.net
AITelecom S.A. de C.V.
http://www.aitelecom.net
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20050928/befcbb9a/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00008.txt
Url: http://lists.kamailio.org/pipermail/users/attachments/20050928/befcbb9a/attachment.txt 


More information about the Users mailing list