< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] About the codec ptime of SDP


Hi all. I have created this SDP contents before I make the invite(I want to set the ptime for every codec):
 
v=0
o=- 10974059 10974059 IN IP4 192.168.1.100
s=CALL
c=IN IP4 192.168.1.100
t=0 0
m=audio 21524 RTP/AVP 4 18 3 98 8 0 101
a=fmtp:101 0-15
a=rtpmap:4 G723/8000
a=ptime:20
a=rtpmap:18 G729/8000
a=ptime:20
a=rtpmap:3 GSM/8000
a=ptime:20
a=rtpmap:98 iLBC/8000
a=ptime:20
a=rtpmap:8 PCMA/8000
a=ptime:20
a=rtpmap:0 PCMU/8000
a=ptime:20
a=rtpmap:101 telephone-event/8000
 
//////////////////////////////////////////////////////////////////////////////////////////////////////
Data content(SDP.c_str);
 HeaderFieldValue hfv(SDP.data(), SDP.size()); 
 Mime type("application", "sdp");
 SdpContents sdp(&hfv, type);
///////////////////////////////////////////////////////////////////////////////////////////////////////
 
But I used this SDP to make the invite and check the SIP mesage by ethereal, the invite SDP contents is :
 
v=0
o=- 12370334 12370334 IN IP4 192.168.1.100
s=CALL
c=IN IP4 192.168.1.100
t=0 0
m=audio 20104 RTP/AVP 4 18 3 98 8 0 101
a=fmtp:101 0-15
a=ptime:20
a=ptime:20
a=ptime:20
a=ptime:20
a=ptime:20
a=ptime:20
a=rtpmap:4 G723/8000
a=rtpmap:18 G729/8000
a=rtpmap:3 GSM/8000
a=rtpmap:98 iLBC/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
 
 
Why reSIProcate modify my SDP ?
 
If I just want to set the ptime for  iLBC and G723, then how can I make the SDP contents?
 
Thanks.