Extending configuration sections in pjsip.conf


I’m using pjsip and I would like to extend configuration sections for an endpoint


type = endpoint
context = internal
disallow = all
allow = ulaw
aors = 6001
auth = auth6001
type = aor
max_contacts = 1

Is it possible to extend the endpoint section

transport = transport-wss

Is it possible to do that given that my aor and endpoint have the same section name?

use a template https://wiki.asterisk.org/wiki/display/AST/Using+Templates

I dont understadn what exctly do you mean with extending configuration, can you please provide more details, and also this is the link for pjsip template https://wiki.asterisk.org/wiki/display/AST/res_pjsip+Configuration+Examples#res_pjsipConfigurationExamples-MultipleendpointswithphonesregisteringtoAsterisk,usingtemplates

The Asterisk internal library that reads configuration files allows you to restart a section by suffixing it with “(+)”. What the OP is saying is that PJSIP allows one to use the same section name for more than one purpose, in the same file.

Either the PJSIP configuration code is not using the standard Asterisk parsing code, or it allows a section to contain more than one type of item, relying on different keywords to unscramble them.

Both would be confusing if you use templates (so the template suggestion was not a good one) or try and continue a section.

Hey cool, Learned something new today David, I wonder why that isn’t in the Wiki in the Template page I linked.

Thanks for your answers guys