From fc60be6e1fe8e9fa5788c6e9f8d4315e106f147a Mon Sep 17 00:00:00 2001 From: paulc Date: Thu, 6 Jul 2006 13:53:59 +0000 Subject: [PATCH] The REGISTER and OPTIONS methods are enabled by default. git-svn-id: http://voip.null.ro/svn/yate@953 acf43c95-373e-0410-b603-e72c3f656dc1 --- conf.d/ysipchan.conf.sample | 4 ++-- modules/ysipchan.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf.d/ysipchan.conf.sample b/conf.d/ysipchan.conf.sample index 04ce10c1..3e48ece0 100644 --- a/conf.d/ysipchan.conf.sample +++ b/conf.d/ysipchan.conf.sample @@ -11,10 +11,10 @@ ;useragent=YATE/0.9.0 ; registrar: bool: Allow the SIP module to receive registration requests -;registrar=disable +;registrar=enable ; options: bool: Build and send a default 200 answer to OPTIONS requests -;options=disable +;options=enable ; prack: bool: Enable acknowledging provisional 1xx answers (RFC 3262) ;prack=disable diff --git a/modules/ysipchan.cpp b/modules/ysipchan.cpp index f1ebf053..cb4184fc 100644 --- a/modules/ysipchan.cpp +++ b/modules/ysipchan.cpp @@ -858,9 +858,9 @@ YateSIPEngine::YateSIPEngine(YateSIPEndPoint* ep) addAllowed("INVITE"); addAllowed("BYE"); addAllowed("CANCEL"); - if (s_cfg.getBoolValue("general","registrar")) + if (s_cfg.getBoolValue("general","registrar",true)) addAllowed("REGISTER"); - if (s_cfg.getBoolValue("general","options")) + if (s_cfg.getBoolValue("general","options",true)) addAllowed("OPTIONS"); m_prack = s_cfg.getBoolValue("general","prack"); if (m_prack)