G
G
g8525262016-08-21 07:53:44
Asterisk
g852526, 2016-08-21 07:53:44

When I call via sipnet.ru, I hear a greeting in response, when I don’t hear it at all through 7777, why?

When I call via sipnet.ru:

raspbx*CLI> [email protected]:~# 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 [[email protected]:1] NoOp("SIP/multifon.ru-00000035", "Received incoming SIP connection from unknown peer to 79302872979") in new stack
raspbx*CLI>     -- Executing [[email protected]:2] Set("SIP/multifon.ru-00000035", "DID=79302872979") in new stack
raspbx*CLI>     -- Executing [[email protected]:3] Goto("SIP/multifon.ru-00000035", "s,1") in new stack
raspbx*CLI>     -- Goto (from-sip-external,s,1)
raspbx*CLI>     -- Executing [[email protected]:1] GotoIf("SIP/multifon.ru-00000035", "0checklang:noanonymous") in new stack
raspbx*CLI>     -- Goto (from-sip-external,s,5)
raspbx*CLI>     -- Executing [[email protected]: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 [[email protected]: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 [[email protected]:7] Answer("SIP/multifon.ru-00000035", "") in new stack
raspbx*CLI>     -- Executing [[email protected]:8] Wait("SIP/multifon.ru-00000035", "2") in new stack
raspbx*CLI>     -- Executing [[email protected]: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 [[email protected]:10] PlayTones("SIP/multifon.ru-00000035", "congestion") in new stack
raspbx*CLI>     -- Executing [[email protected]: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 [[email protected]: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'

When I call through 7777:
===============================
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
    -- Executing [[email protected]internal:1] Macro("SIP/210820161-00000036", "user-callerid,") in new stack
    -- Executing [[email protected]:1] Set("SIP/210820161-00000036", "TOUCH_MONITOR=1471755098.54") in new stack
    -- Executing [[email protected]:2] Set("SIP/210820161-00000036", "AMPUSER=210820161") in new stack
    -- Executing [[email protected]:3] GotoIf("SIP/210820161-00000036", "0?report") in new stack
    -- Executing [[email protected]:4] ExecIf("SIP/210820161-00000036", "1?Set(REALCALLERIDNUM=210820161)") in new stack
    -- Executing [[email protected]:5] Set("SIP/210820161-00000036", "AMPUSER=210820161") in new stack
    -- Executing [[email protected]:6] GotoIf("SIP/210820161-00000036", "0?limit") in new stack
    -- Executing [[email protected]:7] Set("SIP/210820161-00000036", "AMPUSERCIDNAME=210820161") in new stack
    -- Executing [[email protected]:8] GotoIf("SIP/210820161-00000036", "0?report") in new stack
    -- Executing [[email protected]:9] Set("SIP/210820161-00000036", "AMPUSERCID=210820161") in new stack
    -- Executing [[email protected]:10] Set("SIP/210820161-00000036", "__DIAL_OPTIONS=Ttr") in new stack
    -- Executing [[email protected]:11] Set("SIP/210820161-00000036", "CALLERID(all)="210820161" <210820161>") in new stack
    -- Executing [[email protected]:12] GotoIf("SIP/210820161-00000036", "0?limit") in new stack
    -- Executing [[email protected]:13] ExecIf("SIP/210820161-00000036", "0?Set(GROUP(concurrency_limit)=210820161)") in new stack
    -- Executing [[email protected]:14] GotoIf("SIP/210820161-00000036", "0?continue") in new stack
    -- Executing [[email protected]:15] Set("SIP/210820161-00000036", "__TTL=64") in new stack
    -- Executing [[email protected]:16] GotoIf("SIP/210820161-00000036", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,27)
    -- Executing [[email protected]:27] Set("SIP/210820161-00000036", "CALLERID(number)=210820161") in new stack
    -- Executing [[email protected]:28] Set("SIP/210820161-00000036", "CALLERID(name)=210820161") in new stack
    -- Executing [[email protected]:29] Set("SIP/210820161-00000036", "CDR(cnum)=210820161") in new stack
    -- Executing [[email protected]:30] Set("SIP/210820161-00000036", "CDR(cnam)=210820161") in new stack
    -- Executing [[email protected]:31] Set("SIP/210820161-00000036", "CHANNEL(language)=en") in new stack
    -- Executing [[email protected]:2] Goto("SIP/210820161-00000036", "from-pstn,7777,1") in new stack
    -- Goto (from-pstn,7777,1)
    -- Executing [[email protected]:1] NoOp("SIP/210820161-00000036", "Catch-All DID Match - Found 7777 - You probably want a DID for this.") in new stack
    -- Executing [[email protected]: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 [[email protected]:3] Set("SIP/210820161-00000036", "__FROM_DID=7777") in new stack
    -- Executing [[email protected]:4] Goto("SIP/210820161-00000036", "ext-did,s,1") in new stack
    -- Goto (ext-did,s,1)
    -- Executing [[email protected]:1] ExecIf("SIP/210820161-00000036", "0?Set(__FROM_DID=s)") in new stack
    -- Executing [[email protected]:2] Set("SIP/210820161-00000036", "CDR(did)=7777") in new stack
    -- Executing [[email protected]:3] ExecIf("SIP/210820161-00000036", "0 ?Set(CALLERID(name)=210820161)") in new stack
    -- Executing [[email protected]:4] Set("SIP/210820161-00000036", "CHANNEL(musicclass)=default") in new stack
    -- Executing [[email protected]:5] Set("SIP/210820161-00000036", "__MOHCLASS=default") in new stack
    -- Executing [[email protected]:6] Set("SIP/210820161-00000036", "__REVERSAL_REJECT=FALSE") in new stack
    -- Executing [[email protected]:7] GotoIf("SIP/210820161-00000036", "1?post-reverse-charge") in new stack
    -- Goto (ext-did,s,9)
    -- Executing [[email protected]:9] NoOp("SIP/210820161-00000036", "") in new stack
    -- Executing [[email protected]:10] Set("SIP/210820161-00000036", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
    -- Executing [[email protected]:11] Set("SIP/210820161-00000036", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
    -- Executing [[email protected]:12] Set("SIP/210820161-00000036", "CALLERID(name-pres)=allowed_not_screened") in new stack
    -- Executing [[email protected]:13] Set("SIP/210820161-00000036", "CALLERID(num-pres)=allowed_not_screened") in new stack
    -- Executing [[email protected]:14] NoOp("SIP/210820161-00000036", "CallerID Entry Point") in new stack
    -- Executing [[email protected]:15] Goto("SIP/210820161-00000036", "app-announcement-1,s,1") in new stack
    -- Goto (app-announcement-1,s,1)
    -- Executing [[email protected]:1] GotoIf("SIP/210820161-00000036", "0?begin") in new stack
    -- Executing [[email protected]:2] Answer("SIP/210820161-00000036", "") in new stack
    -- Executing [[email protected]:3] Wait("SIP/210820161-00000036", "1") in new stack
    -- Executing [[email protected]:4] NoOp("SIP/210820161-00000036", "Playing announcement an") in new stack
    -- Executing [[email protected]: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'

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
D
Dmitry Shitskov, 2016-08-21
@Zarom

Well, the question ... Yes, because it is configured so)) The contexts are even different.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question