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

jenus at cyberchaos.nl jenus at cyberchaos.nl
Thu Jun 14 23:17:26 CEST 2018


Ok thats clear thanks for chekking, does the dlg_set_timeout support 
$var?

Thanks,

Jan

Henning Westerholt schreef op 2018-06-14 16:17:
> 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




More information about the sr-users mailing list