[asterisk-bugs] [JIRA] (ASTERISK-24952) global timerb is disregarded by chan_sip

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sat Apr 11 23:22:33 CDT 2015


    [ https://issues.asterisk.org/jira/browse/ASTERISK-24952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=225857#comment-225857 ] 

Matt Jordan commented on ASTERISK-24952:
----------------------------------------

We can't accept inline patches or patches in issue descriptions.

Please attach a patch for the issue after signing a CLA.

> global timerb is disregarded by chan_sip
> ----------------------------------------
>
>                 Key: ASTERISK-24952
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24952
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>            Reporter: yarique
>            Severity: Minor
>
> Global timerb setting in sip.conf never has effect. It is obvious from chan_sip.c why:
> 		} 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;
> 		}
> Note how global_timer_b is *not* set to tmp if the tmp value is good. Adding `else {global_timer_b = tmp}' to the 'if' will fix it.
> Thank you.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list