I have never set my trunks up the way you have done it, so i am not sure if that config would work, i most likely does and your problem could be something else.
How ever this is the way i generally set our up:
host=XXX.XXX.XXX.XXX (Or put the Uri in here)
fromdomain=XXX.XXX.XXX (Best of to use an IP address here if at all possible, if not then just use the Uri)
I have the list of CoDec’s there just in case we need to change, i just then remark out the ones i don’t want to use. Also i have never put in all that extra stuff in there… Do you need it?
I can understand putting in the user name, from user and the secret as that is usually needed, however we probably connect up differently to you, since we run on Static IP"s and the carrier only authenticates via IP through their Radius, we don’t need that extra stuff.
My Suggestion is to go over all your user name and password and make sure you have nothing in there that is case sensitive.