Fixlocalprefix fails to match dialpattern that worked before

AsteriskNOW 1.7.1 32-bit:

FreePBX 2.7.0.0
Asterisk 1.6.2.11

Configuration:

Extension: 1, softclient (X-Lite 4), name:750
Trunks: 2, Justvoip and EasyVoip
Outbound routes: 2, one for dialing landlines (Justvoip) and the other for mobile numbers (EasyVoip)

Trunk Dial rules:

0032+XXXXXXXXX for dialing mobile numbers. e.g. 0472 11 22 33

0032+XXXXXXXX for dialing landlines. e.g. 016 11 22 33

Outbound routes:

0|47[2-9].
0|48[4-8].
0|49[4-9].

for mobile numbers

0|19.
0|1[0-6].
0|5[0-9].
0|6[0-1].
0|6[7-9].
0|71.
0|89.
0|8[0-7].
0|9.
0|[2-4].

for landlines

The problem: both trunks used to work when dialing both a landline and a mobile number.

– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
== fixlocalprefix: Dialpattern 0032+XXXXXXXX matched. 16112233 -> 003216112233

After some configuration changes landlines still work but fixlocalprefix fails to convert to the international number format:

-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
-- <SIP/750-0000000c>AGI Script fixlocalprefix completed, returning 0

which then tries to dial the number without prefix and thus fails:

-- Called justvoip/472112233
-- SIP/justvoip-0000000b is making progress passing it to SIP/750-0000000a
-- Got SIP response 480 "Temporarily not available" back from 77.72.169.129
-- SIP/justvoip-0000000b is circuit-busy

Any tips would be greatly appreciated!