mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
Changes from Dimitri for OSP codes, minor buglets
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -170,6 +170,8 @@ static int osp_build(struct ast_config *cfg, char *cat)
|
||||
osp->timeout = x;
|
||||
} else
|
||||
ast_log(LOG_WARNING, "timeout should be an integer from 200 to 10000, not '%s' at line %d\n", v->value, v->lineno);
|
||||
} else if (!strcasecmp(v->name, "source")) {
|
||||
strncpy(osp->source, v->value, sizeof(osp->source) - 1);
|
||||
}
|
||||
v = v->next;
|
||||
}
|
||||
@@ -248,7 +250,7 @@ static int osp_build(struct ast_config *cfg, char *cat)
|
||||
1,
|
||||
300,
|
||||
osp->maxconnections,
|
||||
60000,
|
||||
1,
|
||||
osp->retrydelay,
|
||||
osp->retrylimit,
|
||||
osp->timeout,
|
||||
|
Reference in New Issue
Block a user