diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-06 18:19:51 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-06 18:19:51 +0000 |
commit | 249face569822d37bb4d950272923c28f365842d (patch) | |
tree | ffb2ec150363a599ae454201f011ad6830e00367 /pbx | |
parent | c30aaa890638ce89d3f643eb8e47314538fad257 (diff) |
Merge enhanced status changes, add SIP subscribe from Andre
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@759 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rwxr-xr-x | pbx/pbx_config.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index b957f29e4..baed0f9fe 100755 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1084,13 +1084,15 @@ static int handle_context_add_extension(int fd, int argc, char *argv[]) cidmatch = NULL; } prior = strsep(&whole_exten,","); - if (!strcmp(prior, "hint")) { - iprior = PRIORITY_HINT; - } else { - iprior = atoi(prior); + if (prior) { + if (!strcmp(prior, "hint")) { + iprior = PRIORITY_HINT; + } else { + iprior = atoi(prior); + } } app = strsep(&whole_exten,","); - if ((start = strchr(app, '(')) && (end = strrchr(app, ')'))) { + if (app && (start = strchr(app, '(')) && (end = strrchr(app, ')'))) { *start = *end = '\0'; app_data = start + 1; for (start = app_data; *start; start++) |