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>