PJSIP terminates call after receiving modified SDP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Found how to fix this problem.
It totally removes video media (m=video 0 RTP/AVP 97 96 ...) from SDP, if
we answer without video.

Patch:

File: sdp_neg.c

/* Create complete answer for remote's offer. */
static pj_status_t create_answer( pj_pool_t *pool,
                  pj_bool_t prefer_remote_codec_order,
                  const pjmedia_sdp_session *initial,
                  const pjmedia_sdp_session *offer,
                  pjmedia_sdp_session **p_answer)
{

..............................

    /* Add the media answer */
-    answer->media[answer->media_count++] = am;
+    if (am->desc.port != 0)
+        answer->media[answer->media_count++] = am;



2012/5/30 Dmitry (MicroSIP) <info at microsip.org.ua>

> My SIP provider rewrites SDP (answer on video call without video).
>
> Original lines:
>
> m=video 0 RTP/AVP 97 96
> c=IN IP4 212.53.40.76
> b=TIAS:256000
>
> Modified:
>
> m=video 23124 RTP/AVP 97 96
> c=IN IP4 212.53.40.76
> b=TIAS:256000
> a=inactive
>
> PJSIP terminates call after receiving modified SDP.
>
> Is modified SDP conforms to SIP standard? Is this problem of SIP server or
> PJSIP?
> Thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120530/92707b66/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux