Before I open a ticket I wanted to be sure I wasn't missing anything...<div><br></div><div>11.0.0 introduced a change to pbx_config where if "hasvoicemail" is set for a user in users.conf, a "Gosub" is executed to "stdexten" (it used to be a "Macro" call). Unfortunately, the parameters supplied to Gosub tell it to jump to a PRIORITY named "stdexten" in the same context it was called from (I.E. default) instead of the context named "stdexten" as Macro did.</div>
<div><br></div><div>Gosub has the syntax</div><div><div>Gosub([[context,]exten,]priority[(arg1[,...][,argN])])</div></div><div><br></div><div>The following code (where cat = user I.E 1000)...</div><div><div><br></div><div>
snprintf(tmp, sizeof(tmp), "%s,stdexten(${HINT})", cat);</div><div>ast_add_extension2(con, 0, cat, 1, NULL, NULL, "Gosub", ast_strdup(tmp), ast_free_ptr, registrar);</div></div><div><br></div><div>...causes...</div>
<div><br></div><div><div>[Oct 28 18:44:35] WARNING[30034][C-00000003] pbx.c: Priority 'stdexten' must be a number > 0, or valid label</div><div>[Oct 28 18:44:35] ERROR[30034][C-00000003] app_stack.c: Gosub address is invalid: '1000,stdexten(SIP/1000)'</div>
</div><div><br></div><div>A more reasonable set of arguments would be...</div><div><div>snprintf(tmp, sizeof(tmp), "stdexten,%s,1(${HINT})", cat);</div></div><div><br></div><div>I mentioned this problem in issue <a href="https://issues.asterisk.org/jira/browse/ASTERISK-18809">https://issues.asterisk.org/jira/browse/ASTERISK-18809</a> back in March there was no response.</div>
<div><br></div><div>What am I missing? The way extensions.conf.sample is written supports my "more reasonable" arguments where stdexten is a context so what was originally intended? Does anyone have a extensions.conf sample that fits the code?</div>
<div><br></div><div>Thanks...george</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>