Hi Fernando,
it helps you a lot to apply different naming schemes for user in different lan`s.
the checking must be performed after the lookup() :
if (from_uri=~"lan1_scheme" && ruri=~"lan2_scheme") { # apply mediaproxy } .....
when applying mediaproxy, do not forget to set onreply_route to check the replies along with starting the mediaproxy. Also be sure use record_routing!
if you have problems, short description and some traces will be good.
regards, bogdan
Fernando Rodriguez wrote:
Does any one has any idea or can point me to a place to read about this ..
Thanks ..
*De:* users-bounces@openser.org [mailto:users-bounces@openser.org] *En nombre de *Fernando Rodriguez *Enviado el:* MiƩrcoles, 28 de Septiembre de 2005 11:18 a.m. *Para:* users@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@aitelecom.net mailto:frod@aitelecom.net
AITelecom S.A. de C.V.
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users