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

Stefano Pisani stefano.pisani at omnianet.it
Sat Sep 18 11:52:16 CEST 2010


  Hi,
I solved it using field socket in location table and using $fs = this 
socket before t_relay()
just in case of local lookup

Il 18/09/2010 06:43, Andrew Pogrebennyk ha scritto:
> 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.
>



More information about the Users mailing list