Blacklist randomly working

Hi all,

I have a very simple configuration, which I setup for a proof of concept with FreePBX.
I was going to buy Sangoma T1 boards, but my proof of concept went kaput on the day of the demo.

I installed FreePBX 15.0.16.81, just one user (ext#1234), and 1 SIP Trunk.
No inbound, no outbound, nothing else.

I can call from my remote PBX to extension 1234.
The numbers used to call into FreePBX are 1000 and 1111
If I go in Admin / Blacklist and add either or, I can still call 1234

The CDR do show the CallerID, and I entered the number in between the greater than / smaller than sign (“IP Softphone <1000>”). Still, the blacklist is not working.

Funny thing is out of 50 calls, one will be blocked.
And it’s clearly not the PBX I’m using in front of FreePBX. That’s a x-tra large enterprise PBX which handles hundred of thousands of accounts. If the CID was shaky, I’d have tickets from customers years ago.

I ran TCPDUMP traces on the Asterisk to make sure the CID is being sent / received correctly without any funky characters:

+------------------------------------------------------------+
[root@freepbx ~]# tcpdump -nqt -s 0 -A port 5060
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes
IP 192.168.100.100.sip &gt; 192.168.100.99.sip: UDP, length 1112
[email protected].....`.#INVITE sip:[email protected];user=phone SIP/2.0
Allow: INVITE, ACK, CANCEL, BYE, PRACK, NOTIFY, SUBSCRIBE, OPTIONS, UPDATE, INFO
Supported: timer,path,100rel
User-Agent: R12.4
Session-Expires: 1800;refresher=uac
Min-SE: 900
P-Asserted-Identity: "IP Softphone" &lt;sip:[email protected];user=phone&gt;
Content-Type: application/sdp
To: &lt;sip:[email protected];user=phone&gt;
From: "IP Softphone" &lt;sip:[email protected];user=phone&gt;;tag=95b0d17a1d00ae8ee8776059416f45be
Contact: &lt;sip:[email protected];transport=UDP&gt;
Call-ID: [email protected]
CSeq: 1880848396 INVITE
Via: SIP/2.0/UDP 192.168.100.100;branch=z9hG4bKc01644cc50fc3f349a09b172137d0f53
Max-Forwards: 70
Content-Length: 347

And I don’t see anything related to blacklist in the Asterisk traces:
=========================================================================
Connected to Asterisk 16.13.0 currently running on freepbx (pid = 2380)
== Setting global variable ‘SIPDOMAIN’ to ‘192.168.100.99’
– Executing [1234@from-pstn:1] GotoIf(“PJSIP/OXE-00000013”, “1?ext-local,1234,1:followme-check,1234,1”) in new stack
– Goto (ext-local,1234,1)
– Executing [1234@ext-local:1] Set(“PJSIP/OXE-00000013”, “__RINGTIMER=15”) in new stack
– Executing [1234@ext-local:2] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [1234@ext-local:3] Macro(“PJSIP/OXE-00000013”, “exten-vm,1234,1234,0,0,0”) in new stack
– Executing [s@macro-exten-vm:1] Macro(“PJSIP/OXE-00000013”, “user-callerid,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“PJSIP/OXE-00000013”, “TOUCH_MONITOR=1615986764.19”) in new stack
– Executing [s@macro-user-callerid:2] Set(“PJSIP/OXE-00000013”, “AMPUSER=1000”) in new stack
– Executing [s@macro-user-callerid:3] Set(“PJSIP/OXE-00000013”, “HOTDESCKCHAN=OXE-00000013”) in new stack
– Executing [s@macro-user-callerid:4] Set(“PJSIP/OXE-00000013”, “HOTDESKEXTEN=OXE”) in new stack
– Executing [s@macro-user-callerid:5] Set(“PJSIP/OXE-00000013”, “HOTDESKCALL=0”) in new stack
– Executing [s@macro-user-callerid:6] ExecIf(“PJSIP/OXE-00000013”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [s@macro-user-callerid:7] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [s@macro-user-callerid:8] GotoIf(“PJSIP/OXE-00000013”, “0?report”) in new stack
– Executing [s@macro-user-callerid:9] ExecIf(“PJSIP/OXE-00000013”, “1?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [s@macro-user-callerid:10] Set(“PJSIP/OXE-00000013”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“PJSIP/OXE-00000013”, “0?limit”) in new stack
– Executing [s@macro-user-callerid:12] Set(“PJSIP/OXE-00000013”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [s@macro-user-callerid:14] GotoIf(“PJSIP/OXE-00000013”, “1?report”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [s@macro-user-callerid:23] NoOp(“PJSIP/OXE-00000013”, “Macro Depth is 2”) in new stack
– Executing [s@macro-user-callerid:24] GotoIf(“PJSIP/OXE-00000013”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,25)
– Executing [s@macro-user-callerid:25] GotoIf(“PJSIP/OXE-00000013”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:26] ExecIf(“PJSIP/OXE-00000013”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [s@macro-user-callerid:27] Set(“PJSIP/OXE-00000013”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:28] GotoIf(“PJSIP/OXE-00000013”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,44)
– Executing [s@macro-user-callerid:44] Set(“PJSIP/OXE-00000013”, “CALLERID(number)=1000”) in new stack
– Executing [s@macro-user-callerid:45] Set(“PJSIP/OXE-00000013”, “CALLERID(name)=IP Softphone”) in new stack
– Executing [s@macro-user-callerid:46] GotoIf(“PJSIP/OXE-00000013”, “0?cnum”) in new stack
– Executing [s@macro-user-callerid:47] Set(“PJSIP/OXE-00000013”, “CDR(cnam)=IP Softphone”) in new stack
– Executing [s@macro-user-callerid:48] Set(“PJSIP/OXE-00000013”, “CDR(cnum)=1000”) in new stack
– Executing [s@macro-user-callerid:49] Set(“PJSIP/OXE-00000013”, “CHANNEL(language)=en”) in new stack
– Executing [s@macro-exten-vm:2] Set(“PJSIP/OXE-00000013”, “RingGroupMethod=none”) in new stack
– Executing [s@macro-exten-vm:3] Set(“PJSIP/OXE-00000013”, “__EXTTOCALL=1234”) in new stack
– Executing [s@macro-exten-vm:4] Set(“PJSIP/OXE-00000013”, “__PICKUPMARK=1234”) in new stack
– Executing [s@macro-exten-vm:5] Set(“PJSIP/OXE-00000013”, “RT=15”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:6] ExecIf(“PJSIP/OXE-00000013”, “0?Macro(vm,1234,DIRECTDIAL,)”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:7] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:8] ExecIf(“PJSIP/OXE-00000013”, “0?Gosub(ext-intercom,*801234,1())”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:9] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:10] ExecIf(“PJSIP/OXE-00000013”, “0?ChanSpy(PJSIP/1234,q)”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:11] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
[2021-03-17 13:12:44] WARNING[7595][C-0000000c]: chan_sip.c:23279 func_header_read: This function can only be used on SIP channels.
– Executing [s@macro-exten-vm:12] ExecIf(“PJSIP/OXE-00000013”, “0?Macro(vm,1234,DIRECTDIAL,)”) in new stack
– Executing [s@macro-exten-vm:13] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:14] ExecIf(“PJSIP/OXE-00000013”, “0?Gosub(ext-intercom,*801234,1())”) in new stack
– Executing [s@macro-exten-vm:15] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:16] ExecIf(“PJSIP/OXE-00000013”, “0?ChanSpy(PJSIP/1234,q)”) in new stack
– Executing [s@macro-exten-vm:17] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [s@macro-exten-vm:18] Gosub(“PJSIP/OXE-00000013”, “sub-record-check,s,1(exten,1234,dontcare)”) in new stack
– Executing [s@sub-record-check:1] GotoIf(“PJSIP/OXE-00000013”, “0?initialized”) in new stack
– Executing [s@sub-record-check:2] Set(“PJSIP/OXE-00000013”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [s@sub-record-check:3] Set(“PJSIP/OXE-00000013”, “NOW=1615986764”) in new stack
– Executing [s@sub-record-check:4] Set(“PJSIP/OXE-00000013”, “__DAY=17”) in new stack
– Executing [s@sub-record-check:5] Set(“PJSIP/OXE-00000013”, “__MONTH=03”) in new stack
– Executing [s@sub-record-check:6] Set(“PJSIP/OXE-00000013”, “__YEAR=2021”) in new stack
– Executing [s@sub-record-check:7] Set(“PJSIP/OXE-00000013”, “__TIMESTR=20210317-131244”) in new stack
– Executing [s@sub-record-check:8] Set(“PJSIP/OXE-00000013”, “__FROMEXTEN=1000”) in new stack
– Executing [s@sub-record-check:9] Set(“PJSIP/OXE-00000013”, “__MON_FMT=wav”) in new stack
– Executing [s@sub-record-check:10] NoOp(“PJSIP/OXE-00000013”, “Recordings initialized”) in new stack
– Executing [s@sub-record-check:11] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [s@sub-record-check:12] Set(“PJSIP/OXE-00000013”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [s@sub-record-check:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [s@sub-record-check:14] GotoIf(“PJSIP/OXE-00000013”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [s@sub-record-check:17] GotoIf(“PJSIP/OXE-00000013”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [exten@sub-record-check:1] NoOp(“PJSIP/OXE-00000013”, “Exten Recording Check between 1000 and 1234”) in new stack
– Executing [exten@sub-record-check:2] Set(“PJSIP/OXE-00000013”, “CALLTYPE=internal”) in new stack
– Executing [exten@sub-record-check:3] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLTYPE=)”) in new stack
– Executing [exten@sub-record-check:4] Set(“PJSIP/OXE-00000013”, “CALLEE=dontcare”) in new stack
– Executing [exten@sub-record-check:5] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [exten@sub-record-check:6] GotoIf(“PJSIP/OXE-00000013”, “0?callee”) in new stack
– Executing [exten@sub-record-check:7] GotoIf(“PJSIP/OXE-00000013”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [exten@sub-record-check:13] Set(“PJSIP/OXE-00000013”, “RECMODE=”) in new stack
– Executing [exten@sub-record-check:14] ExecIf(“PJSIP/OXE-00000013”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:15] ExecIf(“PJSIP/OXE-00000013”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [exten@sub-record-check:16] Gosub(“PJSIP/OXE-00000013”, “recordcheck,1(dontcare,internal,1234)”) in new stack
– Executing [recordcheck@sub-record-check:1] NoOp(“PJSIP/OXE-00000013”, “Starting recording check against dontcare”) in new stack
– Executing [recordcheck@sub-record-check:2] Goto(“PJSIP/OXE-00000013”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [recordcheck@sub-record-check:3] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [exten@sub-record-check:17] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [s@macro-exten-vm:19] GotoIf(“PJSIP/OXE-00000013”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,25)
– Executing [s@macro-exten-vm:25] GosubIf(“PJSIP/OXE-00000013”, “0?clrheader,1()”) in new stack
– Executing [s@macro-exten-vm:26] Macro(“PJSIP/OXE-00000013”, “dial-one,15,HhTtr,1234”) in new stack
– Executing [s@macro-dial-one:1] Set(“PJSIP/OXE-00000013”, “DEXTEN=1234”) in new stack
– Executing [s@macro-dial-one:2] Set(“PJSIP/OXE-00000013”, “__CRM_SOURCE=1000”) in new stack
– Executing [s@macro-dial-one:3] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__EXTTOCALL=1234)”) in new stack
– Executing [s@macro-dial-one:4] Set(“PJSIP/OXE-00000013”, “DIALSTATUS_CW=”) in new stack
– Executing [s@macro-dial-one:5] GosubIf(“PJSIP/OXE-00000013”, “0?screen,1()”) in new stack
– Executing [s@macro-dial-one:6] GosubIf(“PJSIP/OXE-00000013”, “0?cf,1()”) in new stack
– Executing [s@macro-dial-one:7] GotoIf(“PJSIP/OXE-00000013”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [s@macro-dial-one:10] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:11] GotoIf(“PJSIP/OXE-00000013”, “0?continue”) in new stack
– Executing [s@macro-dial-one:12] Set(“PJSIP/OXE-00000013”, “EXTHASCW=ENABLED”) in new stack
– Executing [s@macro-dial-one:13] GotoIf(“PJSIP/OXE-00000013”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [s@macro-dial-one:25] GotoIf(“PJSIP/OXE-00000013”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [s@macro-dial-one:27] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:28] GosubIf(“PJSIP/OXE-00000013”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [dstring@macro-dial-one:1] Set(“PJSIP/OXE-00000013”, “DSTRING=”) in new stack
– Executing [dstring@macro-dial-one:2] Set(“PJSIP/OXE-00000013”, “DEVICES=1234”) in new stack
– Executing [dstring@macro-dial-one:3] ExecIf(“PJSIP/OXE-00000013”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:4] ExecIf(“PJSIP/OXE-00000013”, “0?Set(DEVICES=234)”) in new stack
– Executing [dstring@macro-dial-one:5] Set(“PJSIP/OXE-00000013”, “LOOPCNT=1”) in new stack
– Executing [dstring@macro-dial-one:6] Set(“PJSIP/OXE-00000013”, “ITER=1”) in new stack
– Executing [dstring@macro-dial-one:7] Set(“PJSIP/OXE-00000013”, “THISDIAL=PJSIP/1234”) in new stack
– Executing [dstring@macro-dial-one:8] GotoIf(“PJSIP/OXE-00000013”, “0?docheck”) in new stack
– Executing [dstring@macro-dial-one:9] NoOp(“PJSIP/OXE-00000013”, “Debug: Found PJSIP Destination PJSIP/1234”) in new stack
– Executing [dstring@macro-dial-one:10] GotoIf(“PJSIP/OXE-00000013”, “0?doset”) in new stack
– Executing [dstring@macro-dial-one:11] NoOp(“PJSIP/OXE-00000013”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [dstring@macro-dial-one:12] Set(“PJSIP/OXE-00000013”, “THISDIAL=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b”) in new stack
– Executing [dstring@macro-dial-one:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [dstring@macro-dial-one:14] GotoIf(“PJSIP/OXE-00000013”, “0?skipset”) in new stack
– Executing [dstring@macro-dial-one:15] Set(“PJSIP/OXE-00000013”, “DSTRING=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b&”) in new stack
– Executing [dstring@macro-dial-one:16] Set(“PJSIP/OXE-00000013”, “ITER=2”) in new stack
– Executing [dstring@macro-dial-one:17] GotoIf(“PJSIP/OXE-00000013”, “0?begin”) in new stack
– Executing [dstring@macro-dial-one:18] ExecIf(“PJSIP/OXE-00000013”, “0?Return()”) in new stack
– Executing [dstring@macro-dial-one:19] Set(“PJSIP/OXE-00000013”, “DSTRING=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b”) in new stack
– Executing [dstring@macro-dial-one:20] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [s@macro-dial-one:29] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [s@macro-dial-one:30] GotoIf(“PJSIP/OXE-00000013”, “0?skiptrace”) in new stack
– Executing [s@macro-dial-one:31] GosubIf(“PJSIP/OXE-00000013”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [ctset@macro-dial-one:1] Set(“PJSIP/OXE-00000013”, “DB(CALLTRACE/1234)=1000”) in new stack
– Executing [ctset@macro-dial-one:2] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [s@macro-dial-one:32] Set(“PJSIP/OXE-00000013”, “D_OPTIONS=HhTtr”) in new stack
– Executing [s@macro-dial-one:33] GosubIf(“PJSIP/OXE-00000013”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:34] NoOp(“PJSIP/OXE-00000013”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [s@macro-dial-one:35] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:36] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:37] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [s@macro-dial-one:38] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:39] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [s@macro-dial-one:40] GosubIf(“PJSIP/OXE-00000013”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [s@macro-dial-one:41] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [s@macro-dial-one:42] GosubIf(“PJSIP/OXE-00000013”, “0?qwait,1()”) in new stack
– Executing [s@macro-dial-one:43] Set(“PJSIP/OXE-00000013”, “__CWIGNORE=”) in new stack
– Executing [s@macro-dial-one:44] Set(“PJSIP/OXE-00000013”, “__KEEPCID=TRUE”) in new stack
– Executing [s@macro-dial-one:45] GotoIf(“PJSIP/OXE-00000013”, “0?usegoto,1”) in new stack
– Executing [s@macro-dial-one:46] GotoIf(“PJSIP/OXE-00000013”, “1?godial”) in new stack
– Goto (macro-dial-one,s,51)
– Executing [s@macro-dial-one:51] Macro(“PJSIP/OXE-00000013”, “dialout-one-predial-hook,”) in new stack
– Executing [s@macro-dialout-one-predial-hook:1] MacroExit(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [s@macro-dial-one:52] ExecIf(“PJSIP/OXE-00000013”, “0?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [s@macro-dial-one:53] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CWRING=r(callwaiting)):Set(CWRING=)”) in new stack
– Executing [s@macro-dial-one:54] NoOp(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [s@macro-dial-one:55] ExecIf(“PJSIP/OXE-00000013”, “0?Set(D_OPTIONS=HhTtrg)”) in new stack
– Executing [s@macro-dial-one:56] Dial(“PJSIP/OXE-00000013”, “PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b,15,HhTtrb(func-apply-sipheaders^s^1)”) in new stack
– PJSIP/1234-00000014 Internal Gosub(func-apply-sipheaders,s,1) start
– Executing [s@func-apply-sipheaders:1] ExecIf(“PJSIP/1234-00000014”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [s@func-apply-sipheaders:2] NoOp(“PJSIP/1234-00000014”, “Applying SIP Headers to channel PJSIP/1234-00000014”) in new stack
– Executing [s@func-apply-sipheaders:3] Set(“PJSIP/1234-00000014”, “TECH=PJSIP”) in new stack
– Executing [s@func-apply-sipheaders:4] Set(“PJSIP/1234-00000014”, “SIPHEADERKEYS=”) in new stack
– Executing [s@func-apply-sipheaders:5] While(“PJSIP/1234-00000014”, “0”) in new stack
– Jumping to priority 13
– Executing [s@func-apply-sipheaders:14] Return(“PJSIP/1234-00000014”, “”) in new stack
== Spawn extension (from-internal, 1234, 1) exited non-zero on ‘PJSIP/1234-00000014’
– PJSIP/1234-00000014 Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
– Called PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b
== Using SIP RTP Audio TOS bits 184
== Using SIP RTP Audio TOS bits 184 in TCLASS field.
== Using SIP RTP Audio CoS mark 5
– PJSIP/1234-00000014 is ringing
– PJSIP/1234-00000014 is ringing

While the database shows that CID 1000 is blocked:
[root@freepbx ~]# rasterisk -x ‘database show blacklist’
/blacklist/1000 : 1
/blacklist/dest : app-blackhole,no-service,1
2 results found.

Also, when I look at the Blacklist call log for a number I added, I see the date and time I called. So the blacklist know I called from this number, but still let the call go through…

Any hint?

For blacklist to work, the call must arrive in context from-pstn (or one of it’s aliases such as from-trunk) and you must have an inbound route.

2 Likes

I was just making more tests.
Actually, if I have an INBOUND ROUTE which destination is a Trunk (in order to create a loop from the caller), THEN the calls are blocked correctly.

does the context from_pstn applies to incoming SIP trunks?
Thank you.

The trunk context is part of the trunk config. If you want calls from a trunk to use inbound routes, then you set the context to from-pstn. If you want inbound trunk calls to behave differently, then you would use another context.

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