Trouble with transferring call with PBX Siemens-QSIG-Asteris

Hello.
There is Siemens PBX HiPath 4000 with Asterisk attached via QSIG. There are two PBX subscribers (1001 and 1002) and two Asterisk subscribers (2001 and 2002).
Assume subscriber 2001 makes a call to 1001. Assume subscriber 1001 needs to transfer a call to subscriber 1002 (or 2002) during a talk. Subsriber 2001 hears music-on-hold from Asterisk.
Console shows the message: “-- Started music on hold, class ‘default’, on SIP/2001-00000001”.

Then subscriber 1001 ends the call. Subscriber(s) 1002 (2002) hear(s) the 2001, but 2001 itself continues to hear music-on-hold.

In case of call transfer from 2001 to 1002(2002) there are no problems.

Also there are no problems with PBX and Asterisk connected via euroisdn.

Asterisk versions were probed: 1.4.25 – 1.4.29 and 1.6.2.5. Dahdi-linux-complete versions are different also. Version of libpri is 1.4.10.2.

Config file is chan_dahdi.conf.

[trunkgroups]

[channels]
context=from_world
;switchtype=euroisdn
switchtype=qsig
pridialplan=local
prilocaldialplan=local
facilityenable = yes
signalling=pri_cpe
rxwink=300
usecallerid=yes
cidsignalling=bell
cidstart=ring
hidecallerid=no
callwaiting=yes
usecallingpres=yes
sendcalleridafter=1
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
relaxdtmf=yes
rxgain=0.0
txgain=0.0
busydetect=yes

group=1
channel=1-15
;channel=1-15,17-31
callgroup=1
pickupgroup=1
immediate=no

How can we resolve this?

Installed Asterisk 1.4.31 and libpri 1.4.11. The problem still remains. Please help.

Installed Asterisk 1.4.33 , dahdi-linux-complete-2.3.0.1+2.3.0 and libpri 1.4.11.3. The problem still remains. Please help.