--- addons/chan_ooh323.c (Asterisk 15.2) +++ addons/chan_ooh323.c (working copy) @@ -2605,7 +2605,10 @@ static struct ooh323_peer *build_peer(co } else if (!strcasecmp(v->name, "outgoinglimit")) { - peer->outgoinglimit = atoi(v->value); - if (peer->outgoinglimit < 0) + int val = atoi(v->value); + if (val < 0) { peer->outgoinglimit = 0; + } else { + peer->outgoinglimit = val; + } } else if (!strcasecmp(v->name, "accountcode")) { ast_copy_string(peer->accountcode, v->value, sizeof(peer->accountcode));