...
Code Block |
---|
title | This will fail because default_expiration isn't valid for an endpoint |
---|
|
[101]
type=endpoint
allow=ulaw
[101]
type=aor
default_expiration=12003600
[101](+)
default_expiration=1200
|
...
Code Block |
---|
title | This works because the filters ensure that the additions are to the correct objects. |
---|
|
[101]
type=endpoint
allow=ulaw
[101]
type=aor
default_expiration=12003600
[101](+type=aor)
default_expiration=1200
[101](+type=endpoint)
allow=g722
|
...
Code Block |
---|
title | A weird and not so useful example |
---|
|
[101]
type=endpoint
allow=ulaw
[101]
type=aor
default_expiration=3600
[101](+default_.*=36[0-9][0-9])
default_expiration=1200
[101](+type=endpoint)
allow=g722 |
You can also include multiple filters.
Code Block |
---|
title | Another weird and not so useful example |
---|
|
[101]
type=endpoint
allow=ulaw
[101]
type=aor
default_expiration=3600
[101](+type=aor&default_.*=36[0-9][0-9])
default_expiration=1200
[101](+type=endpoint)
allow=g722 |
And finally, you can elect to include or restrict parameters inherited from templates in the search.
Code Block |
---|
title | The final weird and not so useful example. This will NOT match because default_expiration is defined in the parent template. |
---|
|
[101]
type=endpoint
allow=ulaw
[aor_template](!)
type=aor
default_expiration=3600
[101](aor_template)
[101](+TEMPLATES=restrict&default_.*=36[0-9][0-9])
default_expiration=1200
[101](+type=endpoint)
allow=g722 |