Browse Source

add record route for notify

master
lazedo 6 years ago
parent
commit
e010ce8edd
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      kamailio/default.cfg

+ 4
- 0
kamailio/default.cfg View File

@ -468,6 +468,10 @@ route[HANDLE_IN_DIALOG_REQUESTS]
route(RELAY); route(RELAY);
} else if (t_check_trans()) { } else if (t_check_trans()) {
xlog("L_INFO", "$ci|log|allow message for a known transaction\n"); xlog("L_INFO", "$ci|log|allow message for a known transaction\n");
if ( is_method("NOTIFY") ) {
# Add Record-Route for in-dialog NOTIFY as per RFC 6665.
record_route();
}
route(RELAY); route(RELAY);
} else { } else {
xlog("L_INFO", "$ci|log|message had a to-tag but can't be loose routed\n"); xlog("L_INFO", "$ci|log|message had a to-tag but can't be loose routed\n");


Loading…
Cancel
Save