lib/oversip/sip/proxy.rb in oversip-1.3.0 vs lib/oversip/sip/proxy.rb in oversip-1.3.1

- old
+ new

@@ -171,10 +171,10 @@ def add_routing_headers # Don't add routing headers again if we are in DNS failover within the same Proxy instance. # But we must run this method if it's an incoming request asking for Outbound usage (in this # case @num_target is nil so the method continues). - return if @num_target and @num_target > 0 + return if @num_target and @num_target > 1 add_rr_path = false # NOTE: As per RFC 6665 the proxy MUST add Record-Route to in-dialog NOTIFY's. if (@request.initial? and @request.record_routing_aware?) or @request.sip_method == :NOTIFY \ No newline at end of file