Getting Called number

Here is my problem. i have four analog lines on an tdm04B.
all calls are redirected to a agents of a service.

now i’ve a new service, with another numer.

now i want to redirect the call to the right service due to the number called.

is it possible to know what number has been dialed by the end user with his phone??


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.