Please provide your dialplan and sip.conf.
This looks as though it might be FreePBX provided dialplan, in which case you will need to ask on http://community.freepbx.org/ Also, the trunk/extension distinction is a FreePBX thing.
Do you have a call limit set on the “trunk”, as that needs to be set for inuse and busy states to be tracked.