From 883911360b9cb89f2b9da545a5745a34d1eaf6f4 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 2 Dec 2010 10:41:46 +0000 Subject: Fixed #1170 (Assertion when receiving updated SDP offer with all media lines removed): - pjsua_media.c checks if audio media is present in the offer; if not, do not set any answer - sip_inv.c checks if app has supplied an answer after on_rx_offer() callback is called, and returnd 488 (Not Acceptable) if not (previously, it will return 200/OK without SDP!) - added a SIPp scenario file to reproduce this git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3383 74dad513-b988-da41-8d7b-12977e46ad98 --- tests/pjsua/scripts-sipp/uas-reinv-no-media.xml | 116 ++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 tests/pjsua/scripts-sipp/uas-reinv-no-media.xml (limited to 'tests') diff --git a/tests/pjsua/scripts-sipp/uas-reinv-no-media.xml b/tests/pjsua/scripts-sipp/uas-reinv-no-media.xml new file mode 100644 index 00000000..1c16fdd4 --- /dev/null +++ b/tests/pjsua/scripts-sipp/uas-reinv-no-media.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ;tag=[call_number] + To[$3] + Call-ID: [call_id] + Cseq: 1 INVITE + Contact: sip:sipp@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Type: application/sdp + Content-Length: [len] + + v=0 + o=- 2 2 IN IP4 192.168.0.15 + s=pjmedia + c=IN IP4 192.168.0.15 + t=0 0 + m=audio 0 RTP/AVP 0 + + ]]> + + + + + + + ;tag=[call_number] + To[$3] + Call-ID: [call_id] + Cseq: 1 INVITE + Contact: sip:sipp@[local_ip]:[local_port] + Max-Forwards: 70 + Content-Length: 0 + + ]]> + + + + + + + + + + + + + + + -- cgit v1.2.3