[Serusers] How to configure multi-domain?
Ricardo Carvalho
rcarvalho at iric.up.pt
Tue Sep 5 14:40:24 CEST 2006
In fact what was happening was that I was using aliases to dial users
and it isn't working because as it could be seen with "serctl ul show"
aliases don't have the domain in AOR. It can be seen bellow in this
e-mail. Because of this, when I dial the alias of some user (5101 for
exemple), in the debug of Ser results "lookup(): '5101 at domain_B' Not
found in usrloc" and then the call fails obviously.
How can I add the domain of each user to the AOR of their aliases?
On the other hand, as expected, when I call someone by their
"username at domain_A", it rings phones registered with that user and that
domain_A, and when I call someone by their "username at domain_B", it rings
phones registered with that user and that domain_B. This is expected
because I can see with "serctl ul show" that users have their AOR with
their domain as can be seen below in this e-mail.
Unfortunately there is one more problem. When I dial just the username
of someone (like "test") without his domain, it rings the phone
registered with test at domain_A. How can I make in this situations the
call being rejected like with "404", "User Not Found" reply?
Thank a lot,
Ricardo.
"serctl ul show" results:
##########################################
...Record(0xb6174e60)...
domain: 'aliases'
aor : '5101@'
~~~Contact(0xb6174ea0)~~~
domain : 'aliases'
aor : '5101@'
Contact : 'sip:test at domain_B'
Expires : Permanent
q : 1
Call-ID :
'The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything'
CSeq : 42
User-Agent: 'SIP Express Router FIFO'
received : ''
State : CS_SYNC
Flags : 128
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
domain: 'location'
aor : 'test at domain_B'
~~~Contact(0xb6177d10)~~~
domain : 'location'
aor : 'test at domain_B'
Contact : 'sip:test at 192.168.6.13:5060'
Expires : 1633
q :
Call-ID : '7B2CA981D23AE8B62820D8B4F36F9E5C at domain_B'
CSeq : 53668
User-Agent: 'X-Lite release 1105d'
received : ''
State : CS_SYNC
Flags : 0
next : (nil)
prev : (nil)
~~~/Contact~~~~
.../Record...
##########################################
Greger V. Teigre wrote:
> Yes, you are on the right path :-)
> I'm not sure why you cannot reach others. It sounds like a more
> fundamental problem... Look at the AORs with serctl. Are they
> registered correctly? If you don't use domain for usrloc, what happens?
> g-)
>
> Ricardo Carvalho wrote:
>> I've added the following lines to my ser.cfg file:
>>
>> ###################
>> modparam("usrloc", "use_domain", 1) #If the domain part of the
>> user should be also saved and used for identifing the user (along
>> with the username part). Useful in multi domain scenarios. Non 0
>> value means true.
>>
>> modparam("registrar", "use_domain", 1) # If set to 1 then the
>> registrar will use username at domain as address of record. If the
>> variable is set to 0 then only username will be used as the address
>> of record. Default value is 0.
>> ###################
>>
>> I've added 2 diferent domains to the domain table, and got different
>> phones registered with those different domains.
>>
>> Although, after editing that way ser.cfg file, my phones still
>> register in Ser, but none of them can call any other, even if I call
>> someone only by username or by username at domain.
>>
>> Am I in the right path to configure a multi-domain Ser server? What
>> else should I do to make things work fine?
>>
>> Regards,
>>
>> Ricardo.
>> _______________________________________________
>> Serusers mailing list
>> Serusers at lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>>
>>
>
More information about the sr-users
mailing list