How can a system (Asterisk) accept realms? I mean, for example we have two SIP accounts: and . For Asterisk by default, these two accounts are the same since the user is exampleuser for the system. I want the domain to be also included in the username, so for example to accept only users with a certain domain.
How can this be achieved? Guides or books referring to this topic are well accepted :) .
02 Answers
Set it up like:
...
domain=test.com
domain=anothertest.com
domainsasrealm=yes ; Use domains list as realms
; You can serve multiple Realms specifying several
; 'domain=...' directives (see below).
; In this case Realm will be based on request 'From'/'To' header
; and should match one of domain names.
; Otherwise default 'realm=...' will be used.Regards
1Here is one guide : Configuring and Using SIP Domains in Asterisk.
Please try everything that looks pertinent and comment on it in your post, so we can know what you did or did not