Sending SIP headers
This section describes configuration related to SIP headers.
Sending SIP header values from SBC to bot
By default, VoiceAI Connect Enterprise sends specific SIP headers received in the INVITE request, to the bot in the start message (see Call initiation). However, you can customize this initial message to include additional headers (parameters) or even overwrite the values of a default parameter with the value of a specified SIP header.
For example, you might want your bot to receive the date, which is provided by the SIP Date header. This feature allows you to create a new parameter (with your own unique name e.g., "callIdentification") and to obtain the value for that parameter from the SIP X-Conversation-ID header.
In some cases, a specific SIP header may appear more than once in the same SIP message. you can indicate which of those duplicate SIP headers you want to take the value from.
The SBC's Message Manipulation feature can be used to populate a SIP header to send any available information to the bot.
This feature is applicable only to VoiceAI Connect Enterprise (Version 2.6 and later).
How do I use it?
This feature is configured by the VoiceAI Connect Administrator using the following bot configuration parameter:
|
Parameter |
Type |
Description |
|---|---|---|
|
Object |
Enables the value of a specified header to be sent in the start message to the bot, using a newly created or existing parameter name. The syntax is shown below: "sipHeadersToBot": {
"new-parameter-name": "<SIP header whose value to use>"
}
To specify which repeated header (by Index, where 0 is the first concurrence in the SIP message): "sipHeadersToBot": {
"new-parameter": "<SIP header whose value to use>.<Index of header>"
}
This example does the following:
{
"callIdentification": "X-Conversation-ID",
"callerDisplayName": "X-Calling-User",
"assertedId": "P-Asserted-Identity.1"
}
|
Sending SIP headers from Re-INVITE and UPDATE messages
By default, the SIP headers configured by the sipHeadersToBot parameter are sent to the bot only in the start message, using values received in the initial SIP INVITE request. You can also configure VoiceAI Connect Enterprise to send the configured SIP headers to the bot when the SBC receives a SIP re-INVITE or UPDATE request during an active call.
When the SBC receives a SIP re-INVITE or UPDATE request and this feature is enabled, it sends a SessionUpdate message to VoiceAI Connect Enterprise containing the SIP headers received in the request. VoiceAI Connect Enterprise then sends a sessionUpdate event to the bot containing the configured SIP header values.
How do I use it?
This feature is configured by the VoiceAI Connect Administrator using the following bot configuration parameters:
|
Parameter |
Type |
Description |
|---|---|---|
|
Array of strings |
Specifies the events that VoiceAI Connect sends to the bot. To enable this feature, include |
|
|
Object |
Defines the SIP headers that VoiceAI Connect extracts from SIP re-INVITE and SIP UPDATE requests and sends to the bot in the |
To enable this feature, add sessionUpdate to the sendEventsToBot parameter:
{
"sendEventsToBot": [
"sessionUpdate"
]
}
The SIP headers included in the sessionUpdate event are configured using the existing sipHeadersToBot parameter. For example:
{
"sipHeadersToBot": {
"fromHeader": "From",
"pAssertedIdentityHeader": "P-Asserted-Identity"
}
}
When the SBC receives a SIP re-INVITE or SIP UPDATE request, VoiceAI Connect sends a sessionUpdate event similar to the following:
{
"type": "sessionUpdate",
"fromHeader": "sip:alice@example.com",
"pAssertedIdentityHeader": "sip:+15551234567@example.com"
}
If none of the SIP headers configured in sipHeadersToBot are present in the SIP re-INVITE or SIP UPDATE request, no sessionUpdate event is sent to the bot.
Sending SIP headers from bot to SBC
You can configure VoiceAI Connect to send customized SIP headers and values for the bot to the user (through the SBC). You can configure this functionality for the following:
-
Headers sent to user in start message for outbound calling
-
Headers sent to user upon a ring or connect message
This feature is applicable only to VoiceAI Connect Enterprise (Version 3.2 and later).
How do I use it?
This feature is configured by the VoiceAI Connect Administrator using the following bot configuration parameter:
|
Parameter |
Type |
Description |
|---|---|---|
|
Object |
Defines customized SIP headers and values that are sent in the start message to the user for Outbound calling. The syntax is shown below: {
"dialoutSipHeaders":[
{
"name":"<name of SIP header>",
"value":"<value of header>"
},
{
"name":"<name of SIP header2>",
"value":"<value of header2>"
}
]
}
|
|
|
Object |
Defines customized SIP headers and values that are sent in the connect message to the SBC upon a reply from the bot. The syntax is shown below: {
"connectSipHeaders":[
{
"name":"<name of SIP header>",
"value":"<value of header>"
},
{
"name":"<name of SIP header2>",
"value":"<value of header2>"
}
]
}
|
|
|
Object |
Defines customized SIP headers and values that are sent in the ring message to the SBC when bot is ringing. The syntax is shown below: {
"ringSipHeaders":[
{
"name":"<name of SIP header>",
"value":"<value of header>"
},
{
"name":"<name of SIP header2>",
"value":"<value of header2>"
}
]
}
|