I am using an AVM Card as a BRI interface and I must say that they are EXCELLENT.
Now, I need to run a script when receiving a call, and the script needs to know which BRI Channel the AVM card is receiving the call from.
I have found that incoming calls can use either channel CAPI/ISDN1#02
But I have not been able to find the variable to use within the extensinos.conf to automate the script and let it recognize the channel.
I have been trying with the capicommand(peerlink) , this allows me to see the calling number, called number and lots of other things, but not the CAPI channel being used.
Anybody knows a better way to do this?