smalltalk
/
osmo-st-mgcp
Archived
1
0
Fork 0

callagent: Make it possible to store the connId here as well

This commit is contained in:
Holger Hans Peter Freyther 2011-06-24 21:02:21 +02:00
parent 4aff818878
commit 0645fa11d4
1 changed files with 12 additions and 1 deletions

View File

@ -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.
]
]