Browse code

test/unit: add unit test for sdpops script function sdp_remove_line_by_prefix()

Mikko Lehto authored on 29/02/2016 14:21:25
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+MESSAGE sip:bob@example.invalid SIP/2.0
2
+From: sip:alice@example.invalid;tag=45dfdf49
3
+To: sip:bob@example.invalid
4
+Call-ID: 1172299593a
5
+CSeq: 1 MESSAGE
6
+Content-Type: application/sdp
7
+Max-Forwards: 2
8
+X-Info: sdpops remove_line_by_prefix() test6 - matching line + end of buffer
9
+
10
+v=0
11
+o=- 370010 0 IN IP4 192.168.13.31
12
+s=MGW
13
+c=IN IP4 192.168.13.31
14
+t=0 0
15
+m=audio 22616 RTP/AVP 0 96 100
16
+a=rtpmap:96 telephone-event/8000
17
+a=rtpmap:100 X-NSE/8000
18
+a=X-cap1: 1 audio RTP/AVP 100
19
+a=X
20
+