1) How did you install your system? Vicibox? Goautodial with upgrades? Scratch/manual?
2) You're a bit behind in your Vicidial version. You may want to upgrade to the latest version and see if that helps as this is a very recent add-on for Vicidial and may still be "under construction" (just a guess, couldn't hurt to try).
3) Unfortunately, I have no clients presently using this function so I've never had to delve before.
4) If the code never enters the else, what is the condition of the IF? You should echo that during an execution and see what value it contains to cause the if to react incorrectly.
5) Happy Hunting!