A good resource is: stack/test/testSdp.cxx
medium.addAttribute(Data(“sendonly”)) should work
fine.
Scott
From: resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxxxxxxx] On Behalf Of Nilay
Tripathi
Sent: Thursday, March 15, 2007 9:39 AM
To: resiprocate-devel@xxxxxxxxxxxxxxxxxxxx;
resiprocate-devel@xxxxxxxxxxxxxxxxxxx
Subject: [reSIProcate] Setting SDP Media attributes
Hi,
I am trying to set the media attribute in SDP for call hold/un-hold.
Using SdpContents class's 'Medium' subclass member functions,
clearAttribute(...) and addAttribute(...),
does not reflect any attribute (like sendonly or recvonly etc) into the
re-invite sdp.
I am not getting any clue how to set it in the sdp in the first place.
Need some help !! Thanks :)
Regards,
Nilay