aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-06-25 10:10:28 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-06-25 10:10:28 +0200
commit813b227be1ef6b5cdc52d8c9ce006309e321bd0d (patch)
treed89436377a9a44859362430d7a6bc300c66f589a
parent4d9e98f694f8c6688b9d38e552c604fe6769700f (diff)
callagent: Add a clearCallId that can be used in the used state
-rw-r--r--callagent/MGCPEndpoint.st7
1 files changed, 7 insertions, 0 deletions
diff --git a/callagent/MGCPEndpoint.st b/callagent/MGCPEndpoint.st
index 8b31fb0..9c9161a 100644
--- a/callagent/MGCPEndpoint.st
+++ b/callagent/MGCPEndpoint.st
@@ -130,10 +130,17 @@ Object subclass: MGCPEndpoint [
]
callId: aCallId [
+ <category: 'callid'>
self requireState: self class stateReserved.
callid := aCallId.
]
+ clearCallId [
+ <category: 'callid'>
+ self requireState: self class stateUsed.
+ callid := nil.
+ ]
+
connId [
<category: 'connid'>
^ connid