[OpenSIPS-Users] ACK request uri issue

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jun 3 12:42:55 UTC 2025


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> 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>
>     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> 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>
>     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
>     > > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     >
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>     >
>     >
>     > --
>     > Volkan Oransoy
>     > _______________________________________________
>     > Users mailing list
>     > Users at lists.opensips.org
>     > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.opensips.org
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> -- 
> Volkan Oransoy
>
> _______________________________________________
> Users mailing list
> 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/ec3a2421/attachment.html>


More information about the Users mailing list