Transfer from PSTN by time

Hi folks,

in my Asterisk I have the following in extensions.conf:

exten => _8040,1,Dial(SIP/3230,50,T)
exten => _8040,n,Hangup()

when an outside caller dials xxxxxx8040 (PSTN) the 3230 extension rings, so far so good.

My question is: is that possible that in a certain time frame (i.e. from 9 am to 10 am) the call from the PSTN rings in a specific extension (i.e. 3230) and in a different time frame (let’s say the rest of the day) rings in a different extension???

I don’t know if I made myself clear. Sorry for that.

Thanks in advance.


You mean device, not extension. 8040 is the extension (the _ serves no useful purpose, as you have no wild cards).

See the sample configuration file for examples of time dependent context inclusions.