[SR-Users] Using a var as timeout value in dlg_set_timeout_by_profile function

Henning Westerholt hw at kamailio.org
Thu Jun 14 16:17:25 CEST 2018


Am Donnerstag, 14. Juni 2018, 09:30:44 CEST schrieb jenus at cyberchaos.nl:
> I do not see any errors in the logs, it looks like it just sets the
> timer to 0 and disconnects the call.

Hello Jan,

I just looked quickly in the code, it seems that the timeout value is not 
interpreted as "pseudo-variable", therefore its not possible to use something 
like $var in this method right now. It is just read as a numeric value.

dialog.c, line 1342:
	if(dlg_set_timeout_by_profile((struct dlg_profile_table *) profile,
				   &val_s, atoi(timeout_str)) != 0)

This can of course changed in the module with a change in the code.

Best regards,

Henning

-- 
If you like the work that I do in Kamailio, please consider supporting me on 
Patreon: https://www.patreon.com/henningw



More information about the sr-users mailing list