old mode 100644
new mode 100755
| | |
| | | package com.genersoft.iot.vmp.gb28181.bean; |
| | | |
| | | import com.genersoft.iot.vmp.utils.SerializeUtils; |
| | | import gov.nist.javax.sip.message.SIPRequest; |
| | | import gov.nist.javax.sip.message.SIPResponse; |
| | | |
| | | import javax.sip.ClientTransaction; |
| | | import javax.sip.Dialog; |
| | | import javax.sip.RequestEvent; |
| | | import javax.sip.ServerTransaction; |
| | | import javax.sip.header.*; |
| | | import javax.sip.message.Request; |
| | | |
| | | public class SubscribeInfo { |
| | | |
| | | |
| | | public SubscribeInfo(ServerTransaction serverTransaction, String id) { |
| | | public SubscribeInfo(SIPRequest request, String id) { |
| | | this.id = id; |
| | | SIPRequest request = (SIPRequest)serverTransaction.getRequest(); |
| | | this.request = request; |
| | | this.expires = request.getExpires().getExpires(); |
| | | EventHeader eventHeader = (EventHeader)request.getHeader(EventHeader.NAME); |
| | | this.eventId = eventHeader.getEventId(); |
| | | this.eventType = eventHeader.getEventType(); |
| | | |
| | | } |
| | | |
| | | public SubscribeInfo() { |
| | | } |
| | | |
| | | private String id; |
| | |
| | | */ |
| | | private String sn; |
| | | private int gpsInterval; |
| | | |
| | | /** |
| | | * 模拟的FromTag |
| | | */ |
| | | private String simulatedFromTag; |
| | | |
| | | /** |
| | | * 模拟的ToTag |
| | | */ |
| | | private String simulatedToTag; |
| | | |
| | | /** |
| | | * 模拟的CallID |
| | | */ |
| | | private String simulatedCallId; |
| | | |
| | | public String getId() { |
| | | return id; |
| | |
| | | public void setGpsInterval(int gpsInterval) { |
| | | this.gpsInterval = gpsInterval; |
| | | } |
| | | |
| | | public String getSimulatedFromTag() { |
| | | return simulatedFromTag; |
| | | } |
| | | |
| | | public void setSimulatedFromTag(String simulatedFromTag) { |
| | | this.simulatedFromTag = simulatedFromTag; |
| | | } |
| | | |
| | | public String getSimulatedCallId() { |
| | | return simulatedCallId; |
| | | } |
| | | |
| | | public void setSimulatedCallId(String simulatedCallId) { |
| | | this.simulatedCallId = simulatedCallId; |
| | | } |
| | | |
| | | public String getSimulatedToTag() { |
| | | return simulatedToTag; |
| | | } |
| | | |
| | | public void setSimulatedToTag(String simulatedToTag) { |
| | | this.simulatedToTag = simulatedToTag; |
| | | } |
| | | } |