RV: [Users] RV: Nat Help

Fernando Rodriguez frod at aitelecom.net
Wed Sep 28 22:03:40 CEST 2005


Does any one has any idea or can point me to a place to read about this ..
 
Thanks ..
 
  _____  

De: users-bounces at openser.org [mailto:users-bounces at openser.org] En nombre
de Fernando Rodriguez
Enviado el: Miércoles, 28 de Septiembre de 2005 11:18 a.m.
Para: users at openser.org
Asunto: [Users] RV: Nat Help
 
 
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.sip-router.org/pipermail/sr-users/attachments/20050928/96fab787/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00008.txt
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050928/96fab787/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00033.txt
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20050928/96fab787/attachment-0001.txt>


More information about the sr-users mailing list