[sr-dev] git:master: sca: add missing braces for CANCEL handling in sample config.

Andrew Mortensen admorten at isc.upenn.edu
Wed Dec 5 22:25:41 CET 2012


Module: sip-router
Branch: master
Commit: 86c499e249bf43571d1cebca08821d30bff12dad
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=86c499e249bf43571d1cebca08821d30bff12dad

Author: Andrew Mortensen <admorten at isc.upenn.edu>
Committer: Andrew Mortensen <admorten at isc.upenn.edu>
Date:   Wed Dec  5 16:22:47 2012 -0500

sca: add missing braces for CANCEL handling in sample config.

- t_check_trans() if-block for CANCEL had no braces, but needs them
  after addition of route(SCA) before t_relay of CANCEL.
- Reported by Robert Boisvert

---

 modules/sca/doc/sca.cfg |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/sca/doc/sca.cfg b/modules/sca/doc/sca.cfg
index e8b44ac..06cba00 100644
--- a/modules/sca/doc/sca.cfg
+++ b/modules/sca/doc/sca.cfg
@@ -152,9 +152,10 @@ request_route {
 	# CANCEL processing
 	if (is_method("CANCEL"))
 	{
-		if (t_check_trans())
+		if (t_check_trans()) {
 			route(SCA);
 			t_relay();
+		}
 		exit;
 	}
 




More information about the sr-dev mailing list