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");
        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");
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20050928/96fab787/attachment.htm 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00008.txt
Url: http://lists.kamailio.org/pipermail/users/attachments/20050928/96fab787/attachment.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00033.txt
Url: http://lists.kamailio.org/pipermail/users/attachments/20050928/96fab787/attachment-0001.txt 

More information about the Users mailing list