Asterisk CLI Warning (2 threads working in 1 channel)

We are currently getting these warnings in Asterisk CLI and during this warning there will be problems on the calls.
Does anyone know the reason for this warnings and how to prevent them? We are using Asterisk 1.2

Feb 23 07:08:12 WARNING[31803] channel.c: Thread 140242692675920 Blocking ‘Zap/31-1’, already blocked by thread 140242688883024 in procedure ast_waitfor_nandfds
Feb 23 07:08:13 WARNING[31803] chan_zap.c: Thread 140242692675920 Blocking ‘Zap/31-1’, already blocked by thread 140242692675920 in procedure ast_waitfor_nandfds
Feb 23 07:08:13 WARNING[32595] chan_zap.c: Thread 140242688883024 Blocking ‘Zap/31-1’, already blocked by thread 140242688883024 in procedure ast_waitfor_nandfds
Feb 23 07:08:13 WARNING[31803] chan_zap.c: Thread 140242692675920 Blocking ‘Zap/31-1’, already blocked by thread 140242692675920 in procedure ast_waitfor_nandfds
Feb 23 07:08:13 WARNING[32595] chan_zap.c: Thread 140242688883024 Blocking ‘Zap/31-1’, already blocked by thread 140242688883024 in procedure ast_waitfor_nandfds

There is a deadlock.

Upgrade to a recent supported version of Asterisk. deadlock bugs are not going to get fixed in security fix only versions.