From 813b227be1ef6b5cdc52d8c9ce006309e321bd0d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 25 Jun 2011 10:10:28 +0200 Subject: [PATCH] callagent: Add a clearCallId that can be used in the used state --- callagent/MGCPEndpoint.st | 7 +++++++ 1 file changed, 7 insertions(+) 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 [ + self requireState: self class stateReserved. callid := aCallId. ] + clearCallId [ + + self requireState: self class stateUsed. + callid := nil. + ] + connId [ ^ connid