[HELP} Frequent mis-dialed outgoing calls - TDM400 - XO-Flex

We are experiencing some outgoing calls reaching wrong numbers. Redialing the same number usually works. Asterisk’s log shows the correct number dialed.
The provider (XO Communications) can’t find any problems on their end.

Setup:
Asterisk 1.2.13 on Gentoo, P4 3GHz, dedicated to Asterisk, load usually under 2%
TDM400, connecting 3 PSTN lines via XO “XOptions-Flex” T1
Internally: Polycom 501/601 phones, problem happens with any of the internal phones when making outbound calls.

Problems happens about 1 out of every 10 outgoing calls, seems random.

I’ve already added “ww” and tried even “wwww” before the outgoing number, to give the line time to get a dialtone - still have the problem.

zapata.conf:
[channels]
musiconhold=default
usecallerid=yes
threewaycalling=yes
transfer=yes
relaxdtmf=yes

signalling=fxs_ks
context=incoming
group=1
channel=>1-3

extensions.conf (dial-out portion)
[macro-dialout]
exten => s,1,Dial(ZAP/1/ww${MACRO_EXTEN})
exten => s,n,Dial(ZAP/2/ww${MACRO_EXTEN})
exten => s,n,Dial(ZAP/3/ww${MACRO_EXTEN})

Any insight or help is greatly appreciated.

Thanks,
Thomas