BRI interface with AVM Card - Identifying CAPI Channel

tedlapidus
Joined: Sat 06 of Feb, 2010

BRI interface with AVM Card - Identifying CAPI Channel

Posted:Sat 06 of Feb, 2010 (19:05 UTC)
Hi everyone,

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
or CAPI/ISDN1#01

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?
Many thanks,
Ted