summaryrefslogtreecommitdiff
path: root/pjmedia
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2008-01-14 13:30:33 +0000
committerBenny Prijono <bennylp@teluu.com>2008-01-14 13:30:33 +0000
commit84412cb1bd5f24387e8bee1483254c0b310aeaf2 (patch)
treea024811ede8f2393cb69dfbbae9584cd8ae024c1 /pjmedia
parent4c06c1effab4a4e6307393430ea0361d04d42ede (diff)
Ticket #448: PJSIP rejects incoming call with 415/Unsupported Media Type for INVITE containing video (thanks Alain Totouom)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1689 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia')
-rw-r--r--pjmedia/src/pjmedia/session.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/session.c b/pjmedia/src/pjmedia/session.c
index 5c283354..ffbbc544 100644
--- a/pjmedia/src/pjmedia/session.c
+++ b/pjmedia/src/pjmedia/session.c
@@ -493,7 +493,15 @@ PJ_DEF(pj_status_t) pjmedia_stream_info_from_sdp(
/* Now that we have codec info, get the codec param. */
si->param = PJ_POOL_ALLOC_T(pool, pjmedia_codec_param);
status = pjmedia_codec_mgr_get_default_param(mgr, &si->fmt, si->param);
- if (status != PJ_SUCCESS)
+
+ /* When direction is NONE (it means SDP negotiation has failed) we don't
+ * need to return a failure here, as returning failure will cause
+ * the whole SDP to be rejected. See ticket #:
+ * http://
+ *
+ * Thanks Alain Totouom
+ */
+ if (status != PJ_SUCCESS && si->dir != PJMEDIA_DIR_NONE)
return status;
/* Set fmtp mode for both local and remote */