We had the same thing the invite will be rejected because it gets truncated after a certain length.
You need to remove couple of lines from the outbound dial plan such as :
action set sip_h_X-accountcode=${accountcode}
and test, I think you may be OK.
If you use Grandstream desk phones disable...