connect.headers
Custom SIP headers to add to INVITE. Has no effect on calls to phone numbers.
| Name | Type | Default | Description | 
|---|---|---|---|
| headersOptional | object[] | - | An array of objects that accept the headers parameters. | 
headers parameters
| Name | Type | Default | Description | 
|---|---|---|---|
| nameRequired | string | - | The name of the header.. | 
| valueRequired | 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"
            }
          ]
        }
      }
    ]
  }
}