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:

+------------------------------------------------------------+
[[email protected] ~]# 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 [[email protected]:1] GotoIf(“PJSIP/OXE-00000013”, “1?ext-local,1234,1:followme-check,1234,1”) in new stack
– Goto (ext-local,1234,1)
– Executing [[email protected]:1] Set(“PJSIP/OXE-00000013”, “__RINGTIMER=15”) in new stack
– Executing [[email protected]:2] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__CWIGNORE=)”) in new stack
– Executing [[email protected]:3] Macro(“PJSIP/OXE-00000013”, “exten-vm,1234,1234,0,0,0”) in new stack
– Executing [[email protected]:1] Macro(“PJSIP/OXE-00000013”, “user-callerid,”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/OXE-00000013”, “TOUCH_MONITOR=1615986764.19”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “AMPUSER=1000”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/OXE-00000013”, “HOTDESCKCHAN=OXE-00000013”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/OXE-00000013”, “HOTDESKEXTEN=OXE”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/OXE-00000013”, “HOTDESKCALL=0”) in new stack
– Executing [[email protected]:6] ExecIf(“PJSIP/OXE-00000013”, “0?Set(HOTDESKCALL=1)”) in new stack
– Executing [[email protected]:7] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLERID(name)=)”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/OXE-00000013”, “0?report”) in new stack
– Executing [[email protected]:9] ExecIf(“PJSIP/OXE-00000013”, “1?Set(REALCALLERIDNUM=1000)”) in new stack
– Executing [[email protected]:10] Set(“PJSIP/OXE-00000013”, “AMPUSER=”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/OXE-00000013”, “0?limit”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/OXE-00000013”, “AMPUSERCIDNAME=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__CIDMASQUERADING=TRUE)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/OXE-00000013”, “1?report”) in new stack
– Goto (macro-user-callerid,s,23)
– Executing [[email protected]:23] NoOp(“PJSIP/OXE-00000013”, “Macro Depth is 2”) in new stack
– Executing [[email protected]:24] GotoIf(“PJSIP/OXE-00000013”, “1?report2:macroerror”) in new stack
– Goto (macro-user-callerid,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/OXE-00000013”, “0?continue”) in new stack
– Executing [[email protected]:26] ExecIf(“PJSIP/OXE-00000013”, “1?Set(__CALLEE_ACCOUNCODE=)”) in new stack
– Executing [[email protected]:27] Set(“PJSIP/OXE-00000013”, “__TTL=64”) in new stack
– Executing [[email protected]:28] GotoIf(“PJSIP/OXE-00000013”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,44)
– Executing [[email protected]:44] Set(“PJSIP/OXE-00000013”, “CALLERID(number)=1000”) in new stack
– Executing [[email protected]:45] Set(“PJSIP/OXE-00000013”, “CALLERID(name)=IP Softphone”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/OXE-00000013”, “0?cnum”) in new stack
– Executing [[email protected]:47] Set(“PJSIP/OXE-00000013”, “CDR(cnam)=IP Softphone”) in new stack
– Executing [[email protected]:48] Set(“PJSIP/OXE-00000013”, “CDR(cnum)=1000”) in new stack
– Executing [[email protected]:49] Set(“PJSIP/OXE-00000013”, “CHANNEL(language)=en”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “RingGroupMethod=none”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/OXE-00000013”, “__EXTTOCALL=1234”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/OXE-00000013”, “__PICKUPMARK=1234”) in new stack
– Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:12] ExecIf(“PJSIP/OXE-00000013”, “0?Macro(vm,1234,DIRECTDIAL,)”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/OXE-00000013”, “0?Gosub(ext-intercom,*801234,1())”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [[email protected]:16] ExecIf(“PJSIP/OXE-00000013”, “0?ChanSpy(PJSIP/1234,q)”) in new stack
– Executing [[email protected]:17] ExecIf(“PJSIP/OXE-00000013”, “0?MacroExit()”) in new stack
– Executing [[email protected]:18] Gosub(“PJSIP/OXE-00000013”, “sub-record-check,s,1(exten,1234,dontcare)”) in new stack
– Executing [[email protected]:1] GotoIf(“PJSIP/OXE-00000013”, “0?initialized”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “__REC_STATUS=INITIALIZED”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/OXE-00000013”, “NOW=1615986764”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/OXE-00000013”, “__DAY=17”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/OXE-00000013”, “__MONTH=03”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/OXE-00000013”, “__YEAR=2021”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/OXE-00000013”, “__TIMESTR=20210317-131244”) in new stack
– Executing [[email protected]:8] Set(“PJSIP/OXE-00000013”, “__FROMEXTEN=1000”) in new stack
– Executing [[email protected]:9] Set(“PJSIP/OXE-00000013”, “__MON_FMT=wav”) in new stack
– Executing [[email protected]:10] NoOp(“PJSIP/OXE-00000013”, “Recordings initialized”) in new stack
– Executing [[email protected]:11] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ARG3=dontcare)”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/OXE-00000013”, “REC_POLICY_MODE_SAVE=”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(REC_STATUS=NO)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/OXE-00000013”, “5?checkaction”) in new stack
– Goto (sub-record-check,s,17)
– Executing [[email protected]:17] GotoIf(“PJSIP/OXE-00000013”, “1?sub-record-check,exten,1”) in new stack
– Goto (sub-record-check,exten,1)
– Executing [[email protected]:1] NoOp(“PJSIP/OXE-00000013”, “Exten Recording Check between 1000 and 1234”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “CALLTYPE=internal”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLTYPE=)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/OXE-00000013”, “CALLEE=dontcare”) in new stack
– Executing [[email protected]:5] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CALLEE=dontcare)”) in new stack
– Executing [[email protected]:6] GotoIf(“PJSIP/OXE-00000013”, “0?callee”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/OXE-00000013”, “1?caller”) in new stack
– Goto (sub-record-check,exten,13)
– Executing [[email protected]:13] Set(“PJSIP/OXE-00000013”, “RECMODE=”) in new stack
– Executing [[email protected]:14] ExecIf(“PJSIP/OXE-00000013”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:15] ExecIf(“PJSIP/OXE-00000013”, “1?Set(RECMODE=dontcare)”) in new stack
– Executing [[email protected]:16] Gosub(“PJSIP/OXE-00000013”, “recordcheck,1(dontcare,internal,1234)”) in new stack
– Executing [[email protected]:1] NoOp(“PJSIP/OXE-00000013”, “Starting recording check against dontcare”) in new stack
– Executing [[email protected]:2] Goto(“PJSIP/OXE-00000013”, “dontcare”) in new stack
– Goto (sub-record-check,recordcheck,3)
– Executing [[email protected]:3] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:17] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:19] GotoIf(“PJSIP/OXE-00000013”, “1?macrodial”) in new stack
– Goto (macro-exten-vm,s,25)
– Executing [[email protected]:25] GosubIf(“PJSIP/OXE-00000013”, “0?clrheader,1()”) in new stack
– Executing [[email protected]:26] Macro(“PJSIP/OXE-00000013”, “dial-one,15,HhTtr,1234”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/OXE-00000013”, “DEXTEN=1234”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “__CRM_SOURCE=1000”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/OXE-00000013”, “0?Set(__EXTTOCALL=1234)”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/OXE-00000013”, “DIALSTATUS_CW=”) in new stack
– Executing [[email protected]:5] GosubIf(“PJSIP/OXE-00000013”, “0?screen,1()”) in new stack
– Executing [[email protected]:6] GosubIf(“PJSIP/OXE-00000013”, “0?cf,1()”) in new stack
– Executing [[email protected]:7] GotoIf(“PJSIP/OXE-00000013”, “1?skip1”) in new stack
– Goto (macro-dial-one,s,10)
– Executing [[email protected]:10] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [[email protected]:11] GotoIf(“PJSIP/OXE-00000013”, “0?continue”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/OXE-00000013”, “EXTHASCW=ENABLED”) in new stack
– Executing [[email protected]:13] GotoIf(“PJSIP/OXE-00000013”, “0?next1:cwinusebusy”) in new stack
– Goto (macro-dial-one,s,25)
– Executing [[email protected]:25] GotoIf(“PJSIP/OXE-00000013”, “0?next3:continue”) in new stack
– Goto (macro-dial-one,s,27)
– Executing [[email protected]:27] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [[email protected]:28] GosubIf(“PJSIP/OXE-00000013”, “1?dstring,1():dlocal,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/OXE-00000013”, “DSTRING=”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/OXE-00000013”, “DEVICES=1234”) in new stack
– Executing [[email protected]:3] ExecIf(“PJSIP/OXE-00000013”, “0?Return()”) in new stack
– Executing [[email protected]:4] ExecIf(“PJSIP/OXE-00000013”, “0?Set(DEVICES=234)”) in new stack
– Executing [[email protected]:5] Set(“PJSIP/OXE-00000013”, “LOOPCNT=1”) in new stack
– Executing [[email protected]:6] Set(“PJSIP/OXE-00000013”, “ITER=1”) in new stack
– Executing [[email protected]:7] Set(“PJSIP/OXE-00000013”, “THISDIAL=PJSIP/1234”) in new stack
– Executing [[email protected]:8] GotoIf(“PJSIP/OXE-00000013”, “0?docheck”) in new stack
– Executing [[email protected]:9] NoOp(“PJSIP/OXE-00000013”, “Debug: Found PJSIP Destination PJSIP/1234”) in new stack
– Executing [[email protected]:10] GotoIf(“PJSIP/OXE-00000013”, “0?doset”) in new stack
– Executing [[email protected]:11] NoOp(“PJSIP/OXE-00000013”, “Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS”) in new stack
– Executing [[email protected]:12] Set(“PJSIP/OXE-00000013”, “THISDIAL=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b”) in new stack
– Executing [[email protected]:13] ExecIf(“PJSIP/OXE-00000013”, “0?Set(DIALSTATUS=CHANUNAVAIL)”) in new stack
– Executing [[email protected]:14] GotoIf(“PJSIP/OXE-00000013”, “0?skipset”) in new stack
– Executing [[email protected]:15] Set(“PJSIP/OXE-00000013”, “DSTRING=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b&”) in new stack
– Executing [[email protected]:16] Set(“PJSIP/OXE-00000013”, “ITER=2”) in new stack
– Executing [[email protected]:17] GotoIf(“PJSIP/OXE-00000013”, “0?begin”) in new stack
– Executing [[email protected]:18] ExecIf(“PJSIP/OXE-00000013”, “0?Return()”) in new stack
– Executing [[email protected]:19] Set(“PJSIP/OXE-00000013”, “DSTRING=PJSIP/1234/sip:[email protected]:63511;rinstance=8343cf65c002882b”) in new stack
– Executing [[email protected]:20] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:29] GotoIf(“PJSIP/OXE-00000013”, “0?nodial”) in new stack
– Executing [[email protected]:30] GotoIf(“PJSIP/OXE-00000013”, “0?skiptrace”) in new stack
– Executing [[email protected]:31] GosubIf(“PJSIP/OXE-00000013”, “1?ctset,1():ctclear,1()”) in new stack
– Executing [[email protected]:1] Set(“PJSIP/OXE-00000013”, “DB(CALLTRACE/1234)=1000”) in new stack
– Executing [[email protected]:2] Return(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:32] Set(“PJSIP/OXE-00000013”, “D_OPTIONS=HhTtr”) in new stack
– Executing [[email protected]:33] GosubIf(“PJSIP/OXE-00000013”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:34] NoOp(“PJSIP/OXE-00000013”, "Blind Transfer: , Attended Transfer: , User: , Alert Info: ") in new stack
– Executing [[email protected]:35] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:36] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:37] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=)”) in new stack
– Executing [[email protected]:38] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:39] ExecIf(“PJSIP/OXE-00000013”, “0?Set(ALERT_INFO=Normal;volume=)”) in new stack
– Executing [[email protected]:40] GosubIf(“PJSIP/OXE-00000013”, “0?func-set-sipheader,s,1(Alert-Info,)”) in new stack
– Executing [[email protected]:41] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CHANNEL(musicclass)=)”) in new stack
– Executing [[email protected]:42] GosubIf(“PJSIP/OXE-00000013”, “0?qwait,1()”) in new stack
– Executing [[email protected]:43] Set(“PJSIP/OXE-00000013”, “__CWIGNORE=”) in new stack
– Executing [[email protected]:44] Set(“PJSIP/OXE-00000013”, “__KEEPCID=TRUE”) in new stack
– Executing [[email protected]:45] GotoIf(“PJSIP/OXE-00000013”, “0?usegoto,1”) in new stack
– Executing [[email protected]:46] GotoIf(“PJSIP/OXE-00000013”, “1?godial”) in new stack
– Goto (macro-dial-one,s,51)
– Executing [[email protected]:51] Macro(“PJSIP/OXE-00000013”, “dialout-one-predial-hook,”) in new stack
– Executing [[email protected]:1] MacroExit(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:52] ExecIf(“PJSIP/OXE-00000013”, “0?Set(D_OPTIONS=HhtrI)”) in new stack
– Executing [[email protected]:53] ExecIf(“PJSIP/OXE-00000013”, “0?Set(CWRING=r(callwaiting)):Set(CWRING=)”) in new stack
– Executing [[email protected]:54] NoOp(“PJSIP/OXE-00000013”, “”) in new stack
– Executing [[email protected]:55] ExecIf(“PJSIP/OXE-00000013”, “0?Set(D_OPTIONS=HhTtrg)”) in new stack
– Executing [[email protected]: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 [[email protected]:1] ExecIf(“PJSIP/1234-00000014”, “0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)”) in new stack
– Executing [[email protected]:2] NoOp(“PJSIP/1234-00000014”, “Applying SIP Headers to channel PJSIP/1234-00000014”) in new stack
– Executing [[email protected]:3] Set(“PJSIP/1234-00000014”, “TECH=PJSIP”) in new stack
– Executing [[email protected]:4] Set(“PJSIP/1234-00000014”, “SIPHEADERKEYS=”) in new stack
– Executing [[email protected]:5] While(“PJSIP/1234-00000014”, “0”) in new stack
– Jumping to priority 13
– Executing [[email protected]: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:
[[email protected] ~]# 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.