FreePBX / issue-tracker

The unified FreePBX issue tracker.
https://www.freepbx.org
GNU General Public License v3.0
12 stars 1 forks source link

[bug]: from-analog has a bug, not check dialplan exists #512

Open ekinwt opened 1 month ago

ekinwt commented 1 month ago

FreePBX Version

FreePBX 17

Issue Description

image

Operating Environment

FreePBX 17, Asterisk 21

Relevant log output

No response

ekinwt commented 1 month ago

when "DAHDI Channel DIDs" is not configed, the bug will recurrent, if configed the "DAHDI Channel DIDs", will work fine.

this line in from-dahdi context needs to check if the dialplan exists before doing the gosub: GosubIf($[${DIALPLAN_EXISTS(macro-from-dahdi-${CHAN},s,1)}]?macro-from-dahdi-${CHAN},s,1(${DID},1))