diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-06-24 21:02:21 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-06-24 21:02:21 +0200 |
commit | 0645fa11d46434b20764a5c7fc3bd376ed3e752e (patch) | |
tree | 0db25ebf35b337e8cab1a7fed0bd219414ed8548 | |
parent | 4aff81887842942f7787a889097a7cb973f7965c (diff) |
callagent: Make it possible to store the connId here as well
-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. + ] ] |