[asterisk-dev] global_timer_b is not set to sip.conf's param timerb

Adrien Martin a.martin at alphalink.fr
Fri Apr 12 05:09:34 CDT 2013


Hello,

I'm trying to reduce SIP timers (RFC 3261 17.1.1.1/17.1.2.1) but I can
not change timer B, it is always set to 32000ms, which is 64*T1 when T1
has its default value (500ms).

When asterisk parse options we have in channels/chan_sip.c (line 31746) :

} else if (!strcasecmp(v->name, "timerb")) {
  int tmp = atoi(v->value);
  if (tmp < 500) {
    global_timer_b = global_t1 * 64;
    ast_log(LOG_WARNING, "Invalid value for timerb ('%s').  Setting to
default ('%d').\n", v->value, global_timer_b);
  }
  timerb_set = 1;
}

If I correctly understand, global_timer_b is not set in the case where
tmp >= 500, so default value is used (line 31657) :

global_timer_b = 64 * DEFAULT_TIMER_T1;

I think it should be set, doesn't it ?

Thanks.

Adrien Martin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130412/1aeea7a5/attachment.pgp>


More information about the asterisk-dev mailing list