Inbound / outbound problem

Trunk setting:
allow=g729
canreinvite=no
context=from-pstn
host=xxx.xxx.xxx.xxx
type=peer

Extension setting:
disallow all
allow g729

with this setting my outbound working but my inbound has problem.
when I make empty on disallow and allow in extension setting my inbound working and outbound has problem. please help me.

my DID just support ulaw and my carrier just support g729.

please help me.