RealTimeEndpoint.AddSipExtension Method
Adds an extension to the list of supported extensions for Invite. If an incoming Invite message has a required header that does not exist in this list, it will be automatically rejected with 420. Once an item is added to this list, it cannot be removed. This list does not affect outgoing Invites for which the application is responsible for adding any necessary headers such as "Supported" or "Require" headers for specific SIP extensions.
Namespace: Microsoft.Rtc.Signaling
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub AddSipExtension ( _
extension As String _
)
'Usage
Dim instance As RealTimeEndpoint
Dim extension As String
instance.AddSipExtension(extension)
public void AddSipExtension(
string extension
)
Parameters
- extension
Type: System.String
The extension to add.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if extension is null. |
ArgumentException | Thrown if the extension is empty or already exists in collection. |