After spending a couple of hours on the phone with Sonicwall and Mitel support engineers capturing packets and doing Wireshark traces, it turns out that the phone was bad. All that had to be enabled on the firewall was Sip Transformations.
Thanks for the replies.
b