SipTransactionInfo.java 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. package com.genersoft.iot.vmp.gb28181.bean;
  2. import gov.nist.javax.sip.message.SIPRequest;
  3. import gov.nist.javax.sip.message.SIPResponse;
  4. public class SipTransactionInfo {
  5. private String callId;
  6. private String fromTag;
  7. private String toTag;
  8. private String viaBranch;
  9. public SipTransactionInfo(SIPResponse response) {
  10. this.callId = response.getCallIdHeader().getCallId();
  11. this.fromTag = response.getFromTag();
  12. this.toTag = response.getToTag();
  13. this.viaBranch = response.getTopmostViaHeader().getBranch();
  14. }
  15. public SipTransactionInfo() {
  16. }
  17. public String getCallId() {
  18. return callId;
  19. }
  20. public void setCallId(String callId) {
  21. this.callId = callId;
  22. }
  23. public String getFromTag() {
  24. return fromTag;
  25. }
  26. public void setFromTag(String fromTag) {
  27. this.fromTag = fromTag;
  28. }
  29. public String getToTag() {
  30. return toTag;
  31. }
  32. public void setToTag(String toTag) {
  33. this.toTag = toTag;
  34. }
  35. public String getViaBranch() {
  36. return viaBranch;
  37. }
  38. public void setViaBranch(String viaBranch) {
  39. this.viaBranch = viaBranch;
  40. }
  41. }