[asterisk-bugs] [JIRA] (ASTERISK-30480) dialplan reload warning refers to wrong line numbers in dialplan
David Middleton (JIRA)
noreply at issues.asterisk.org
Tue Mar 28 08:38:03 CDT 2023
David Middleton created ASTERISK-30480:
------------------------------------------
Summary: dialplan reload warning refers to wrong line numbers in dialplan
Key: ASTERISK-30480
URL: https://issues.asterisk.org/jira/browse/ASTERISK-30480
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Functions/func_dialplan
Affects Versions: 18.14.0
Reporter: David Middleton
When reloading the dialplan, the following warning is shown:
{code}
WARNING[1613512]: pbx.c:7126 add_priority: Extension 'start' priority 21 in 'fhn-block-huntgrp-seq', label 'exit_ok' already in use at priority 17
{code}
However, the dialplan references the labels in priorities 16 and 20:
{code}
CLI> dialplan show fhn-block-huntgrp-seq
[ Context 'fhn-block-huntgrp-seq' created by 'pbx_config' ]
'start' => 1. Verbose(1,Starting HUNT-GROUP block sequential config:) [extensions.conf:0]
2. Verbose(1,Members: ${ARG1}) [extensions.conf:0]
3. Verbose(1,Timeout: ${ARG2}) [extensions.conf:0]
4. Set(MEMBERS=${ARG1}) [extensions.conf:0]
5. Set(TIMEOUT=${ARG2}) [extensions.conf:0]
6. Set(FIELD=1) [extensions.conf:0]
7. Set(MEMBER=${CUT(MEMBERS,\;,${FIELD})}) [extensions.conf:0]
8. While($[${EXISTS(${MEMBER})}]) [extensions.conf:0]
9. Set(INTERNAL=${REGEX("^(.*)-(.*)$" ${MEMBER})}) [extensions.conf:0]
10. GotoIf($["${INTERNAL}" = "0"]?member_out:member_in) [extensions.conf:0]
[member_in] 11. GotoIf($[ $[!${EXISTS(${DEVICE_STATE(Custom:${MEMBER})})}] || $["${DEVICE_STATE(Custom:${MEMBER})}" = "UNAVAILABLE"]]?exit_nok) [extensions.conf:0]
12. AGI(agi://${FASTAGISERVER}/getVariable,FHN/${TENANT}/${CUT(MEMBER,-,1)}/MAXCALLS,MAXCALLS) [extensions.conf:0]
13. Gosub(check-call-limit,start,1(${MEMBER},${MAXCALLS},in)) [extensions.conf:0]
14. ExecIf($[${GOSUB_RETVAL} < 0]?exit_nok) [extensions.conf:0]
15. Gosub(dial,s,1(Local/${MEMBER}@fhn-block-to-extension-call,${TIMEOUT},${OPTIONS})) [extensions.conf:0]
16. GotoIf($["${DIALSTATUS}" != "ANSWER"]?exit_nok:exit_ok) [extensions.conf:0]
[exit_ok] 17. Set(RESULT=-1) [extensions.conf:0]
18. ExitWhile() [extensions.conf:0]
[member_out] 19. Gosub(dial,s,1(Local/${MEMBER}@fhn-dialout,${TIMEOUT},${OPTIONS})) [extensions.conf:0]
20. GotoIf($["${DIALSTATUS}" != "ANSWER"]?exit_nok:exit_ok) [extensions.conf:0]
21. Set(RESULT=-1) [extensions.conf:0]
22. ExitWhile() [extensions.conf:0]
[exit_nok] 23. Set(RESULT=1) [extensions.conf:0]
24. Set(FIELD=$[${FIELD} + 1]) [extensions.conf:0]
25. Set(MEMBER=${CUT(MEMBERS,\;,${FIELD})}) [extensions.conf:0]
26. EndWhile() [extensions.conf:0]
27. Return(${RESULT}) [extensions.conf:0]
-= 1 extension (27 priorities) in 1 context. =-
{code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list