Inconsistent Callerid capture

I have an issue where I’m getting inconsistent callerid capture from my pots lines on zap channels. Sometimes Asterisk “see’s” callerid, sometimes it doesn’t.

I have another callerid box connected to the lines for testing purposes - and I’ve come to the conclusion that Asterisk is frequently answering the phone too soon - before CID information is actually transmitted by the phone company.

What in Asterisk is controlling this? I appreciate any help.

CID usually comes in on the second ring. Use the wait command in your dial plan. (There is also an option to fix this in zaptel.conf but I can’t recall it now).