2
0
Эх сурвалжийг харах

- bug_fix: CANCEL for not_found handled the same way as INVITE
- voicemail routed now directly (one odd hop saved)

Jiri Kuthan 23 жил өмнө
parent
commit
cdb1437a6f
1 өөрчлөгдсөн 4 нэмэгдсэн , 3 устгасан
  1. 4 3
      etc/iptel.cfg

+ 4 - 3
etc/iptel.cfg

@@ -493,11 +493,12 @@ route[3] {
 route[4] {
 	# user not found -- act as stateful UAS to avoid reporting
 	# on each INVITE retranmission
-	if (method=="INVITE" || method=="ACK" || method=="BYE") {
+	if (method=="INVITE" || method=="ACK" 
+			|| method=="BYE" || method=="CANCEL" ) {
 
 		/* requests to voicemail users will be fwded to voicemail */
 		if (isflagset(4)) {
-			rewritehostport("mail.iptel.org:5060");
+			rewritehostport("mail.iptel.org:6060");
 			append_hf("P-hint: OFFLINE-VOICEMAIL\r\n");
 			if (!t_relay()) {
 				sl_reply_error();
@@ -534,6 +535,6 @@ route[4] {
 reply_route[1] {
 	/* XX: note: unsafe if preloaded routes without username used */
 	revert_uri();
-	rewritehostport("mail.iptel.org:5060");
+	rewritehostport("mail.iptel.org:6060");
 	append_branch();
 }