diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-07 15:16:18 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-07 15:16:18 +0000 |
commit | 0ddea6a5eb4666cb482f1b23dea01a41bba78860 (patch) | |
tree | b5b24d700bb07d008060f3b1850e9e04b0c75bf3 /res/res_osp.c | |
parent | 43199660731013d59b63144420a44dc4e9734ffd (diff) |
Changes from Dimitri for OSP codes, minor buglets
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3744 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_osp.c')
-rwxr-xr-x | res/res_osp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_osp.c b/res/res_osp.c index 7945c08ad..74a41afff 100755 --- a/res/res_osp.c +++ b/res/res_osp.c @@ -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, |