Adds a follow-entity attribute.

sip-call-params
Boris Grozev 11 years ago
parent 5ff04dbd67
commit 943e93d5c5

@ -24,8 +24,6 @@
import java.util.*;
/**
* The IQ used to communicate with Jirecon recording container.
*
* @author lishunyang
* @author Pawel Domas
*/
@ -50,6 +48,18 @@ public class JibriIq
private Status status = Status.UNDEFINED;
private String url = null;
public String getFollowEntity()
{
return followEntity;
}
public void setFollowEntity(String followEntity)
{
this.followEntity = followEntity;
}
private String followEntity = null;
public String getStreamId()
{
return streamId;
@ -100,6 +110,11 @@ public String getChildElementXML()
printStringAttribute(xml, "streamid", streamId);
}
if (followEntity != null)
{
printStringAttribute(xml, "follow-entity", followEntity);
}
Collection<PacketExtension> extensions = getExtensions();
if (extensions.size() > 0)

@ -63,6 +63,9 @@ public IQ parseIQ(XmlPullParser parser)
iq.setUrl(url);
if (streamId != null)
iq.setStreamId(streamId);
String followEntity = parser.getAttributeValue("", "follow-entity");
if (followEntity != null)
iq.setFollowEntity(followEntity);
}
else
{

Loading…
Cancel
Save