|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJMEDIA Reference
PJMEDIA specific error codes.
Define 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
General/unknown PJMEDIA error.
| #define PJMEDIA_SDP_EINSDP |
Generic invalid SDP descriptor.
| #define PJMEDIA_SDP_EINVER |
| #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_SDPNEG_EINSTATE |
Invalid state to perform the specified operation.
| #define PJMEDIA_SDPNEG_ENOINITIAL |
| #define PJMEDIA_SDPNEG_ENOACTIVE |
| #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 |
| #define PJMEDIA_SDP_ENAMENOTEQUAL |
SDP name/subject not equal.
| #define PJMEDIA_SDP_ETIMENOTEQUAL |
| #define PJMEDIA_CODEC_EUNSUP |
| #define PJMEDIA_CODEC_EFAILED |
Codec internal creation error.
| #define PJMEDIA_CODEC_EFRMTOOSHORT |
Codec frame is too short.
| #define PJMEDIA_CODEC_EPCMTOOSHORT |
| #define PJMEDIA_CODEC_EFRMINLEN |
Invalid codec frame length.
| #define PJMEDIA_CODEC_EPCMFRMINLEN |
Invalid PCM frame length.
| #define PJMEDIA_CODEC_EINMODE |
| #define PJMEDIA_EINVALIDIP |
Invalid remote IP address (in SDP).
| #define PJMEDIA_EASYMCODEC |
Asymetric codec is not supported.
| #define PJMEDIA_EINVALIDPT |
| #define PJMEDIA_EMISSINGRTPMAP |
| #define PJMEDIA_EINVALIMEDIATYPE |
| #define PJMEDIA_EREMOTENODTMF |
Remote does not support DTMF.
| #define PJMEDIA_RTP_EINDTMF |
| #define PJMEDIA_RTP_EREMNORFC2833 |
Remote does not support RFC 2833
| #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 |
| #define PJMEDIA_RTP_EINPT |
RTP payload type mismatch.
| #define PJMEDIA_RTP_EINLEN |
Invalid RTP packet length.
| #define PJMEDIA_RTP_ESESSRESTART |
| #define PJMEDIA_RTP_ESESSPROBATION |
| #define PJMEDIA_RTP_EBADSEQ |
| #define PJMEDIA_RTP_EBADDEST |
RTP media port destination is not configured
| #define PJMEDIA_RTP_ENOCONFIG |
| #define PJMEDIA_ENOTCOMPATIBLE |
Generic incompatible port error.
| #define PJMEDIA_ENCCLOCKRATE |
| #define PJMEDIA_ENCSAMPLESPFRAME |
Incompatible samples per frame
Incompatible bits per sample
Incompatible bytes per frame
| #define PJMEDIA_ENCCHANNEL |
Incompatible number of channels
| #define PJMEDIA_ENOTVALIDWAVE |
| #define PJMEDIA_EWAVEUNSUPP |
| #define PJMEDIA_EWAVETOOSHORT |
| #define PJMEDIA_EFRMFILETOOBIG |
Sound frame is too large for file buffer.
| #define PJMEDIA_ENOSNDREC |
No suitable audio capture device.
| #define PJMEDIA_ENOSNDPLAY |
No suitable audio playback device.
| #define PJMEDIA_ESNDINDEVID |
| #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 |
| #define PJMEDIA_SRTP_ESDPINCRYPTO |
Invalid crypto attribute.
| #define PJMEDIA_SRTP_ESDPINCRYPTOTAG |
| #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
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:
-
| status | The error code. |
| buffer | The buffer where to put the error message. |
| bufsize | Size 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.
|
|