I have an existing PBX in a data center that does EuroISDN (30B+D) to the PSTN. I need to intercept the ISDN SETUP message called party, perform a database lookup, then modify the called party address before sending it on to the PSTN. I picture a two span Digium card (TE122) where the PBX feeds into one port, and the PSTN into the other. It will act as a tandem, only modifying SETUPs and passing all other messages through unchanged.
My question is: Is this possible and has it already been done? Setting up Asterisk with two trunk groups and two separate “D” channels with a “hook” into an external application is what I imagine it would look like.
Any help is appreciated