includeNonStandardSipHeader

open fun includeNonStandardSipHeader(@Nullable accountId: String, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String, @NonNull value: String)

Include non-standard SIP header.

Parameters

accountId

ID of the account to include the non-standard SIP header to; null if feature Multiple Accounts is not provided.

method

Method in which the SIP header should be included to; * for all methods.

responseCode

Response code the SIP header should be included to:

xxx
All reponses.
1xx
Responses with code 100 to 199.
12x
Responses with code 120 to 129.
123
Responses only with code 123.
Empty if it should be included in request headers.
name

SIP header name; should start with "X-".

value

SIP header value.


open fun includeNonStandardSipHeader(@IntRange(from = 0) index: Int, @NonNull method: String, @NonNull responseCode: String, @NonNull name: String, @NonNull value: String)

Include non-standard SIP header.

Parameters

index

Index of the account to include the non-standard SIP header to; 0 ≤ index <getAccountCount; 0 if feature Multiple Accounts is not provided.

method

Method in which the SIP header should be included to; * for all methods.

responseCode

Response code the SIP header should be included to:

xxx
All reponses.
1xx
Responses with code 100 to 199.
12x
Responses with code 120 to 129.
123
Responses only with code 123.
Empty if it should be included in request headers.
name

SIP header name; should start with "X-".

value

SIP header value.