Когда звоню со через sipnet.ru:
raspbx*CLI> root@raspbx:~# asterisk -rvvv
raspbx*CLI> Connected to Asterisk 11.21.0 currently running on raspbx (pid = 1674)
raspbx*CLI> == Using SIP RTP TOS bits 184
raspbx*CLI> == Using SIP RTP CoS mark 5
raspbx*CLI> -- Executing [79302872979@from-sip-external:1] NoOp("SIP/multifon.ru-00000035", "Received incoming SIP connection from unknown peer to 79302872979") in new stack
raspbx*CLI> -- Executing [79302872979@from-sip-external:2] Set("SIP/multifon.ru-00000035", "DID=79302872979") in new stack
raspbx*CLI> -- Executing [79302872979@from-sip-external:3] Goto("SIP/multifon.ru-00000035", "s,1") in new stack
raspbx*CLI> -- Goto (from-sip-external,s,1)
raspbx*CLI> -- Executing [s@from-sip-external:1] GotoIf("SIP/multifon.ru-00000035", "0checklang:noanonymous") in new stack
raspbx*CLI> -- Goto (from-sip-external,s,5)
raspbx*CLI> -- Executing [s@from-sip-external:5] Set("SIP/multifon.ru-00000035", "TIMEOUT(absolute)=15") in new stack
raspbx*CLI> -- Channel will hangup at 2016-08-21 05:36:33.976 MSD.
raspbx*CLI> -- Executing [s@from-sip-external:6] Log("SIP/multifon.ru-00000035", "WARNING,"Rejecting unknown SIP connection from 193.201.229.35"") in new stack
raspbx*CLI> [2016-08-21 05:36:18] WARNING[22709][C-0000002e]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 193.201.229.35"
raspbx*CLI> -- Executing [s@from-sip-external:7] Answer("SIP/multifon.ru-00000035", "") in new stack
raspbx*CLI> -- Executing [s@from-sip-external:8] Wait("SIP/multifon.ru-00000035", "2") in new stack
raspbx*CLI> -- Executing [s@from-sip-external:9] Playback("SIP/multifon.ru-00000035", "ss-noservice") in new stack
raspbx*CLI> -- <SIP/multifon.ru-00000035> Playing 'ss-noservice.ulaw' (language 'en')
raspbx*CLI> -- Executing [s@from-sip-external:10] PlayTones("SIP/multifon.ru-00000035", "congestion") in new stack
raspbx*CLI> -- Executing [s@from-sip-external:11] Congestion("SIP/multifon.ru-00000035", "5") in new stack
raspbx*CLI> [2016-08-21 05:36:30] NOTICE[1725]: chan_sip.c:28133 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 210820161
raspbx*CLI> == Spawn extension (from-sip-external, s, 11) exited non-zero on 'SIP/multifon.ru-00000035'
raspbx*CLI> -- Executing [h@from-sip-external:1] Hangup("SIP/multifon.ru-00000035", "") in new stack
raspbx*CLI> == Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/multifon.ru-00000035'
Когда звоню через 7777:
===============================
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [7777@from-internal:1] Macro("SIP/210820161-00000036", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/210820161-00000036", "TOUCH_MONITOR=1471755098.54") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/210820161-00000036", "AMPUSER=210820161") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/210820161-00000036", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/210820161-00000036", "1?Set(REALCALLERIDNUM=210820161)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/210820161-00000036", "AMPUSER=210820161") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/210820161-00000036", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/210820161-00000036", "AMPUSERCIDNAME=210820161") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/210820161-00000036", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/210820161-00000036", "AMPUSERCID=210820161") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/210820161-00000036", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/210820161-00000036", "CALLERID(all)="210820161" <210820161>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/210820161-00000036", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/210820161-00000036", "0?Set(GROUP(concurrency_limit)=210820161)") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/210820161-00000036", "0?continue") in new stack
-- Executing [s@macro-user-callerid:15] Set("SIP/210820161-00000036", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:16] GotoIf("SIP/210820161-00000036", "1?continue") in new stack
-- Goto (macro-user-callerid,s,27)
-- Executing [s@macro-user-callerid:27] Set("SIP/210820161-00000036", "CALLERID(number)=210820161") in new stack
-- Executing [s@macro-user-callerid:28] Set("SIP/210820161-00000036", "CALLERID(name)=210820161") in new stack
-- Executing [s@macro-user-callerid:29] Set("SIP/210820161-00000036", "CDR(cnum)=210820161") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/210820161-00000036", "CDR(cnam)=210820161") in new stack
-- Executing [s@macro-user-callerid:31] Set("SIP/210820161-00000036", "CHANNEL(language)=en") in new stack
-- Executing [7777@from-internal:2] Goto("SIP/210820161-00000036", "from-pstn,7777,1") in new stack
-- Goto (from-pstn,7777,1)
-- Executing [7777@from-pstn:1] NoOp("SIP/210820161-00000036", "Catch-All DID Match - Found 7777 - You probably want a DID for this.") in new stack
-- Executing [7777@from-pstn:2] Log("SIP/210820161-00000036", "WARNING,Friendly Scanner from 192.168.1.234") in new stack
[2016-08-21 05:51:38] WARNING[23348][C-0000002f]: Ext. 7777:2 @ from-pstn: Friendly Scanner from 192.168.1.234
-- Executing [7777@from-pstn:3] Set("SIP/210820161-00000036", "__FROM_DID=7777") in new stack
-- Executing [7777@from-pstn:4] Goto("SIP/210820161-00000036", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] ExecIf("SIP/210820161-00000036", "0?Set(__FROM_DID=s)") in new stack
-- Executing [s@ext-did:2] Set("SIP/210820161-00000036", "CDR(did)=7777") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/210820161-00000036", "0 ?Set(CALLERID(name)=210820161)") in new stack
-- Executing [s@ext-did:4] Set("SIP/210820161-00000036", "CHANNEL(musicclass)=default") in new stack
-- Executing [s@ext-did:5] Set("SIP/210820161-00000036", "__MOHCLASS=default") in new stack
-- Executing [s@ext-did:6] Set("SIP/210820161-00000036", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [s@ext-did:7] GotoIf("SIP/210820161-00000036", "1?post-reverse-charge") in new stack
-- Goto (ext-did,s,9)
-- Executing [s@ext-did:9] NoOp("SIP/210820161-00000036", "") in new stack
-- Executing [s@ext-did:10] Set("SIP/210820161-00000036", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:11] Set("SIP/210820161-00000036", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:12] Set("SIP/210820161-00000036", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:13] Set("SIP/210820161-00000036", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:14] NoOp("SIP/210820161-00000036", "CallerID Entry Point") in new stack
-- Executing [s@ext-did:15] Goto("SIP/210820161-00000036", "app-announcement-1,s,1") in new stack
-- Goto (app-announcement-1,s,1)
-- Executing [s@app-announcement-1:1] GotoIf("SIP/210820161-00000036", "0?begin") in new stack
-- Executing [s@app-announcement-1:2] Answer("SIP/210820161-00000036", "") in new stack
-- Executing [s@app-announcement-1:3] Wait("SIP/210820161-00000036", "1") in new stack
-- Executing [s@app-announcement-1:4] NoOp("SIP/210820161-00000036", "Playing announcement an") in new stack
-- Executing [s@app-announcement-1:5] Playback("SIP/210820161-00000036", "custom/an,noanswer") in new stack
-- <SIP/210820161-00000036> Playing 'custom/an.slin' (language 'en')
== Spawn extension (app-announcement-1, s, 5) exited non-zero on 'SIP/210820161-00000036'