diff options
-rw-r--r-- | res/res_clioriginate.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/res_clioriginate.c b/res/res_clioriginate.c index 56e92d96a..be97d0faf 100644 --- a/res/res_clioriginate.c +++ b/res/res_clioriginate.c @@ -83,6 +83,10 @@ static int orig_app(const char *chan, const char *app, const char *appdata) return RESULT_FAILURE; } chantech = strsep(&chandata, "/"); + if (!chandata) { + ast_log(LOG_ERROR, "No dial string.\n"); + return RESULT_SHOWUSAGE; + } ast_pbx_outgoing_app(chantech, AST_FORMAT_SLINEAR, chandata, TIMEOUT * 1000, app, appdata, &reason, 1, NULL, NULL, NULL, NULL); |