Configuration Precedence
It's possible to override most of the settings in several different ways. There is a sequence of precedence as follows. You can always validate the setting by going to the settings in the admin portal.
-
Querystring parameters that match the name. For example if you wanted to override the title for one page you'd do the following:
index.php?title=something+here -
Session overrides. This means the entire call will use this setting.
index.php?override_title=something+here. Twilio will respect this setting for entire during of the call. -
Service body overrides from the Admin UI. These have a cascading hierarchy of precedence based off the service body above it in the hierarchy tree from your root server. Either the
override_service_body_id(which will affect call routing) oroverride_service_body_config_idwill pull these settings into the session for use. -
Config.php. Any setting is controllable from within config.php.
-
Factory defaults. You can review them on your
/admin/settings.phppage.
You can completely override any config.php file setting as well with additional precedence.
- Create a new file called
config_something.php. Add whichever settings you want to override. You do not need every setting, only those you want to override. - Use the last part after the underscore in your webhook as, for example: https://your-yap-server/index.php?override_config=something.