mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Merged revisions 47437 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r47437 | file | 2006-11-10 11:53:16 -0500 (Fri, 10 Nov 2006) | 2 lines Only split up extension and context if a value exists. (issue #8332 reported by loloski) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47438 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -658,7 +658,8 @@ static int extenspy_exec(struct ast_channel *chan, void *data)
|
||||
|
||||
if ((argc = ast_app_separate_args(data, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
|
||||
context = argv[0];
|
||||
exten = strsep(&context, "@");
|
||||
if (!ast_strlen_zero(argv[0]))
|
||||
exten = strsep(&context, "@");
|
||||
if (ast_strlen_zero(context))
|
||||
context = ast_strdupa(chan->context);
|
||||
if (argc > 1)
|
||||
|
Reference in New Issue
Block a user