Conversion of standard asterisk config

OK, I am kinda stuck here. I am trying to convert a configuration I have that I created under asterisk 1.4 from the default configs.

My biggest problem right now is getting one of my (I have three) providers settings converted. One is an incoming only config and another outgoing only.
Here is a portion of that config

[code:1]
users.conf

[trunk_2]
disallow = all
allow = ulaw
context = DID_trunk_2
dialformat = ${EXTEN:1}
fromdomain = inphonex.com
fromuser = XXXXXXA
username = XXXXXXA
hasexten = no
host = sip.inphonex.com
insecure = port,invite
port = 5060
provider = sip.inphonex.com
registeriax = no
registersip = yes
hasiax = no
hassip = yes
secret = HIDDEN
trunkname = Custom - inphonex-out - XXXXXXA
trunkstyle = customvoip
;conext=from-inphonex
type = peer
canreinvite = no
nat = no
[trunk_3]
disallow = all
allow = ulaw,g729
context = DID_trunk_3
;dialformat = ${EXTEN:1}
fromdomain = inphonex.com
fromuser = 2612879
;hasexten = no
hasiax = no
hassip = yes
host = sip.inphonex.com
insecure = port,invite
port = 5060
provider = inphonex
registeriax = no
registersip = yes
secret = HIDDEN
trunkname = Custom - inphonex-in - XXXXXXB
trunkstyle = customvoip
username = XXXXXXB
user = XXXXXXB
;context=from-pstn
type = user
nat = no
canreinvite = yes
qualify = yes

providers.conf

[inphonex]
providername=inphonex-in
username=XXXXXXA
type=peer
secret=HIDDEN
host=sip.inphonex.com
fromuser=XXXXXXA
fromdomain=inphonex.com
context=from-inphonex
canreinvite=no

[sip.inphonex.com]
providername=inphonex-out
username=XXXXXXA
user=XXXXXXA
type=friend
insecure=port,invite
host=sip.inphonex.com
fromdomain=inphonex.com
context=from-pstn
[/code:1]

So my confusion is how do I get the incoming account setup as a trunk separate from the outgoing?

Notice that the usernames are different for incoming and outgoing to this provider.

I have tried to get these accounts configured but my success has only been in getting incoming to register for this account. I can only call out one of my other providers that has been configured through the same incoming outgoing user.

I have 2 accounts that also is used for incoming and one for outgoing.

What I would like to know, should I separate this as two trunks or one and if one what should I put in each section?

I can send configs if needed to make more sense of this.

Thanks