Flowroute incoming calls getting not in service message

When I turn allow SIP anonymous calls on it works, when its off it doesn’t. Can you help with this info?

type=friend
secret=XXXXXXXXXXXXXXXXX
username=XXXXXXXXXXXXXXXX
host=sip.flowroute.com
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
insecure=port,invite
fromdomain=sip.flowroute.com
nat=yes

– Executing [18888577XXX@from-sip-external:1] NoOp(“SIP/flowroute.com-00000016”, “Received incoming SIP connection from unknown peer to 18888577XXX”) in new stack
– Executing [18888577XXX@from-sip-external:2] Set(“SIP/flowroute.com-00000016”, “DID=18888577XXX”) in new stack
– Executing [18888577XXX@from-sip-external:3] Goto(“SIP/flowroute.com-00000016”, “s,1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [s@from-sip-external:1] GotoIf(“SIP/flowroute.com-00000016”, “1?checklang:noanonymous”) in new stack
– Goto (from-sip-external,s,2)
– Executing [s@from-sip-external:2] GotoIf(“SIP/flowroute.com-00000016”, “0?setlanguage:from-trunk,18888577XXX,1”) in new stack
– Goto (from-trunk,18888577XXX,1)
– Executing [18888577XXX@from-trunk:1] Set(“SIP/flowroute.com-00000016”, “__FROM_DID=18888577XXX”) in new stack
– Executing [18888577XXX@from-trunk:2] Gosub(“SIP/flowroute.com-00000016”, “app-blacklist-check,s,1()”) in new stack
– Executing [s@app-blacklist-check:1] GotoIf(“SIP/flowroute.com-00000016”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:2] Set(“SIP/flowroute.com-00000016”, “CALLED_BLACKLIST=1”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/flowroute.com-00000016”, “”) in new stack
– Executing [18888577XXX@from-trunk:3] Set(“SIP/flowroute.com-00000016”, “__REC_POLICY_MODE=always”) in new stack
– Executing [18888577XXX@from-trunk:4] Set(“SIP/flowroute.com-00000016”, “CDR(did)=18888577XXX”) in new stack
– Executing [18888577XXX@from-trunk:5] ExecIf(“SIP/flowroute.com-00000016”, “1 ?Set(CALLERID(name)=+19194435XXX)”) in new stack
– Executing [18888577XXX@from-trunk:6] Set(“SIP/flowroute.com-00000016”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [18888577XXX@from-trunk:7] Set(“SIP/flowroute.com-00000016”, “CALLERPRES()=allowed_not_screened”) in new stack
– Executing [18888577XXX@from-trunk:8] Goto(“SIP/flowroute.com-00000016”, “timeconditions,1,1”) in new stack
– Goto (timeconditions,1,1)
– Executing [1@timeconditions:1] GotoIfTime(“SIP/flowroute.com-00000016”, “12:00-20:00,mon-fri,,?truestate”) in new stack
– Goto (timeconditions,1,7)
– Executing [1@timeconditions:7] GotoIf(“SIP/flowroute.com-00000016”, “0?falsegoto”) in new stack
– Executing [1@timeconditions:8] ExecIf(“SIP/flowroute.com-00000016”, “0?Set(DB(TC/1)=)”) in new stack
– Executing [1@timeconditions:9] GotoIf(“SIP/flowroute.com-00000016”, “1?ivr-1,s,1”) in new stack
– Goto (ivr-1,s,1)
– Executing [s@ivr-1:1] Set(“SIP/flowroute.com-00000016”, “TIMEOUT_LOOPCOUNT=0”) in new stack
– Executing [s@ivr-1:2] Set(“SIP/flowroute.com-00000016”, “INVALID_LOOPCOUNT=0”) in new stack
– Executing [s@ivr-1:3] Set(“SIP/flowroute.com-00000016”, “_IVR_CONTEXT_ivr-1=”) in new stack
– Executing [s@ivr-1:4] Set(“SIP/flowroute.com-00000016”, “_IVR_CONTEXT=ivr-1”) in new stack
– Executing [s@ivr-1:5] Set(“SIP/flowroute.com-00000016”, "_IVR_RETVM=") in new stack
– Executing [s@ivr-1:6] GotoIf(“SIP/flowroute.com-00000016”, “0?skip”) in new stack
– Executing [s@ivr-1:7] Answer(“SIP/flowroute.com-00000016”, “”) in new stack
> [INSERT INTO cel (eventtype,eventtime,cid_name,cid_num,cid

After a long time of having this problem i found out that I needed to route the calls to sip registration in the flowroute dashboard instead of routing to the static IP. Maybe this will help someone else.