Adds an extenstion 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

Visual Basic (Declaration)
Public 
Sub 
AddSipExtension ( _
	
extension 
As 
String _
)
C#
public 
void 
AddSipExtension(
	
string 
extension
)
Visual C++
public:
void 
AddSipExtension(
	
String^ 
extension
)
JavaScript
function 
addSipExtension(
extension);

Parameters

extension
Type: 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.

See Also