Received incoming SIP connection from unknown peer

Hi,

I cant seem to get my SIP Trunk to work. I’m sure my configuration here is a shambles, any help would be most appreciated.

-Incoming–
type=peer
dtmfmode=auto
secret=xxxx
context=from-trunk
qualify=yes
insecure=port,invite
canreinvite=no
host=sip00.mynetfone.com.au

–Outgoing–
dtmfmode=rfc2833
host=sip00.mynetfone.com.au
nat=yes
type=peer
port=5060
insecure=very
disallow=all
allow=alaw&ulaw

[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-sip-external:1] NoOp("SIP/10.0.10.234-00000006", "Received incoming SIP connection from unknown peer to 0430340490") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-sip-external:2] Set("SIP/10.0.10.234-00000006", "DID=0430340490") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-sip-external:3] Goto("SIP/10.0.10.234-00000006", "s,1") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (from-sip-external,s,1)
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/10.0.10.234-00000006", "1?setlanguage:checkanon") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (from-sip-external,s,2)
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-sip-external:2] Set("SIP/10.0.10.234-00000006", "CHANNEL(language)=en_AU") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/10.0.10.234-00000006", "0?noanonymous") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-sip-external:4] Goto("SIP/10.0.10.234-00000006", "from-trunk,0430340490,1") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (from-trunk,0430340490,1)
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-trunk:1] Set("SIP/10.0.10.234-00000006", "__FROM_DID=0430340490") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-trunk:2] NoOp("SIP/10.0.10.234-00000006", "Received an unknown call with DID set to 0430340490") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [0430340490@from-trunk:3] Goto("SIP/10.0.10.234-00000006", "s,a2") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (from-trunk,s,2)
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-trunk:2] Answer("SIP/10.0.10.234-00000006", "") in new stack
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-trunk:3] Log("SIP/10.0.10.234-00000006", "WARNING,Friendly Scanner from 10.0.10.240") in new stack
[2019-12-27 04:24:02] WARNING[18178][C-00000007] Ext. s: Friendly Scanner from 10.0.10.240
[2019-12-27 04:24:02] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-trunk:4] Wait("SIP/10.0.10.234-00000006", "2") in new stack
[2019-12-27 04:24:04] VERBOSE[18178][C-00000007] pbx.c: Executing [s@from-trunk:5] Playback("SIP/10.0.10.234-00000006", "ss-noservice") in new stack
[2019-12-27 04:24:04] VERBOSE[18178][C-00000007] file.c: <SIP/10.0.10.234-00000006> Playing 'ss-noservice.ulaw' (language 'en_AU')
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [h@from-trunk:1] Macro("SIP/10.0.10.234-00000006", "hangupcall,") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("SIP/10.0.10.234-00000006", "1?theend") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("SIP/10.0.10.234-00000006", "0?Set(CDR(recordingfile)=)") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [s@macro-hangupcall:4] NoOp("SIP/10.0.10.234-00000006", " montior file= ") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("SIP/10.0.10.234-00000006", "1?skipagi") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Executing [s@macro-hangupcall:7] Hangup("SIP/10.0.10.234-00000006", "") in new stack
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'SIP/10.0.10.234-00000006' in macro 'hangupcall'
[2019-12-27 04:24:07] VERBOSE[18178][C-00000007] pbx.c: Spawn extension (from-trunk, h, 1) exited non-zero on 'SIP/10.0.10.234-00000006'

Why do you have two sections for the same remote IP address? Asterisk will not know which one to use for incoming calls.

Why do you have nat=yes? Why do you only have it on one of them?

Why do you have insecure=port (both in terms of the deprecated very and explicitly)? (Why do you use different ways of giving the same options on the two peer entries?)

More generally, why do the codec, context, authentication, dtmfmode, directmedia (note that canreinvite has been a deprecated name for many years) and nat parameters differ?

In general this looks like you have cut and pasted the, typically bad, examples on the net, without looking up what the options actually mean.

Without the SIP protocol trace, I’m not sure how we can answer the original question. However, you should consider setting allowguest to no.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.