From 868399d80c467ccfed828cebb4ee533233dcba20 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 10 Jun 2011 14:00:23 +0200 Subject: [PATCH] callagent: Add the AUEP command.. --- callagent/MGCPCommands.st | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/callagent/MGCPCommands.st b/callagent/MGCPCommands.st index 2be7190..8fa2c6e 100644 --- a/callagent/MGCPCommands.st +++ b/callagent/MGCPCommands.st @@ -31,6 +31,13 @@ Object subclass: MGCPCommand [ yourself ] + MGCPCommand class >> create: anEndpoint transId: aTransId [ + ^ (self new) + transactionId: aTransId; + endpoint: anEndpoint; + yourself + ] + verb: aVerb [ verb := aVerb. @@ -78,7 +85,7 @@ Object subclass: MGCPCommand [ cr; nl. "write the parameters" - params do: [:each | + self params do: [:each | out nextPutAll: each; cr; nl. @@ -138,3 +145,14 @@ MGCPCommand subclass: MGCPDLCXCommand [ yourself ] ] + +MGCPCommand subclass: MGCPAUEPComamnd [ + + + + MGCPAUEPComamnd class >> createAUEP: anEndpoint transId: aTransId [ + ^ (self create: anEndpoint transId: aTransId) + verb: 'AUEP'; + yourself + ] +]