Index: apps/app_dial.c =================================================================== --- apps/app_dial.c (revision 242729) +++ apps/app_dial.c (working copy) @@ -1349,6 +1349,10 @@ goto done; } + if (ast_test_flag64(&opts, OPT_PEER_H) && !strchr(args.options, 'e')) { + ast_log(LOG_WARNING, "Why is the 'e' option found?!! options was '%s'\n", args.options); + } + if (ast_strlen_zero(args.peers)) { ast_log(LOG_WARNING, "Dial requires an argument (technology/number)\n"); pbx_builtin_setvar_helper(chan, "DIALSTATUS", pa.status); @@ -2016,6 +2020,11 @@ if (ast_test_flag64(&opts, OPT_PEER_H) && ast_exists_extension(peer, peer->context, "h", 1, peer->cid.cid_num)) { int autoloopflag; int found; + + if (!strchr(args.options, 'e')) { + ast_log(LOG_WARNING, "Why is the 'e' option found?!! options was '%s'\n", args.options); + } + strcpy(peer->exten, "h"); peer->priority = 1; autoloopflag = ast_test_flag(peer, AST_FLAG_IN_AUTOLOOP); /* save value to restore at the end */