Registration against domain auth

Crosspost from Registration against domain auth - Endpoints - FreePBX Community Forums

Referring to the below

; Matches on user 100@domain1 in the From user field
[100@domain1]
type=endpoint

;matches on user 100@domain2 in the From user field
[100@domain2]
type=endpoint

;matches on any 100 user that does not have domain1 or domain2 in the From user field.
 [100]
 type=endpoint

I am testing this, and it works fine.

A couple of questions…

  1. Where can I find the documentation for this?
  2. Can I use wildcards here? for example *.domain.com
  3. If not, is there a way to set multiple domains? Or perhaps aliases.

Thanks

This is something that few people use, so it hasn’t really seen much documentation. It just went in during the original implementation in case someone wanted it. Wildcards are not supported, but there is a domain alias type[1] which I believe would be like:

[bob.com]
type=domain_alias
domain=joe.com

To alias “bob.com” to “joe.com” though having not touched it in probably 8 years that’s just going by memory.

[1] asterisk/pjsip.conf.sample at master · asterisk/asterisk · GitHub

1 Like

Thanks Josh.

I tested the below and it works fine.

[100@joe.com]
type=endpoint

[bob.com]
type=domain_alias
domain=joe.com

This adds the alias to all @joe.com endpoints. Is there a way to specify for which endpoints this alias is?

I tried domain=100@joe.com but it didn’t work.

Thanks

No, there is no ability to do it per-endpoint. It is just an alias for the domain part. It’s not an alias for the complete user@domain.

1 Like

Great. Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.