use of com.sun.voip.SdpInfo in project Openfire by igniterealtime.
the class SipUtil method getConferenceIdFromSdp.
/*
* We add an attribute to the sdp data when we send a request
* to a sip phone number
*/
public static String getConferenceIdFromSdp(Request request) {
byte[] rawContent = request.getRawContent();
if (rawContent == null) {
return null;
}
String sdpBody = new String(rawContent);
SdpInfo sdpInfo;
try {
sdpInfo = SdpManager.parseSdp(sdpBody);
} catch (ParseException e) {
return null;
}
return sdpInfo.getConferenceId();
}
Aggregations