hi,
1) Press the "?" button on the IP phone after the call is setup see which codec it shows.
2)Is MTP checked for unchecked on the sip trunk?
3)Is the IP phone running sccp or sip firmware?
4)once the call is set up run " show voip rtp connections" on the gateway to see the remote and local ip addresses.
5) Run "debug voip ccapi inout " on the gateway to see why dial peers are used for the call and see if you have coded the correct dial peer with g711ulaw.
Thanks,
Karthik