connect.headers
Custom SIP headers to add to INVITE. Has no effect on calls to phone numbers.
Name | Type | Default | Description |
---|---|---|---|
headers Optional | object[] | - | An array of objects that accept the headers parameters. |
headers parameters
Name | Type | Default | Description |
---|---|---|---|
name Required | string | - | The name of the header.. |
value Required | string | - | The value of the header.. |
Example
- YAML
- JSON
version: 1.0.0
sections:
main:
- connect:
to: "sip:user-a@<domain>.com"
headers:
- name: "x-FROM_NUMBER"
value: "%2B123456789"
{
"version": "1.0.0",
"sections": {
"main": [
{
"connect": {
"to": "sip:user-a@<domain>.com",
"headers": [
{
"name": "x-FROM_NUMBER",
"value": "%2B123456789"
}
]
}
}
]
}
}