[SR-Users] Difference between corex module's 'alias_subdomains' and 'alias' core parameter

Daniel-Constantin Mierla miconda at gmail.com
Wed Aug 5 18:26:56 CEST 2015


Hello,

On 05/08/15 17:30, Iwan Aucamp wrote:
> From the descriptions these seem similar:
>
> corex alias_subdomains
> (http://kamailio.org/docs/modules/devel/modules/corex.html#idp18017160):
>
> Register a domain and all its sub-domains to match the “myself”
> condition. It can be set many times. Its full format is:
> 'proto:domain:port', allowing to set restrictions on protocol and port
> as well. Protocol and port are optional.
>
> //alias core parameter
> (http://www.kamailio.org/wiki/cookbooks/devel/core#alias):
>
> Parameter to set alias hostnames for the server. It can be set many
> times, each value being added in a list to match the hostname when
> 'myself' is checked.
>
> Is the only difference that corex alias_subdomains can include 'proto' ?
>
>
alias can be also a proto:domain:port.

The difference is that alias is about specifying the full domain as
value to match, while alias_subdomains is about matching any subdomain
part of the value.

For example:

1) alias=xyz.com

the myself will match only when value is "xyz.com".

2) alias_subdomain=xyz.com

the myself will match any of values such as: a.xyz.com, b.xyz.com,
c.d.xyz.com and the likely

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150805/efbc0b79/attachment.html>


More information about the sr-users mailing list