[Users] 2 Openser Instances

Klaus Darilion klaus.mailinglists at pernau.at
Fri May 26 10:56:46 CEST 2006


Sam Lee wrote:
> Hi Klaus,
> 
> Thanks for the quick reply. My purpose is one of the instance being a
> normal Openser, the other with a FORCE RTPproxy. This is so that if they
> have a symmetric NAT going on in their network, they can make use of
> this rtpproxy as an outbound proxy but still able to call those register
> with the normal openser.
> 
> Care to explain what is cacheless userloc mode ? How do I set it ?

http://openser.org/docs/modules/devel/usrloc.html#AEN252

it's mode 3 (only available in CVS head)
> 
> Because of the normal and force RTPproxy , these 2 instances has
> different routing patterns, and they are handled differently.

I still would use only one proxy and apply NAT traversal only for 
clients which use the "NAT traversal" port on your openser.

The idea is:
...
if ( dst_port = 6060) { # needs NAT traversal
	if (is_method("REGISTER")) {
		setflag(9);
		# this is the natflag specified in userloc module
# http://openser.org/docs/modules/1.0.x/registrar.html#AEN103
		fix_nated_register();
	} else {
		# do all the NAT traversal, activate RTP proxy
	}
}

# now do the normal call and REGISTER handling

...





...
	lookup("location");
	if(isflagset(9)) {
	   ...#force rtp proxy
	}
....



regards
klaus



> 
> Any ideas ?
> 
> Regards,
> Sam
> 
> -----Original Message-----
> From: Klaus Darilion [mailto:klaus.mailinglists at pernau.at] 
> Sent: Friday, May 26, 2006 4:28 PM
> To: Sam Lee
> Cc: users at openser.org
> Subject: Re: [Users] 2 Openser Instances
> 
> 1. You can run several instances of openser on the same PC, but what is
> your purpose?
> 
> 2. If 2 openser proxies share the same userloc database, you have to use
> the cacheless userloc mode
> 
> 3. If you just want to listen on several ports, use a single proxy with
> multiple listen directives
> 
> listen=udp:1.2.3.4:5060
> listen=udp:1.2.3.4:6060
> listen=udp:1.2.3.4:7060
> 
> regards
> klaus
> 
> 
> Sam Lee wrote:
>> Have anyone tried running 2 separate instances on OpenSER (running on 
>> different ports) ?
>> Both these instances are doing almost exactly the same thing, they 
>> take in REGISTER and save them into the locations database. They all 
>> do all the other processing like INVITE.
>>  
>> Will this causes a problem in MYSQL ? I'm asking this because i got a 
>> very strange problem. I register 1 UA to each instances. When i did a 
>> ul show , it always only have either the UA from instance A or UA from
> 
>> instance B . Note, these 2 UA have different numbers. Why can't it 
>> just save both into the MYSQL DB ?
>>  
>> I would be glad to clarify any doubts. Please assist as far as you
> can. 
>> Thanks!
>>  
>> Regards,
>> Sam
>>
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
> 





More information about the Users mailing list