Sip Header
REST API Version 2.0 only.
Describes a SIP header. SIP headers can be sent by a connect or an answer action. If the service has been configured to report received SIP headers, any matching SIP headers will be included in the call info.
Used in class call info.
Used by actions answer and connect.
Only non-standard SIP headers should be sent. Sending standard SIP headers will usually cause the call to fail.
The handling of non-standard SIP headers is dependent on the entities the SIP messages pass through, such as proxies and back-to-back user agents, and the receiving SIP endpoint. It is recommended that only a single header of each name is sent and that all names are prefixed with "X-". This will increase the likelyhood of the headers reaching the intended target.
language wrappers and examples
It contains the following properties:
Property | Required/Optional | Description |
---|---|---|
name | required | The name of the SIP header. |
value | required | The value of the SIP header. |
Examples:
{
"name" : "X-AccountInfo",
"value" : "abc-123456789"
}
SIPHeader Class
Namespace: Aculab.Cloud.RestAPIWrapper
Assembly: Aculab.Cloud.RestAPIWrapper.dll
A base class representing a SIP Header.
public class SIPHeader
{
// Constructors
public SIPHeader(string name, string value);
// Members
public string Name;
public string Value;
}
Examples:
var answer = new Answer();
answer.AddExtraSIPHeader(new SIPHeader("X-AccountInfo", "abc-123456789"));
public class SIPHeader
{
// Constructors
public SIPHeader(string name, string value);
// Members
public string Name;
public string Value;
}
Examples:
var answer = new Answer();
answer.AddExtraSIPHeader(new SIPHeader("X-AccountInfo", "abc-123456789"));
public class SIPHeader
{
// Constructors
public SIPHeader(string name, string value);
// Members
public string Name;
public string Value;
}
Examples:
var answer = new Answer();
answer.AddExtraSIPHeader(new SIPHeader("X-AccountInfo", "abc-123456789"));
SIPHeader Class
Namespace: Aculab.Cloud.RestAPIWrapper
Assembly: Aculab.Cloud.RestAPIWrapper.dll
A base class representing a SIP Header.
Public Class SIPHeader
' Constructors
Public Sub New (name As String, value As String)
' Members
Public Property Name As String
Public Property Value As String
End Class
Examples:
Dim answer = New Answer()
answer.AddExtraSIPHeader(New SIPHeader("X-AccountInfo", "abc-123456789"))
Public Class SIPHeader
' Constructors
Public Sub New (name As String, value As String)
' Members
Public Property Name As String
Public Property Value As String
End Class
Examples:
Dim answer = New Answer()
answer.AddExtraSIPHeader(New SIPHeader("X-AccountInfo", "abc-123456789"))
class SIPHeader
A class representing a SIP Header.
Class synopsis:
// Constructors:
public SIPHeader(String name, String value)
// Members:
public String getName()
public String getValue()
Examples:
Answer answerAction = new Answer();
answerAction.addExtraSIPHeader(new SIPHeader("X-AccountInfo", "abc-123456789"));
To send extra SIP headers, use the Answer.add_extra_sip_header()
and Connect.add_extra_sip_header()
instance methods.
Received SIP headers are found in the Call Info
dictionary, accessed using the received_sip_headers
key.
The received_sip_headers
value is a list of dictionaries. Each dictionary contains a name
and value
key, representing a SIP header.
Examples:
answer_action = Answer()
answer_action.add_extra_sip_header("X-AccountInfo", "abc-123456789")
This functionality is provided by a function calls on various objects.
To send extra SIP headers, add them using addExtraSIPHeader()
calls.
Received SIP header values are returned by calling getReceivedSIPHeader()
on CallInfo
objects.
Examples:
$answer = new \Aculab\TelephonyRestAPI\Answer();
$answer->addExtraSIPHeader("X-AccountInfo", "abc-123456789");