< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I believe that ptime applies to the entire m-line scope so it is only needed once as it applies to all codecs for that m-line.
-justin
From: resiprocate-users-bounces@xxxxxxxxxxxxxxxxxxxx [mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of resiprocate
Sent: Thursday, August 02, 2007 10:15 AM
To: resiprocate-users@xxxxxxxxxxxxxxxxxxxx
Subject: [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.