From my search through this forum i can see a few people have touched on this in the past but their posts seem to go un-noticed, then closed.
Im trying to programatically create extensions through the graphql api (which is successful)
But I need to then go into the UI to set their media_encryption to SRTP in-SDP.
So after seeing everyon elses posts die unanswered, is there definitely no way to set a sort of new extensions default media_encryption=sdes in any of the asterisk config files?
| This example demonstrates the power of both wizards and templates.Once the template is created, adding a new phone could be as simple as creating a wizard objectOf course, you can override ANYTHING in the wizard object or specify everything and not use templates at all. |
Am i right in thinking I can create the pjsip_wizard.conf file, add the user defaults and each new endpoint made will have these settings?
You would be wrong. FreePBX doesn’t use PJSIP configuration wizards, and configuration wizards don’t globally apply defaults. They use templates in the configuration file with inheritance.
But the template wouldn’t affect any new endpoints that are created through the GUI or through the FreePBX graphql api, i’d need to manually go into each endpoint and put (endpoint_template) after it?
Looking at the graphql addExtension endpoint there doesnt seem to be any paramter where i can specify a template to use for that new endpoint