• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AmrWbLib
      • AmrWb
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipConnectionFailedDelegate
      • SipRequestReceivedDelegate
      • SipResponseReceivedDelegate
      • SipTransactionCompleteDelegate
      • WindowsQos
    • SipLib.Collections
      • ThreadSafeGenericList<T>
    • SipLib.Core
      • ByteBufferInfo
      • CallProperties
      • Crypto
      • HTTPDigest
      • IPSocket
      • SIPAuthenticationHeader
      • SIPAuthorisationDigest
      • SIPAuthorisationHeadersEnum
      • SIPCallInfoHeader
      • SIPConstants
      • SIPContactHeader
      • SIPEndPoint
      • SIPEscape
      • SIPFrag
      • SIPFromHeader
      • SIPGeolocationHeader
      • SIPHeader
      • SIPHeaders
      • SIPMessage
      • SIPMessageTypesEnum
      • SIPMethods
      • SIPMethodsEnum
      • SIPPaiHeader
      • SIPParameters
      • SIPPpiHeader
      • SIPProtocolsEnum
      • SIPProtocolsType
      • SIPReplacesParameter
      • SIPRequest
      • SIPResponse
      • SIPResponseStatusCodes
      • SIPResponseStatusCodesEnum
      • SIPRoute
      • SIPRouteSet
      • SIPSchemesEnum
      • SIPSchemesType
      • SIPToHeader
      • SIPURI
      • SIPUserField
      • SIPValidationException
      • SIPValidationFieldsEnum
      • SIPViaHeader
      • SIPViaSet
      • SipUtils
      • TypeExtensions
    • SipLib.Dtls
      • AlertLevelsEnum
      • AlertTypesEnum
      • DtlsClientUdpTransport
      • DtlsServerUdpTransport
      • DtlsSrtpClient
      • DtlsSrtpServer
      • DtlsSrtpTransport
      • DtlsUtils
      • IDtlsSrtpPeer
      • IPacketTransformer
      • ITransformEngine
      • NetConvert
      • RTCDtlsFingerprint
      • RawPacket
      • SrtcpCryptoContext
      • SrtpPolicy
      • SrtpTransformEngine
      • SrtpTransformer
    • SipLib.Logging
      • SipLogger
    • SipLib.Media
      • AmrWbDecoder
      • AmrWbEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioMediaUtils
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Decoder
      • G722Encoder
      • G729Decoder
      • G729Encoder
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • Ld8k
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
      • SilenceAudioSampleSource
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpPacket
      • RtpPacketReceivedDelegate
      • RtpPacketSentDelegate
      • RtpReceiveStatistics
      • RtpUtils
      • SdesChunk
      • SdesItem
      • SdesItemType
      • SdesPacket
      • SenderInfo
      • SenderReport
    • SipLib.RtpCrypto
      • AesFunctions
      • CryptoAttribute
      • CryptoContext
      • CryptoSuites
      • InlineParams
      • MasterKeys
      • RocVals
      • RocValues
      • SRtpErrorsEnum
      • SRtpUtils
      • SessionKeys
      • SrtpDecryptor
      • SrtpEncryptor
      • SrtpLabelItem
      • SrtpTransformBase
    • SipLib.Sdp
      • ConnectionData
      • MediaDescription
      • MediaDirectionEnum
      • Origin
      • RtpMapAttribute
      • Sdp
      • SdpAnswerSettings
      • SdpAttribute
      • SdpUtils
      • SetupType
    • SipLib.TestCalls
      • IncomingTestCall
      • IncomingTestCallManager
      • IncomingTestCallSettings
      • OutgoingTestCallResults
      • SimpleOutgoingAudioTestCall
      • TestCallConstants
      • TestCallDurationUnitsEnum
      • TestCallEndedDelegateType
    • SipLib.Threading
      • QueuedActionWorkerTask
    • SipLib.Transactions
      • ClientInviteTransaction
      • ClientNonInviteTransaction
      • ServerInviteTransaction
      • ServerNonInviteTransaction
      • SipTimers
      • SipTransactionBase
      • SipTransport
      • TransactionRequestReceivedDelegate
      • TransactionResponseReceivedDelegate
      • TransactionStateEnum
      • TransactionTerminationReasonEnum
    • SipLib.Video
      • H264Depacketiser
      • H264Packetiser
      • H264Packetiser.H264Nal
      • H264RtpReceiver
      • H264RtpSender
      • RtpSendDelegate
      • RtpVP8Header
      • VP8RtpReceiver
      • VP8RtpSender
      • VideoRtpReceiver
      • VideoRtpSender

    Class AudioDestination

    This class receives audio RTP packets from an RtpChannel, decodes them and sends them to an audio destination by calling a delegate function that processes the received audio samples.

    The clock rate (sample rate) of the audio handled by this class must be either 8000 or 16000.

    See The AudioDestination Class for a description of how to use this class.

    Inheritance
    object
    AudioDestination
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Media
    Assembly: SipLib.dll
    Syntax
    public class AudioDestination

    Constructors

    | Edit this page View Source

    AudioDestination(MediaDescription, IAudioDecoder, RtpChannel, AudioDestinationDelegate?, int)

    Constructor

    Declaration
    public AudioDestination(MediaDescription AnsweredMediaDescription, IAudioDecoder Decoder, RtpChannel rtpChannel, AudioDestinationDelegate? destinationHandler, int DestinationSampleRate)
    Parameters
    Type Name Description
    MediaDescription AnsweredMediaDescription

    The MediaDescription object that was sent as the answer to the offered MediaDescription. This object contains the negotiated media type and codec type.

    IAudioDecoder Decoder

    IAudioDecoder to use to decode the received audio samples

    RtpChannel rtpChannel

    RtpChannel to receive audio RTP packets on.

    AudioDestinationDelegate destinationHandler

    Function to call to handle the decoded audio packets. If this is null then RTP packets are ignored.

    int DestinationSampleRate

    Sample rate expected by the destination handler. Must be 8000 or 16000 samples per second.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the audio clock rate is not 8000 or 16000, or if the DestinationSampleRate is not 8000 or 16000.

    Methods

    | Edit this page View Source

    SetDestinationHandler(AudioDestinationDelegate?)

    Sets the delegate function to call to process received audio packets.

    Declaration
    public void SetDestinationHandler(AudioDestinationDelegate? destinationHandler)
    Parameters
    Type Name Description
    AudioDestinationDelegate destinationHandler

    Audio samples destination handler function. If null then received RTP packets will be ignored but DTMF events will still be processed.

    Events

    | Edit this page View Source

    DtmfDigitReceived

    This event is fired when the end of a DTMF event is detected. This event is fired only once for each detected DTMF event even though multiple RTP packets for the same event may be received.

    Declaration
    public event DtmfDigitReceivedDelegate? DtmfDigitReceived
    Event Type
    Type Description
    DtmfDigitReceivedDelegate
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX