Home --> Documentations --> PJMEDIA Reference

Macros | Functions

PJMEDIA specific error codes. More...

Macros

#define PJMEDIA_ERRNO_START   (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE)
 
#define PJMEDIA_ERRNO_END   (PJMEDIA_ERRNO_START + PJ_ERRNO_SPACE_SIZE - 1)
 
#define PJMEDIA_PORTAUDIO_ERRNO_START   (PJMEDIA_ERRNO_END-10000)
 
#define PJMEDIA_PORTAUDIO_ERRNO_END   (PJMEDIA_PORTAUDIO_ERRNO_START + 10000 -1)
 
#define PJMEDIA_ERRNO_FROM_PORTAUDIO(err)   ((int)PJMEDIA_PORTAUDIO_ERRNO_START-err)
 
#define PJMEDIA_LIBSRTP_ERRNO_START   (PJMEDIA_ERRNO_END-10200)
 
#define PJMEDIA_LIBSRTP_ERRNO_END   (PJMEDIA_LIBSRTP_ERRNO_START + 200 - 1)
 
#define PJMEDIA_ERRNO_FROM_LIBSRTP(err)   (PJMEDIA_LIBSRTP_ERRNO_START+err)
 
#define PJMEDIA_ERROR
 
#define PJMEDIA_SDP_EINSDP
 
#define PJMEDIA_SDP_EINVER
 
#define PJMEDIA_SDP_EINORIGIN
 
#define PJMEDIA_SDP_EINTIME
 
#define PJMEDIA_SDP_EINNAME
 
#define PJMEDIA_SDP_EINCONN
 
#define PJMEDIA_SDP_EMISSINGCONN
 
#define PJMEDIA_SDP_EINATTR
 
#define PJMEDIA_SDP_EINRTPMAP
 
#define PJMEDIA_SDP_ERTPMAPTOOLONG
 
#define PJMEDIA_SDP_EMISSINGRTPMAP
 
#define PJMEDIA_SDP_EINMEDIA
 
#define PJMEDIA_SDP_ENOFMT
 
#define PJMEDIA_SDP_EINPT
 
#define PJMEDIA_SDP_EINFMTP
 
#define PJMEDIA_SDP_EINRTCP
 
#define PJMEDIA_SDP_EINPROTO
 
#define PJMEDIA_SDP_EINBANDW
 
#define PJMEDIA_SDPNEG_EINSTATE
 
#define PJMEDIA_SDPNEG_ENOINITIAL
 
#define PJMEDIA_SDPNEG_ENOACTIVE
 
#define PJMEDIA_SDPNEG_ENONEG
 
#define PJMEDIA_SDPNEG_EMISMEDIA
 
#define PJMEDIA_SDPNEG_EINVANSMEDIA
 
#define PJMEDIA_SDPNEG_EINVANSTP
 
#define PJMEDIA_SDPNEG_EANSNOMEDIA
 
#define PJMEDIA_SDPNEG_ENOMEDIA
 
#define PJMEDIA_SDPNEG_NOANSCODEC
 
#define PJMEDIA_SDPNEG_NOANSTELEVENT
 
#define PJMEDIA_SDPNEG_NOANSUNKNOWN
 
#define PJMEDIA_SDP_EMEDIANOTEQUAL
 
#define PJMEDIA_SDP_EPORTNOTEQUAL
 
#define PJMEDIA_SDP_ETPORTNOTEQUAL
 
#define PJMEDIA_SDP_EFORMATNOTEQUAL
 
#define PJMEDIA_SDP_ECONNNOTEQUAL
 
#define PJMEDIA_SDP_EATTRNOTEQUAL
 
#define PJMEDIA_SDP_EDIRNOTEQUAL
 
#define PJMEDIA_SDP_EFMTPNOTEQUAL
 
#define PJMEDIA_SDP_ERTPMAPNOTEQUAL
 
#define PJMEDIA_SDP_ESESSNOTEQUAL
 
#define PJMEDIA_SDP_EORIGINNOTEQUAL
 
#define PJMEDIA_SDP_ENAMENOTEQUAL
 
#define PJMEDIA_SDP_ETIMENOTEQUAL
 
#define PJMEDIA_CODEC_EUNSUP
 
#define PJMEDIA_CODEC_EFAILED
 
#define PJMEDIA_CODEC_EFRMTOOSHORT
 
#define PJMEDIA_CODEC_EPCMTOOSHORT
 
#define PJMEDIA_CODEC_EFRMINLEN
 
#define PJMEDIA_CODEC_EPCMFRMINLEN
 
#define PJMEDIA_CODEC_EINMODE
 
#define PJMEDIA_CODEC_EBADBITSTREAM
 
#define PJMEDIA_EINVALIDIP
 
#define PJMEDIA_EASYMCODEC
 
#define PJMEDIA_EINVALIDPT
 
#define PJMEDIA_EMISSINGRTPMAP
 
#define PJMEDIA_EINVALIMEDIATYPE
 
#define PJMEDIA_EREMOTENODTMF
 
#define PJMEDIA_RTP_EINDTMF
 
#define PJMEDIA_RTP_EREMNORFC2833
 
#define PJMEDIA_EBADFMT
 
#define PJMEDIA_EUNSUPMEDIATYPE
 
#define PJMEDIA_RTP_EINPKT
 
#define PJMEDIA_RTP_EINPACK
 
#define PJMEDIA_RTP_EINVER
 
#define PJMEDIA_RTP_EINSSRC
 
#define PJMEDIA_RTP_EINPT
 
#define PJMEDIA_RTP_EINLEN
 
#define PJMEDIA_RTP_ESESSRESTART
 
#define PJMEDIA_RTP_ESESSPROBATION
 
#define PJMEDIA_RTP_EBADSEQ
 
#define PJMEDIA_RTP_EBADDEST
 
#define PJMEDIA_RTP_ENOCONFIG
 
#define PJMEDIA_ENOTCOMPATIBLE
 
#define PJMEDIA_ENCCLOCKRATE
 
#define PJMEDIA_ENCSAMPLESPFRAME
 
#define PJMEDIA_ENCTYPE
 
#define PJMEDIA_ENCBITS
 
#define PJMEDIA_ENCBYTES
 
#define PJMEDIA_ENCCHANNEL
 
#define PJMEDIA_ENOTVALIDWAVE
 
#define PJMEDIA_EWAVEUNSUPP
 
#define PJMEDIA_EWAVETOOSHORT
 
#define PJMEDIA_EFRMFILETOOBIG
 
#define PJMEDIA_EAVIUNSUPP
 
#define PJMEDIA_ENOSNDREC
 
#define PJMEDIA_ENOSNDPLAY
 
#define PJMEDIA_ESNDINDEVID
 
#define PJMEDIA_ESNDINSAMPLEFMT
 
#define PJMEDIA_SRTP_ECRYPTONOTMATCH
 
#define PJMEDIA_SRTP_EINKEYLEN
 
#define PJMEDIA_SRTP_ENOTSUPCRYPTO
 
#define PJMEDIA_SRTP_ESDPAMBIGUEANS
 
#define PJMEDIA_SRTP_ESDPDUPCRYPTOTAG
 
#define PJMEDIA_SRTP_ESDPINCRYPTO
 
#define PJMEDIA_SRTP_ESDPINCRYPTOTAG
 
#define PJMEDIA_SRTP_ESDPINTRANSPORT
 
#define PJMEDIA_SRTP_ESDPREQCRYPTO
 
#define PJMEDIA_SRTP_ESDPREQSECTP
 

Functions

pj_str_t pjmedia_strerror (pj_status_t status, char *buffer, pj_size_t bufsize)
 

Detailed Description

Macro Definition Documentation

#define PJMEDIA_ERRNO_START   (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE)

Start of error code relative to PJ_ERRNO_START_USER.

#define PJMEDIA_PORTAUDIO_ERRNO_START   (PJMEDIA_ERRNO_END-10000)

Mapping from PortAudio error codes to pjmedia error space.

#define PJMEDIA_ERRNO_FROM_PORTAUDIO (   err)    ((int)PJMEDIA_PORTAUDIO_ERRNO_START-err)

Convert PortAudio error code to PJMEDIA error code. PortAudio error code range: 0 >= err >= -10000

#define PJMEDIA_LIBSRTP_ERRNO_START   (PJMEDIA_ERRNO_END-10200)

Mapping from LibSRTP error codes to pjmedia error space.

#define PJMEDIA_ERRNO_FROM_LIBSRTP (   err)    (PJMEDIA_LIBSRTP_ERRNO_START+err)

Convert LibSRTP error code to PJMEDIA error code. LibSRTP error code range: 0 <= err < 200

#define PJMEDIA_ERROR

General/unknown PJMEDIA error.

#define PJMEDIA_SDP_EINSDP

Generic invalid SDP descriptor.

#define PJMEDIA_SDP_EINVER

Invalid SDP version.

#define PJMEDIA_SDP_EINORIGIN

Invalid SDP origin (o=) line.

#define PJMEDIA_SDP_EINTIME

Invalid SDP time (t=) line.

#define PJMEDIA_SDP_EINNAME

Empty SDP subject/name (s=) line.

#define PJMEDIA_SDP_EINCONN

Invalid SDP connection info (c=) line.

#define PJMEDIA_SDP_EMISSINGCONN

Missing SDP connection info line.

#define PJMEDIA_SDP_EINATTR

Invalid attribute (a=) line.

#define PJMEDIA_SDP_EINRTPMAP

Invalid rtpmap attribute.

#define PJMEDIA_SDP_ERTPMAPTOOLONG

rtpmap attribute is too long.

#define PJMEDIA_SDP_EMISSINGRTPMAP

rtpmap is missing for dynamic payload type.

#define PJMEDIA_SDP_EINMEDIA

Invalid SDP media (m=) line.

#define PJMEDIA_SDP_ENOFMT

No payload format in the media stream.

#define PJMEDIA_SDP_EINPT

Invalid payload type in media.

#define PJMEDIA_SDP_EINFMTP

Invalid SDP "fmtp" attribute.

#define PJMEDIA_SDP_EINRTCP

Invalid SDP "rtcp" attribute.

#define PJMEDIA_SDP_EINPROTO

Invalid SDP media transport protocol.

#define PJMEDIA_SDP_EINBANDW

Invalid SDP bandwidth info (b=) line.

#define PJMEDIA_SDPNEG_EINSTATE

Invalid state to perform the specified operation.

#define PJMEDIA_SDPNEG_ENOINITIAL

No initial local SDP.

#define PJMEDIA_SDPNEG_ENOACTIVE

No currently active SDP.

#define PJMEDIA_SDPNEG_ENONEG

No current offer or answer.

#define PJMEDIA_SDPNEG_EMISMEDIA

Media count mismatch in offer and answer.

#define PJMEDIA_SDPNEG_EINVANSMEDIA

Media type is different in the remote answer.

#define PJMEDIA_SDPNEG_EINVANSTP

Transport type is different in the remote answer.

#define PJMEDIA_SDPNEG_EANSNOMEDIA

No common media payload is provided in the answer.

#define PJMEDIA_SDPNEG_ENOMEDIA

No media is active after negotiation.

#define PJMEDIA_SDPNEG_NOANSCODEC

No suitable codec for remote offer.

#define PJMEDIA_SDPNEG_NOANSTELEVENT

No suitable telephone-event for remote offer.

#define PJMEDIA_SDPNEG_NOANSUNKNOWN

No suitable answer for unknown remote offer.

#define PJMEDIA_SDP_EMEDIANOTEQUAL

SDP media stream not equal.

#define PJMEDIA_SDP_EPORTNOTEQUAL

Port number in SDP media descriptor not equal.

#define PJMEDIA_SDP_ETPORTNOTEQUAL

Transport in SDP media descriptor not equal.

#define PJMEDIA_SDP_EFORMATNOTEQUAL

Media format in SDP media descriptor not equal.

#define PJMEDIA_SDP_ECONNNOTEQUAL

SDP connection description not equal.

#define PJMEDIA_SDP_EATTRNOTEQUAL

SDP attributes not equal.

#define PJMEDIA_SDP_EDIRNOTEQUAL

SDP media direction not equal.

#define PJMEDIA_SDP_EFMTPNOTEQUAL

SDP fmtp attribute not equal.

#define PJMEDIA_SDP_ERTPMAPNOTEQUAL

SDP ftpmap attribute not equal.

#define PJMEDIA_SDP_ESESSNOTEQUAL

SDP session descriptor not equal.

#define PJMEDIA_SDP_EORIGINNOTEQUAL

SDP origin not equal.

#define PJMEDIA_SDP_ENAMENOTEQUAL

SDP name/subject not equal.

#define PJMEDIA_SDP_ETIMENOTEQUAL

SDP time not equal.

#define PJMEDIA_CODEC_EUNSUP

Unsupported codec.

#define PJMEDIA_CODEC_EFAILED

Codec internal creation error.

#define PJMEDIA_CODEC_EFRMTOOSHORT

Codec frame is too short.

#define PJMEDIA_CODEC_EPCMTOOSHORT

PCM buffer is too short.

#define PJMEDIA_CODEC_EFRMINLEN

Invalid codec frame length.

#define PJMEDIA_CODEC_EPCMFRMINLEN

Invalid PCM frame length.

#define PJMEDIA_CODEC_EINMODE

Invalid mode.

#define PJMEDIA_CODEC_EBADBITSTREAM

Bad or corrupted bitstream.

#define PJMEDIA_EINVALIDIP

Invalid remote IP address (in SDP).

#define PJMEDIA_EASYMCODEC

Asymetric codec is not supported.

