chan_dahdi: Allow Call Forwarding to be set/get via dialplan/CLI/AMI
This issue was originally requested by jalberts.
We should also allow getting other DAHDI channel properties, e.g. last number dialed.
Proposal:
exten => s,1,Set(DAHDI_CHANNEL(callforwardnumber,25)=5551212)
same => n,NoOp(${DAHDI_CHANNEL(callforwardnumber,25)}) ; 5551212
same => n,NoOp(${DAHDI_CHANNEL(owner,25)} / ${DAHDI_CHANNEL(callwait,25)} / ${DAHDI_CHANNEL(threeway,25)}) ; e.g. DAHDI/25-1 or DAHDI/25-2
The DAHDI chan number is second so it can be optional (implicitly the current channel's DAHDI channel number if omitted). However, DAHDI_CHANNEL
should be callable from any channel, not just DAHDI channels.
You must be