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)