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

(cherry picked from commit e246681)
(cherry picked from commit dfb9b4f)
  • Loading branch information
bogdan-iancu committed Jun 27, 2023
1 parent 0238146 commit b8e0d46
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 @@ -400,8 +400,6 @@ void read_dialog_vars(char *b, int l, struct dlg_cell *dlg)
p = read_pair( p, end, &name, &val);
if (p==NULL) break;

if (val.len==0) continue;

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

/* add the variable */
Expand Down

0 comments on commit b8e0d46

Please sign in to comment.