We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86c1d56 commit 4508553Copy full SHA for 4508553
modules/kamailio/config/kamailio.cfg
@@ -242,7 +242,7 @@ request_route {
242
record_route();
243
244
# Store Contact URI for later use in dialog, especially for BYE requests
245
- if (is_method("INVITE") && has_body("application/sdp") && $dlg_var(direction)== "in") {
+ if (is_method("INVITE") && has_body("application/sdp") && $dlg_var(direction)== "in" && $rr_count > 1) {
246
# Store the Contact header from 200 OK responses to INVITE
247
$dlg_var(target_contact) = $ct;
248
if ($shv(debug) == 1) xlog('L_WARN', "[DEV] - $ci $rm-$cs - Stored Contact: $dlg_var(target_contact) \n");
0 commit comments