#define PJMEDIA_EINVALIDPT

Invalid payload type.

#define PJMEDIA_EMISSINGRTPMAP

Missing rtpmap.

#define PJMEDIA_EINVALIMEDIATYPE

Invalid media type.

#define PJMEDIA_EREMOTENODTMF

Remote does not support DTMF.

#define PJMEDIA_RTP_EINDTMF

Invalid DTMF digit.

#define PJMEDIA_RTP_EREMNORFC2833

Remote does not support RFC 2833

#define PJMEDIA_EBADFMT

Invalid or bad format

#define PJMEDIA_EUNSUPMEDIATYPE

Unsupported media type.

#define PJMEDIA_RTP_EINPKT

General invalid RTP packet error.

#define PJMEDIA_RTP_EINPACK

Invalid RTP packet packing.

#define PJMEDIA_RTP_EINVER

Invalid RTP packet version.

#define PJMEDIA_RTP_EINSSRC

RTP SSRC id mismatch.

#define PJMEDIA_RTP_EINPT

RTP payload type mismatch.

#define PJMEDIA_RTP_EINLEN

Invalid RTP packet length.

#define PJMEDIA_RTP_ESESSRESTART

RTP session restarted.

#define PJMEDIA_RTP_ESESSPROBATION

RTP session in probation

#define PJMEDIA_RTP_EBADSEQ

Bad RTP sequence number

#define PJMEDIA_RTP_EBADDEST

RTP media port destination is not configured

#define PJMEDIA_RTP_ENOCONFIG

RTP is not configured.

#define PJMEDIA_ENOTCOMPATIBLE

Generic incompatible port error.

#define PJMEDIA_ENCCLOCKRATE

Incompatible clock rate

#define PJMEDIA_ENCSAMPLESPFRAME

Incompatible samples per frame

#define PJMEDIA_ENCTYPE

Incompatible media type

#define PJMEDIA_ENCBITS

Incompatible bits per sample

#define PJMEDIA_ENCBYTES

Incompatible bytes per frame

#define PJMEDIA_ENCCHANNEL

Incompatible number of channels

#define PJMEDIA_ENOTVALIDWAVE

Not a valid WAVE file.

#define PJMEDIA_EWAVEUNSUPP

Unsupported WAVE file.

#define PJMEDIA_EWAVETOOSHORT

Wave file too short.

#define PJMEDIA_EFRMFILETOOBIG

Sound frame is too large for file buffer.

#define PJMEDIA_EAVIUNSUPP

Unsupported AVI file.

#define PJMEDIA_ENOSNDREC

No suitable audio capture device.

#define PJMEDIA_ENOSNDPLAY

No suitable audio playback device.

#define PJMEDIA_ESNDINDEVID

Invalid sound device ID.

#define PJMEDIA_ESNDINSAMPLEFMT

Invalid sample format for sound device.

#define PJMEDIA_SRTP_ECRYPTONOTMATCH

SRTP crypto-suite name not match the offerer tag.

#define PJMEDIA_SRTP_EINKEYLEN

Invalid SRTP key length for specific crypto.

#define PJMEDIA_SRTP_ENOTSUPCRYPTO

Unsupported SRTP crypto-suite.

#define PJMEDIA_SRTP_ESDPAMBIGUEANS

SRTP SDP contains ambigue answer.

#define PJMEDIA_SRTP_ESDPDUPCRYPTOTAG

Duplicated crypto tag.

#define PJMEDIA_SRTP_ESDPINCRYPTO

Invalid crypto attribute.

#define PJMEDIA_SRTP_ESDPINCRYPTOTAG

Invalid crypto tag.

#define PJMEDIA_SRTP_ESDPINTRANSPORT

Invalid SDP media transport for SRTP.

#define PJMEDIA_SRTP_ESDPREQCRYPTO

SRTP crypto attribute required in SDP.

#define PJMEDIA_SRTP_ESDPREQSECTP

Secure transport required in SDP media descriptor.

Function Documentation

pj_str_t pjmedia_strerror ( pj_status_t  status,
char *  buffer,
pj_size_t  bufsize 
)

Get error message for the specified error code. Note that this function is only able to decode PJMEDIA specific error code. Application should use pj_strerror(), which should be able to decode all error codes belonging to all subsystems (e.g. pjlib, pjmedia, pjsip, etc).

Parameters
statusThe error code.
bufferThe buffer where to put the error message.
bufsizeSize of the buffer.
Returns
The error message as NULL terminated string, wrapped with pj_str_t.

 


PJMEDIA small footprint Open Source media stack
Copyright (C) 2006-2008 Teluu Inc.