Error 503 after moving extension to custom context

Hello,

I need help. I have Asterisk 11.15.0 and FreePBX 2.11.0.42. I created two sip extensions via FreePBX, They were created in ext-local context. I tested calls over two sw SIP clients and everything worked fine. I also created a separate custom context friends via custom contexts module in FreePBX. Then I copied two created extensions from extensions_additional.conf to extensions_custom.conf and I changed the context from the ext-local to friends. Then I deleted the two extensions via FreePBX in extensions_additional.conf. But I amnot able to call each other, they end with error Service Unavailable error 503. SW clients are registered and okay.

but I amnot able to call each other

The current status is as follows:
sip_custom.conf
[106]
deny = 0.0.0.0 / 0.0.0.0
secret = xxxxxxxx
dtmfmode = rfc2833
canreinvite = no
context = friends
host = dynamic
trustrpid = yes
sendrpid = no
type = friend
nat = yes
port = 5060
qualify = yes
qualifyfreq = 60
transport = tls
avpf = no
icesupport = no
encryption = yes
callgroup =
pickupgroup =
dial = SIP / 106
mailbox = 106 @ device
permit = 0.0.0.0 / 0.0.0.0
callerid = test01 <106>
callcounter = yes
faxdetect = no

[107]
deny = 0.0.0.0 / 0.0.0.0
secret = xxxxxxxx
dtmfmode = rfc2833
canreinvite = no
context = friends
host = dynamic
trustrpid = yes
sendrpid = no
type = friend
nat = yes
port = 5060
qualify = yes
qualifyfreq = 60
transport = tls
avpf = no
icesupport = no
encryption = yes
callgroup =
pickupgroup =
dial = SIP / 107
mailbox = 107 @ device
permit = 0.0.0.0 / 0.0.0.0
callerid = test02 <107>
callcounter = yes
faxdetect = no

extensions_additional.conf
[friends]
include => friends-custom
include => parkedcalls
include => app-echo-test
include => friends_bad-number
include => bad-number
exten => s,1,Macro(hangupcall,)

exten => h,1,Macro(hangupcall,)

;–== end of [friends] ==–;

[friends_rulematch]
include => friends_rulematch-custom
include => parkedcalls
include => app-echo-test
include => friends_bad-number
include => bad-number
exten => s,1,Macro(hangupcall,)

exten => h,1,Macro(hangupcall,)

;–== end of [friends_rulematch] ==–;

[friends_bad-number]
include => friends_bad-number-custom

;–== end of [friends_bad-number] ==–;

extensions_custom.conf

[friends]
exten => 106,1,Set(__RINGTIMER=${IF($[${DB(AMPUSER/106/ringtimer)} > 0]?${DB(AMPUSER/106/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 106,n,Macro(exten-vm,novm,106,0,0,0)
exten => 106,n(dest),Set(__PICKUPMARK=)
exten => 106,n,Goto(${IVR_CONTEXT},return,1)
exten => 106,hint,SIP/106,CustomPresence:106

exten => test01,1,Goto(from-internal,106,1)

;exten => 107,1,Set(__RINGTIMER=${IF($[${DB(AMPUSER/107/ringtimer)} > 0]?${DB(AMPUSER/107/ringtimer)}:${RINGTIMER_DEFAULT})})
exten => 107,1,Set(__RINGTIMER=${${RINGTIMER_DEFAULT})})
exten => 107,n,Macro(exten-vm,novm,107,0,0,0)
exten => 107,n(dest),Set(__PICKUPMARK=)
exten => 107,n,Goto(${IVR_CONTEXT},return,1)
exten => 107,hint,SIP/107,CustomPresence:107

exten => test02,1,Goto(from-internal,107,1)

;–== end of [friends] ==–;

[from-did-direct-ivr]

exten => 106,1,Macro(blkvm-clr,)
exten => 106,n,Set(__NODEST=)
exten => 106,n,Goto(from-did-direct,106,1)

exten => 107,1,Macro(blkvm-clr,)
exten => 107,n,Set(__NODEST=)
exten => 107,n,Goto(from-did-direct,107,1)

;–== end of [from-did-direct-ivr] ==–;


log output:
pastebin.com/7F9kYuKV