[OpenSIPS-Users] How opensis can manage different ports.

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Sep 21 12:57:16 CEST 2010


Hi guys,

you do not have to do anything at all (for multiple ports) - the 
save(location) function saves the socket the register was received on 
(in the "socket" column in db). The lookup(location) function will force 
this socket whenever a request needs to be sent to the end-point....

automagically, it works !

Regards,
Bogdan

Andrew Pogrebennyk wrote:
> On 18.09.2010 07:36, mayamatakeshi wrote:
>   
>> If you are dealing with more than 2 ports, this might get complicated.
>> But in case of just 2 ports, you could check the ReceivedPort and set 
>> a bflag during handling of the REGISTER request:
>>
>> if($Rp == 5060) {
>>   setbflag(BFLAG_RECEIVED_ON_PORT_5060);
>> }
>>     
>
> That's correct. It will also work with more than 2 ports, but you need 
> to enumerate each socket with a flag.
>
>   


-- 
Bogdan-Andrei Iancu
OpenSIPS Bootcamp
15 - 19 November 2010, Edison, New Jersey, USA
www.voice-system.ro




More information about the Users mailing list