diff --git a/main/manager.c b/main/manager.c index 818fc2ecad115517c0be07bfb1f8901552828b35..2a4bfa0c1663ff868e6b3b967bfe352419f85a81 100644 --- a/main/manager.c +++ b/main/manager.c @@ -4226,7 +4226,7 @@ static int action_originate(struct mansession *s, const struct message *m) ast_parse_allow_disallow(NULL, cap, codecs, 1); } - if (!ast_strlen_zero(app)) { + if (!ast_strlen_zero(app) && s->session) { int bad_appdata = 0; /* To run the System application (or anything else that goes to * shell), you must have the additional System privilege */