diff options
Diffstat (limited to 'callagent')
-rw-r--r-- | callagent/MGCPEndpoint.st | 13 |
1 files changed, 12 insertions, 1 deletions
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| <category: 'MGCP-Callagent'> <comment: 'I am one endpoint. I have a state...'> @@ -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 [ + <category: 'connid'> + ^ connid + ] + + connId: aConnId [ + self requireState: self class stateUsed. + connid := aConnId. + ] ] |