SupportsMethod
The SupportsMethod function determines whether a specific SIP method is supported by the application.
Syntax
Copy Code | |
---|---|
bool SupportsMethod( string or StandardHeader value methodName, integer standardMethods, string extraMethods ); |
Parameters
Return Values
Returns true if methodName is present in either standardMethods or extraMethods, or if both parameters are empty. Otherwise, if methodName is an empty string or contains a comma, it returns false.
Remarks
This function is useful for determining if the standard and extra (custom) methods defined for an endpoint support the current request method. For example, an endpoint may support only "REGISTER" and "SUBSCRIBE", in which case this function returns false when the current request method is an "INVITE".