controller T1 0/1/0
shutdown
clock source internal
ds0-group 0 timeslots 1-24 type e&m-wink-start
dial-peer voice 1 pots
port 0/1/0:0
direct-inward-dial
incoming called-number .
dial-peer voice 2 pots
destination-pattern 9.T
port 0/1/0:0
The rest will depend on if you're using SIP, MGCP, or H323. MGCP will look considerably different, but SIP/H323 would add this:
dial-peer voice 3 voip
session target ipv4:1.1.1.1
destination-pattern 45...
codec g711ulaw
no vad
if SIP
hth,
nick