Skip to content

Commit

Permalink
fixed setting the default min_expires and max_expires module parameters.
Browse files Browse the repository at this point in the history
Credits go to MayamaTakeshi.
  • Loading branch information
bogdan-iancu committed Aug 13, 2013
1 parent c13a50d commit 5392af6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/registrar/save.c
Expand Up @@ -749,6 +749,8 @@ int save_aux(struct sip_msg* _m, str* forced_binding, char* _d, char* _f, char*
sctx.max_contacts = -1;

sctx.flags = 0;
sctx.min_expires = min_expires;
sctx.max_expires = max_expires;
if ( _f ) {
if (fixup_get_svalue( _m, (gparam_p)_f, &flags_s)!=0) {
LM_ERR("invalid flags parameter");
Expand Down

0 comments on commit 5392af6

Please sign in to comment.