So you have 4 lines coming in to the TDM400P and you want to redirect the calls to some where based on what line was called ? If yes then you can go in to zapata.conf and set a separate context for every channel and then in extensions.conf set where each one should go.