[OpenSIPS-Users] [dialog] variable DLG_status returns wrong value

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Jan 29 15:56:30 UTC 2026


Hi Stas,

I think the reply_route is triggered (by TM module) before running the 
TM callbacks used by dialog module to do the status update :(

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 28.01.2026 22:23, Stas Kobzar wrote:
> Hi all,
>
> Variable /$DLG_status/ returns "1" in the response route after 
> provisional responses are received.
> Here is extraction of the logs:
> //-------------------------------------------------------------
> NOTICE:=====> incoming reply T_reply_code=100, DLG_status=1
> NOTICE:=====> incoming reply T_reply_code=180, DLG_status=1
> NOTICE:=====> incoming reply T_reply_code=200, DLG_status=2
> //-------------------------------------------------------------
>
> Reply route code with log:
> //-------------------------------------------------------------
> onreply_route[main_reply] {
>     xlog("=====> incoming reply T_reply_code=$T_reply_code, 
> DLG_status=$DLG_status\n");
> }
> //-------------------------------------------------------------
>
> Doc says:
> 1 - Dialog unconfirmed (created but no reply received at all)
>
> So, I expect to see "DLG_status=2" when first 100 response received 
> (Dialog in early state).
>
> The script is very simple and generated with "make menuconfig" 
> (please, see attached)
>
> I have tried with ver 3.4 and 3.6
> My question: is it a bug or am I missing some configuration?
>
> Thank you!
>
>
>
> _______________________________________________
> 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/20260129/452382c0/attachment.html>


More information about the Users mailing list