From 1f4723a902e6307b17dafb7cc4be0c1204d43cf1 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 6 Aug 2012 01:26:03 +0200 Subject: [PATCH] callagent: Respond with a failure to OPTIONS requests There is no proper implementation yet, also no way for an application to tweak that behavior but there is also no need for that right now. --- callagent/SIPCallAgent.st | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/callagent/SIPCallAgent.st b/callagent/SIPCallAgent.st index 47f8987..1bc9c3f 100644 --- a/callagent/SIPCallAgent.st +++ b/callagent/SIPCallAgent.st @@ -37,6 +37,17 @@ SIPByeRequest extend [ ] ] +SIPOptionsRequest extend [ + sipDispatchNewDialog: aDialog on: aUserAgent [ + + aUserAgent + respondWith: 481 + phrase: 'Call Leg/Transaction Does Not Exist' + on: self + dialog: aDialog. + ] +] + Object subclass: SIPTransport [ | queue handler |