Failed to authenticate on INVITE

My issue is that The phone rings on inbound and works perfectly inbound/OUTBOUND,
But only when I disable the trunks. Once trunks are disabled the calls do not come into the pbx but the phone still registers with the provider and gets routed there… after ringing then goes to Voice mail. wich is nothing more than expected with the provider.

But why wont my box ring the phone?
I can set other destinations such as Disa, Que,Text 2 speech and voicmail.
ALL work but will not ring the phone and after tell me the extension is not available.

I have check the settings in Oss divice where you can write to the phone config and all looks decent. I finally changed and input host as "“” and now sip show peers
finaly shows extensions online and ok.
But that was not the issue.

I think the issue is in my sickend or very iLL Extension_constom.conf

 This file contains example extensions_custom.conf entries.
; extensions_custom.conf should be used to include customizations
; to AMP's Asterisk dialplan.

; Extensions in AMP have access to the 'from-internal' context.
; The context 'from-internal-custom' is included in 'from-internal' by default

exten => s,1,Answer()
exten => s,n,Playback(hello-world)
exten => s,n,Hangup()


exten => 007,1,Dial(SIP/007)
exten => 008,1,Dial(SIP/008)

exten => 007,1,Answer()
    same => n,Playback(hello-world)
    same => n,Hangup()

exten => 008.,1,Answer()
exten => 008.,n,Goto(from-pstn,${EXTEN},1)
exten => 007.,1,Answer()
exten => 007.,n,Goto(from-pstn,${EXTEN},1)

; custom-count2four,s,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring Group
exten => s,1,SayDigits(1234)
exten => s,2,Hangup

; custom-recordme,5678,1 can be used as a custom target for
; a Digital Receptionist menu or a Ring Group
exten => 5678,1,Wait(2)
exten => 5678,2,Record(/tmp/asterisk-recording:gsm)
exten => 5678,3,Wait(2)
exten => 5678,4,Playback(/tmp/asterisk-recording)
exten => 5678,5,Wait(2)
exten => 5678,6,Hangup

exten => 008.,1,Answer()
exten => 008.,n,Goto(from-pstn,${EXTEN},1)

The error i receive is below and
truly think having the correct extensions_custom.config will correct this


2015-07-23 17:21:10] NOTICE[6096][C-00000006]: chan_sip.c:22782 handle_response_invite: Failed to authenticate on INVITE to ‘“PORTLAND, OR” sip:[email protected];tag=as1dcfce32’