ZAP Buttons
-
I use a digium card with 4 lines
How can I make a ZAP button for each of our incoming lines where the label would say the number:
I try this but did not work too well
[ZAP/1]
type=trunk
label=(123)456-7890[ZAP/2]
type=trunk
label=(123)456-7891 -
I just discovered that the ZAP will show as DAHDI. looking at the code in autoconfig-buttons-freepbx.sh I see all has the DAHDI heading, is there a reason for it?
Where does it create the button.cfg file when it runs?
I need to show it each line separate with the number as the line label, something like this maybe but this does not work.
[DAHDI/2]
type=trunk
label=123-456-7890
channel=ZAP/11 -
[ZAP/2] channel=DAHDI/11the above does not make much sense. Dahdi replaced Zap, so you can just remove the channel line, if you want to catch both zap/dahdi appeareances in ami events , you might want to set the channel number the same as the button itself.. (zap/2, dahdi/2).
Now, the autoconfig-buttons-freepbx.sh script will override the changes you add by hand in the buttons.cfg file. Either add your zap lines manually by modifying the script, or you can also go "all manual" and write your own buttons.cfg file.
The #exec line will execute the script/program you put there, and it will read stdout and parse it as regular configs for fop2. So it is not STORED anywhere, it is executed and parsed when you start or reload fop2.
You can add a bunch of
echo "[ZAP/2]"
echo "type=trunk"
echo "label=line 2"at the end of the autoconfig-buttons-freepbx.sh script for example.
One last thing: the latest beta lets you mix #exec and static configs with no problems.
Best regards,
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login