Skip to content

Commit

Permalink
[dialog] fix dropping empty string dlg vals
Browse files Browse the repository at this point in the history
Upon DB recovery (after an OpenSIPS restart) do not drop emtpy string dlg vals - as we do allow creation of such vals via cfg and api and have them saved to DB, it makes all the sense to also restore them
This triggers some startup warnings when using in-dialog re-INVITE probing.
Closes #3108
  • Loading branch information
bogdan-iancu committed Jun 27, 2023
1 parent ad6aef0 commit e246681
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/dialog/dlg_db_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,6 @@ void read_dialog_vars(char *b, int l, struct dlg_cell *dlg)
p = read_pair( p, end, &name, &isval, &type);
if (p==NULL) break;

if (isval.s.len==0) continue;

LM_DBG("new var found <%.*s>\n",name.len,name.s);

/* add the variable */
Expand Down

0 comments on commit e246681

Please sign in to comment.