Upgrade 3CX to v18 and get it hosted free!

Asterisk sip domain

Author image

sip.conf domain=

With the domain statement you may handle more than one domain on an asterisk server. In section [general] you may add

domain=<mydomain>,<context>

Calls to <mydomain> will go to context [<context>], overriding (!) the general and peer default context.
You may have several domain= lines in your sip.conf.

REGISTER to non-local domains will be automatically denied if a domain list is configured, so if your phones register to e.g. 192.168.0.1, make sure you have a domain line for that too!

Note: If you have registered with a remote service (and obtained e.g. a DID that way) the incoming call will be sent to your extension@ip, not to extension@domain. It appears that in the case of an IP Asterisk applies the default context (or does it do so for any incoming call that does not match one of the specified domains?)


Back to Asterisk config sip.conf

Related Posts:

Get 3CX - Absolutely Free!
Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.