Module: sems Branch: master Commit: 713df5411b5078aa1044b0a2fb674fff8262e9bb URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=713df5411b5078aa1044b0a2fb674fff8262e9bb
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Mar 24 17:49:04 2014 +0100 sbc: profile option for subscription-less NOTIFY forwarding --- apps/sbc/SBCCallProfile.cpp | 2 ++ apps/sbc/etc/transparent.sbcprofile.conf | 3 +++ doc/Readme.sbc.txt | 7 +++++++ 3 files changed, 12 insertions(+), 0 deletions(-) diff --git a/apps/sbc/SBCCallProfile.cpp b/apps/sbc/SBCCallProfile.cpp index ecdc301..4c8693f 100644 --- a/apps/sbc/SBCCallProfile.cpp +++ b/apps/sbc/SBCCallProfile.cpp @@ -174,6 +174,8 @@ bool SBCCallProfile::readFromConfiguration(const string& name, aleg_next_hop = cfg.getParameter("aleg_next_hop"); + allow_subless_notify = cfg.getParameter("allow_subless_notify", "yes") == "yes"; + if (!readFilter(cfg, "header_filter", "header_list", headerfilter, false)) return false; diff --git a/apps/sbc/etc/transparent.sbcprofile.conf b/apps/sbc/etc/transparent.sbcprofile.conf index 307eca1..aa9a87d 100644 --- a/apps/sbc/etc/transparent.sbcprofile.conf +++ b/apps/sbc/etc/transparent.sbcprofile.conf @@ -68,6 +68,9 @@ ## append extra headers #append_headers="P-Source-IP: $si\r\nP-Source-Port: $sp\r\n" +## subscription-less NOTIFY pass through +#allow_subless_notify=no + ## reply translations # translate some 6xx class replies to 4xx class: #reply_translations="603=>488 Not acceptable here|600=>406 Not Acceptable" diff --git a/doc/Readme.sbc.txt b/doc/Readme.sbc.txt index 30a5b42..6ae15c0 100644 --- a/doc/Readme.sbc.txt +++ b/doc/Readme.sbc.txt @@ -627,6 +627,13 @@ Example: auth_aleg_pwd=$H(P-Auth-A-Pwd) +NOTIFY pass-through +------------------- +If in-dialog NOTIFY messages which do not belong to an established subscription +should not be passed through, the profile option + allow_subless_notify=no +may be set. This defaults to yes. + SIP Session Timer configuration ------------------------------- If SIP Session Timers are enabled for a profile, the session timers values _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
