Hi Volkan,
A simpler approach (with no manual storing) may be achieved via the
fix_route_dialog() [1]. You can use this function after a match_dialog()
on the ACK.
[1]
https://opensips.org/html/docs/modules/3.5.x/dialog.html#func_fix_route_dialog
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
https://www.opensips-solutions.com
https://www.siphub.com
On 02.06.2025 00:05, Volkan Oransoy wrote:
Hi Adrian
It worked just as you described.
Thanks a lot.
On Sat, 31 May 2025 at 15:54, Adrian Georgescu <[email protected]> wrote:
You can use store_dlg_value() to save the values of parsed headers
like Contact header $ct.fields(uri) and retrieve them later from
$dlg_val variable
If you have configured a stateful proxy and have the dialog module
loaded the dialogs should be matched automatically.
> On May 31, 2025, at 11:58, Volkan Oransoy <[email protected]>
wrote:
>
> Hi Adrian
>
> Thank you for your reply. I've had a look at the documentation.
Can match_dialog function handle this case?
>
> Thanks
>
> On Sat, 31 May 2025 at 10:20, Adrian Georgescu
<[email protected]> wrote:
> You can save using the dialog module, the Contact uri from the
200 OK, then when the ACK comes in, you replace the $ru with the
previously saved value.
>
> > On May 31, 2025, at 10:07, Volkan Oransoy <[email protected]>
wrote:
> >
> > Hi all
> >
> > I am trying to integrate a 3rd party UAC with my Opensips box
and have an issue.
> > The UAC sends an INVITE with an initial request uri and my box
replies with 200 OK.
> > But the subsequent ACK sent by the UAC comes with the same
request uri with the INVITE. My box expects the ACK request uri to
be the Contact field of the 200 OK. So the ACK routing fails.
> > How can I rectify this on my end?
> >
> > Best
> >
> > --
> > Volkan Oransoy
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
> Volkan Oransoy
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
--
Volkan Oransoy
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users