File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .bin binary
1
2
* .ulaw binary
Original file line number Diff line number Diff line change
1
+ ��^X�����D���
Original file line number Diff line number Diff line change @@ -96,6 +96,19 @@ def test_bad_version(self):
96
96
97
97
98
98
class RtpPacketTest (TestCase ):
99
+ def test_dtmf (self ):
100
+ data = load ('rtp_dtmf.bin' )
101
+ packet = RtpPacket .parse (data )
102
+ self .assertEqual (packet .version , 2 )
103
+ self .assertEqual (packet .extension , 0 )
104
+ self .assertEqual (packet .marker , 1 )
105
+ self .assertEqual (packet .payload_type , 101 )
106
+ self .assertEqual (packet .sequence_number , 24152 )
107
+ self .assertEqual (packet .timestamp , 4021352124 )
108
+ self .assertEqual (packet .csrc , [])
109
+ self .assertEqual (len (packet .payload ), 4 )
110
+ self .assertEqual (bytes (packet ), data )
111
+
99
112
def test_no_ssrc (self ):
100
113
data = load ('rtp.bin' )
101
114
packet = RtpPacket .parse (data )
You can’t perform that action at this time.
0 commit comments