1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. Guest: We think the problem with locked threads from long message subjects has been resolved. Post a link here if you still see a problem.

Need help handling "anonymous" callerid

Discussion in 'Help' started by pmosher441, Feb 20, 2012.

  1. pmosher441 New Member

    Today at 3am I received an unwelcome call from "anonymous" callerid. I had thought I had PIAF set up to send calls with anonymous, blocked and unavailable callerids to voicemail, this one wasn't caught.

    Here's what I had set up -- inbound routes with "CID Priority Route" checked for any CID for each of "Anonymous," "Blocked" and "Unavailable," routed to voicemail.

    Now this particular annoying call came in on the Gtalk channel, which means it certainly isn't a legit call, since I've given my Gtalk number to nobody -- used only for outgoing calls. The call log shows "source anonymous" and "CLID "anonymous" <anonymous>".

    Any ideas as to why this wasn't intercepted by the priority inbound route? I tried to define a new such route using lower case "a" on the CID, thinking maybe that's why it didn't match, but the system wouldn't let me, said it was a duplicate of the one with the upper case letter.

    Meanwhile, I've put Privacy Manager = yes on each special inbound route and hoping for the best. I don;t know how to test whether any of this is working.

    Thanks for any help -- Pauline

    I'm using FreePBX 2.8.1.4 with PIAF Purple (where do I find PIAF version number?)
  2. pmosher441 New Member

    Anybody? I've searched these forums and found nothing to help yet.

    Thanks -- Pauline
  3. lgaetz Pundit

    The Swiss Army Knife module will give you the ability to add non-digit CID to your blacklist. I don't have the luxury of blacklisting all anonymous calls because it will catch the occasional legitimate call that fails to pass valid CID.

    To prevent the late night calls, you can create a time condition that sends all late incoming calls to an IVR that requests the caller input some digits to actually wake you up or else leave a message.
  4. pmosher441 New Member

    Thanks for the IVR/time condition suggestion. I think I'll try that. I wasn't trying to fully block anonymous calls, just catch them and send them to voicemail. The IVR might work better.

    Pauline
  5. Bart Member

    Here is some code I use:

    exten => _X.,1,Noop()
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Unknown"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="unknown"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Private"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="UNAVAILABLE"]?acr,1); Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="NAVAILABLE"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="0000000000"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Anonymous"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="anonymous"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Restricted"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($[${LEN(${CALLERID(number)})}!=10]?acr,1)


    exten => acr,1,Verbose(2,CID:[${CALLERID(number)}] [Playing ACR Message] REJECTING CALLER ${IVR-Exten} ${OWNER:0:15} ${CALLERIDNUM})
    exten => acr,n,Playback(custom/acr,noanswer)
    exten => acr,n,Hangup()

    Add this to extensions_custom.conf => [from-pstn-custom]
  6. Bart Member

    Here is some code I use:

    exten => _X.,1,Noop()
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Unknown"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="unknown"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Private"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="UNAVAILABLE"]?acr,1); Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="NAVAILABLE"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="0000000000"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Anonymous"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="anonymous"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($["${CALLERID(number)}"="Restricted"]?acr,1) ; Reject These
    exten => _X.,n,GotoIf($[${LEN(${CALLERID(number)})}!=10]?acr,1)


    exten => acr,1,Verbose(2,CID:[${CALLERID(number)}] [Playing ACR Message] REJECTING CALLER ${IVR-Exten} ${OWNER:0:15} ${CALLERIDNUM})
    exten => acr,n,Playback(custom/acr,noanswer)
    exten => acr,n,Hangup()

    Add this to extensions_custom.conf => [from-pstn-custom]

    acr voice file is telco message saying we don't accept blocked calls. If you need that file let me know I can send it

Share This Page