Sip section does not recognize "type"

I am getting a weird warning message that is not allowing me to connect to my SIP provider.

WARNING[3264]: chan_sip.c:32092 reload_config: Section ‘xxxx-sip’ lacks type.

In my sip.conf I have been given the section from the service provider but I am getting this error. I am sure this same type is used with clients of theirs so I am sure it is not a service side issue but an issue with my install of Asterisk.

My sip.conf has many sections but this is the only one that is giving me problems. Other sections with type = friend work just fine.

Any idea why Asterisks cannot recognize this particular section?

[code]

[general]
context = unauthenticated
allowguest = no
srvlookup = no
udpbindaddr = 0.0.0.0
tcpenable = no
;
; xxxxxxxx registering info
register => xxxxxxx@bt.xxxxxxxxx.com:xxxxxxxxxxx1@proxy-01-sip33.xxxxxxxx.com/NXXXXXXXXXXX
;
;
;******************************;
; ;
; sip service provider ;
; ;
;******************************;
;
;
[xxxxxx-sip]
type = peer
host = bt.xxxxxx.com
fromdomain = bt.xxxxxx.com
outboundproxy = proxy-01-sip33.xxxxxx.com
canreinvite = no
insecure = invite
qualify = yes
dtmfmode = rfc2833
disallow = all
allow = ulaw
username = XXXXXXXXX
secret = XXXXXXXXX
fromuser = NXXXXXXXX
context = cu
;
;
;******************************;
; ;
; Extensions ;
; ;
;******************************;
;
;
[tp_local_100] ; test account 1
type = friend
context = cu
host = dynamic
secret = pwivan
;
[tp_local_102] ; test account 3
type = friend
context = cu
host = dynamic
secret = pwscott

I figured out my issue. The service provider gave me an email with the info. I guess when I copied the text I must have copied some spaces which affected the way asterisk interpreted the word peer.

Once I hand typed the text the error went away.