Skip to content

Commit

Permalink
dialog: use proper flags for script callback that clean dlg shortcuts
Browse files Browse the repository at this point in the history
(cherry picked from commit b0679c9)
  • Loading branch information
miconda committed Jan 24, 2015
1 parent cd0e341 commit 4fa400f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions modules/dialog/dialog.c
Expand Up @@ -621,17 +621,17 @@ static int mod_init(void)
return -1;
}

if (register_script_cb( spiral_detect_reset, POST_SCRIPT_CB|REQUEST_CB,0)<0) {
if (register_script_cb(spiral_detect_reset,POST_SCRIPT_CB|REQUEST_CB,0)<0) {
LM_ERR("cannot register req pre-script spiral detection reset callback\n");
return -1;
}

if (register_script_cb( cb_dlg_locals_reset, POST_SCRIPT_CB|ONREPLY_CB_TYPE,0)<0) {
if (register_script_cb(cb_dlg_locals_reset,POST_SCRIPT_CB|ONREPLY_CB,0)<0) {
LM_ERR("cannot register reply post-script dlg locals reset callback\n");
return -1;
}

if (register_script_cb( cb_dlg_locals_reset, POST_SCRIPT_CB|FAILURE_CB_TYPE,0)<0) {
if (register_script_cb(cb_dlg_locals_reset,POST_SCRIPT_CB|FAILURE_CB,0)<0) {
LM_ERR("cannot register failure post-script dlg locals reset callback\n");
return -1;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/dialog/dlg_var.c
Expand Up @@ -78,7 +78,7 @@ int cb_dlg_cfg_reset(sip_msg_t *msg, unsigned int flags, void *cbp)

int cb_dlg_locals_reset(sip_msg_t *msg, unsigned int flags, void *cbp)
{
LM_DBG("resetting the local dialog shortcuts\n");
LM_DBG("resetting the local dialog shortcuts on script callback: %u\n", flags);
cb_dlg_cfg_reset(msg, flags, cbp);
cb_profile_reset(msg, flags, cbp);

Expand Down

0 comments on commit 4fa400f

Please sign in to comment.