- bug_fix: CANCEL for not_found handled the same way as INVITE
authorJiri Kuthan <jiri@iptel.org>
Tue, 24 Sep 2002 01:14:00 +0000 (01:14 +0000)
committerJiri Kuthan <jiri@iptel.org>
Tue, 24 Sep 2002 01:14:00 +0000 (01:14 +0000)
- voicemail routed now directly (one odd hop saved)

etc/iptel.cfg

index 279feb8..da8e697 100644 (file)
@@ -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();
 }