OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.29k stars 582 forks source link

[BUG] the entity created wtih b2bua_trigger_scenario does not follow loose route for in-dialog ACK #3295

Open andingv opened 10 months ago

andingv commented 10 months ago

OpenSIPS version you are running master branch from 20240126, git rev 32539ef8b

Describe the bug Dear OpenSIPS experts, I have noticed that when the B2BUA sends a new request out of dialog using b2b_trigger_scenario: b2b_trigger_scenario("refer", "n", "conf,$var(confuri),$var(mrf)", $avp(header), $avp(replaces), "callee,$var(uri),$var(srvcc)", $avp(header), $avp(replaces)); The outbound proxy set for the callee entity overrides the normal routing of in-dialog requests.

Scenario: Conference user : REFER -> Load-balancer -> b2bua : INVITE -> AS

The B2BUA should get the REFER , accept it and then craft a new INVITE where it simply adds a Replaces header and sends it onwards. The AS does some magic upon INVITE with Replaces to bridge the request but for the B2BUA, the AS is represented as a domain name that has a SRV record with many IPs. It is stored in the $var(srvcc) in the above code line.

The B2BUA receiving the REFER upon sending new request out of dialog performs DNS resolve as expected to get one of the AS IPs from the FQDN stored in $var(srvcc). That is required for initial INVITE and it works.

Then the AS replies 200 OK with Contact set to the specific server that has AAAA or A records and may contain a Route header.

Actual behavior

The B2BUA runs a new DNS SRV query with "$var(srvcc)" parameter of the callee sends the ACK to another server obtained from SRV lookup.

I could not find how to force it to stick to routing the ACK by the Route and Contact headers, please advice.

To Reproduce I do not have a sipp scenario for this as of yet, need to use a real conference user.

Expected behavior Having received a 200 OK -> B2BUA must send an ACK to to the address indicated in the Route header (if present) or remote target uri otherwise.

Relevant System Logs Will be shared upon request.

OS/environment information

Additional context

github-actions[bot] commented 9 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 9 months ago

Still relevant

github-actions[bot] commented 9 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 9 months ago

do not close

On Wed, 6 Mar 2024 at 07:31, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-1980174265, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ4MVJHBANIR33FJTZTYW2Z4DAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQGE3TIMRWGU . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 8 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 8 months ago

still relevant

andingv commented 7 months ago

Should the dst_uri be copied to the dialog for the entity created via b2b_trigger_scenario (call stack from there is b2bl_bridge -> b2bl_create_new_entit -> bridging_start_new_ent -> bridging_new_client) ?

github-actions[bot] commented 7 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 7 months ago

do not close

On Fri, 3 May 2024 at 08:32, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2092387466, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ666P5MAQ4K7R2HXRTZAMVPHAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJSGM4DONBWGY . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 6 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 6 months ago

do not close

On Fri, 24 May 2024 at 08:34, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2128671377, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ4TCKHVEQKN4WCC2TTZD3NPBAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGY3TCMZXG4 . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 5 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 5 months ago

still relevant

On Mon, 10 Jun 2024 at 08:37, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2157444150, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ3ANOFD643EELBJZXTZGVCRXAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJXGQ2DIMJVGA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 5 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 5 months ago

do not close

On Wed, 26 Jun 2024 at 08:37, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2190919301, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ3XVMCOUR6JMOMXW7LZJJORPAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQHEYTSMZQGE . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 4 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 4 months ago

do not close

On Fri, 12 Jul 2024 at 08:36, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2224897550, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ5FOB6KQJPP55DTNTLZL52OZAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRUHA4TONJVGA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 3 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 3 months ago

do not close

On Tue, 20 Aug 2024 at 08:38, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2298079187, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJYRPTSZSIAJZIMYAR3ZSLP6VAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJYGA3TSMJYG4 . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 3 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 2 months ago

still relevant

github-actions[bot] commented 2 months ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 2 months ago

do not close

On Sun, 29 Sept 2024 at 08:39, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2381131456, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ5A63OG6HEYERUO2ILZY6OCRAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGEZTCNBVGY . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 month ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 1 month ago

do not close

On Thu, 17 Oct 2024 at 08:41, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2418653171, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ6RZ4LILNU7ZY2O57DZ35LZPAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJYGY2TGMJXGE . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 month ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

andingv commented 3 weeks ago

do not close

On Sat, 2 Nov 2024 at 07:40, github-actions[bot] @.***> wrote:

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

— Reply to this email directly, view it on GitHub https://github.com/OpenSIPS/opensips/issues/3295#issuecomment-2452895778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXZGJ4ERLP2Y22HHZ4ZK3LZ6RXUNAVCNFSM6AAAAABCWNWXXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSHA4TKNZXHA . You are receiving this because you authored the thread.Message ID: @.***>

github-actions[bot] commented 1 week ago

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.