How to set the number of rings before dahdi channel answers

Hi,

I’m using a X100P card connected to the PSTN and I need to set the number of rings before Asterisk answers calls. Right now it only rings once. Where do I set that? Using Asterisk 1.8.

Thanks.

exten -> ???,1,Wait(suitable number)
exten -> ???,2,Answer

You might also want to look at the WaitForRing() application in order to reduce the chance of Asterisk picking up a shared line.