Skip to content

Commit

Permalink
Fix sending PRACK for multiple provisional replies.
Browse files Browse the repository at this point in the history
Reported by Giuseppe Cardone.
  • Loading branch information
bogdan-iancu committed Aug 26, 2014
1 parent 603f4dc commit 3cd6db2
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions modules/b2b_entities/dlg.c
Expand Up @@ -2526,16 +2526,15 @@ void b2b_tm_cback(struct cell *t, b2b_table htable, struct tmcb_params *ps)
if(leg)
{
LM_DBG("Found existing leg - Nothing to update\n");
goto done;
}

leg = b2b_add_leg(dlg, msg, &to_tag);
if(leg == NULL)
{
LM_ERR("Failed to add dialog leg\n");
goto error;
} else {
leg = b2b_add_leg(dlg, msg, &to_tag);
if(leg == NULL)
{
LM_ERR("Failed to add dialog leg\n");
goto error;
}
UPDATE_DBFLAG(dlg);
}
UPDATE_DBFLAG(dlg);
/* PRACK handling */
/* if the provisional reply contains a
* Require: 100rel header -> send PRACK */
Expand Down

0 comments on commit 3cd6db2

Please sign in to comment.