AudioStream.DtmfType Property

Definition

Returns the RTP payload type for dual-tone multi-frequency (DTMF) digits, or -1 if it is not enabled. -or- Sets the RTP payload type for dual-tone multi-frequency (DTMF) digits.

public virtual int DtmfType { [Android.Runtime.Register("getDtmfType", "()I", "GetGetDtmfTypeHandler")] get; [Android.Runtime.Register("setDtmfType", "(I)V", "GetSetDtmfType_IHandler")] set; }
[<get: Android.Runtime.Register("getDtmfType", "()I", "GetGetDtmfTypeHandler")>]
[<set: Android.Runtime.Register("setDtmfType", "(I)V", "GetSetDtmfType_IHandler")>]
member this.DtmfType : int with get, set

Property Value

Attributes

Exceptions

if the type is invalid or used by codec.

if the stream is busy.

Remarks

Property getter documentation:

Returns the RTP payload type for dual-tone multi-frequency (DTMF) digits, or -1 if it is not enabled.

Java documentation for android.net.rtp.AudioStream.getDtmfType().

Property setter documentation:

Sets the RTP payload type for dual-tone multi-frequency (DTMF) digits. The primary usage is to send digits to the remote gateway to perform certain tasks, such as second-stage dialing. According to RFC 2833, the RTP payload type for DTMF is assigned dynamically, so it must be in the range of 96 and 127. One can use -1 to disable DTMF and free up the previous assigned type. This method cannot be called when the stream already joined an AudioGroup.

Java documentation for android.net.rtp.AudioStream.setDtmfType(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also