[OpenSIPS-Users] ACK request uri issue

Wadii ELMAJDI | Evenmedia wadii at evenmedia.fr
Tue Jun 3 12:59:10 UTC 2025


[0]     Wadii ELMAJDI | Evenmedia reacted to your message:
________________________________
From: Users <users-bounces at lists.opensips.org> on behalf of Bogdan-Andrei Iancu <bogdan at opensips.org>
Sent: Tuesday, June 3, 2025 12:42:55 PM
To: OpenSIPS users mailling list <users at lists.opensips.org>; Volkan Oransoy <voransoy at gmail.com>
Subject: Re: [OpenSIPS-Users] ACK request uri issue

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 <ag at ag-projects.com<mailto:ag at ag-projects.com>> 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 <voransoy at gmail.com<mailto:voransoy at gmail.com>> 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 <ag at ag-projects.com<mailto:ag at ag-projects.com>> 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 <voransoy at gmail.com<mailto:voransoy at gmail.com>> 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
> > Users at lists.opensips.org<mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org<mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> --
> Volkan Oransoy
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org<mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Volkan Oransoy



_______________________________________________
Users mailing list
Users at lists.opensips.org<mailto:Users at lists.opensips.org>
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20250603/f383141f/attachment-0001.html>


More information about the Users mailing list