Browse code

kamailio.cfg: use route(RELAY) instead of t_relay()

- coherent exit from config when sending out

Daniel-Constantin Mierla authored on 28/01/2013 15:54:44
Showing 1 changed files
... ...
@@ -463,8 +463,9 @@ request_route {
463 463
 	# CANCEL processing
464 464
 	if (is_method("CANCEL"))
465 465
 	{
466
-		if (t_check_trans())
467
-			t_relay();
466
+		if (t_check_trans()) {
467
+			route(RELAY);
468
+		}
468 469
 		exit;
469 470
 	}
470 471
 
... ...
@@ -513,8 +514,6 @@ request_route {
513 513
 
514 514
 	# user location service
515 515
 	route(LOCATION);
516
-
517
-	route(RELAY);
518 516
 }
519 517
 
520 518
 
... ...
@@ -604,7 +603,7 @@ route[WITHINDLG] {
604 604
 					# no loose-route, but stateful ACK;
605 605
 					# must be an ACK after a 487
606 606
 					# or e.g. 404 from upstream server
607
-					t_relay();
607
+					route(RELAY);
608 608
 					exit;
609 609
 				} else {
610 610
 					# ACK without matching transaction ... ignore and discard
... ...
@@ -671,6 +670,9 @@ route[LOCATION] {
671 671
 	{
672 672
 		setflag(FLT_ACCMISSED);
673 673
 	}
674
+
675
+	route(RELAY);
676
+	exit;
674 677
 }
675 678
 
676 679
 # Presence server route