VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

About SDP #218

Closed ismaiI1 closed 4 years ago

ismaiI1 commented 4 years ago

How can we make shorten SDP body length?

Version

3.5.6

Expected behavior

This is normal SDP body

v=0
o=root 946248930 946248930 IN IP4 XXX.XXX.XX.205
s=Asterisk PBX 13.25.0
c=IN IP4 XXX.XXX.XX.205
t=0 0
m=audio 13234 RTP/AVP 8 0 3 18 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:3 GSM/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv`

Actual behavior

VialerSIPLib SDP body

Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): - 3799137044 3799137044 IN IP4 192.168.2.39
Session Name (s): pjmedia
Bandwidth Information (b): AS:352
Time Description, active time (t): 0 0
Session Attribute (a): X-nat:0
Media Description, name and address (m): audio 4000 RTP/AVP 3 8 0 120
Connection Information (c): IN IP4 192.168.2.39
Bandwidth Information (b): TIAS:64000
Media Attribute (a): rtcp:4001 IN IP4 192.168.2.39
Media Attribute (a): sendrecv
Media Attribute (a): rtpmap:3 GSM/8000
Media Attribute (a): rtpmap:8 PCMA/8000
Media Attribute (a): rtpmap:0 PCMU/8000
Media Attribute (a): rtpmap:120 telephone-event/8000
Media Attribute (a): fmtp:120 0-16
Media Attribute (a): ssrc:1869386874 cname:49badd920b28c20f
Media Description, name and address (m): video 4002 RTP/AVP 97
Connection Information (c): IN IP4 192.168.2.39
Bandwidth Information (b): TIAS:256000
Media Attribute (a): rtcp:4003 IN IP4 192.168.2.39
Media Attribute (a): sendrecv
Media Attribute (a): rtpmap:97 H264/90000
Media Attribute (a): fmtp:97 profile-level-id=42e01e; packetization-mode=1
Media Attribute (a): ssrc:1099435708 cname:49badd920b28c20f
Media Attribute (a): rtcp-fb:* nack pli