diff --git a/callagent/MGCPEndpoint.st b/callagent/MGCPEndpoint.st index fd2750b..8b31fb0 100644 --- a/callagent/MGCPEndpoint.st +++ b/callagent/MGCPEndpoint.st @@ -17,7 +17,7 @@ " Object subclass: MGCPEndpoint [ - | nr trunk state callid sdp| + | nr trunk state callid connid sdp| @@ -94,6 +94,7 @@ Object subclass: MGCPEndpoint [ state := self class stateUnused. sdp := nil. callid := nil. + connid := nil. ] tryBlock [ @@ -132,4 +133,14 @@ Object subclass: MGCPEndpoint [ self requireState: self class stateReserved. callid := aCallId. ] + + connId [ + + ^ connid + ] + + connId: aConnId [ + self requireState: self class stateUsed. + connid := aConnId. + ] ]