blacklisted numbers

Discussion in 'General' started by Zach, Dec 2, 2008.

  1. Zach

    Joined:
    Sep 11, 2008
    Messages:
    31
    Likes Received:
    0
    Hi,

    Where are the blacklisted numbers saved?
    I have to know because my blacklist module doesn't care about these numbers

    My blacklist doesn't work 100%.
    I have just one question. Where is located the blacklisted numbers.
    Are they in the extensions_additional.conf or extensions_custom.conf or another file ?

    When I put a number in the blacklist it works but I would like to know where these numbers are saved.

    Thanks in advance
     
  2. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    Not sure really I just searched for a number over /etc/asterisk without any success. Anyhow if you would like to know where text strings are saved over a directory in GNU/Linux then you can try something like this

    grep -r "mystring" /etc/asterisk

    Then you would do a search of all the files that contain that string.

    Regards,

    Rafael
     
  3. itjumper

    Joined:
    Jul 22, 2008
    Messages:
    81
    Likes Received:
    0
    It is in a sqlite database
     
  4. itjumper

    Joined:
    Jul 22, 2008
    Messages:
    81
    Likes Received:
    0
    It should be in astdb

    access it via CLI

    type 'help database' to see the commands
     
  5. itjumper

    Joined:
    Jul 22, 2008
    Messages:
    81
    Likes Received:
    0
    it's being set by set(DB/blacklist function in extension_addition.conf
     
  6. Zach

    Joined:
    Sep 11, 2008
    Messages:
    31
    Likes Received:
    0
    yes but it doesn't appear in this file. my blacklist function doesn't modify "extension_addition.conf" file.
    what should I do ?

    Can you see your blacklisted numbers in this file ?

    If yes, could you show me how it appears in this file please.

    Thanks in advance.
     
  7. Zach

    Joined:
    Sep 11, 2008
    Messages:
    31
    Likes Received:
    0
    wich one ?
     
  8. Zach

    Joined:
    Sep 11, 2008
    Messages:
    31
    Likes Received:
    0
    In fact the system does not check if the number is in the blacklist or not.

    This is what I have when I receive a call.


    Executing [4001@from-pstn:1] Macro("XOIP/g0-0x277278", "exten-vm|novm|4001") in new stack
    -- Executing [s@macro-exten-vm:1] Macro("XOIP/g0-0x277278", "user-callerid") in new stack
    -- Executing [s@macro-user-callerid:1] NoOp("XOIP/g0-0x277278", "user-callerid: 55512345") in new stack
    -- Executing [s@macro-user-callerid:2] Set("XOIP/g0-0x277278", "AMPUSER=55512345") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("XOIP/g0-0x277278", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("XOIP/g0-0x277278", "1|Set|REALCALLERIDNUM=55512345") in new stack
    -- Executing [s@macro-user-callerid:5] NoOp("XOIP/g0-0x277278", "REALCALLERIDNUM is 55512345") in new stack
    -- Executing [s@macro-user-callerid:6] Set("XOIP/g0-0x277278", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:7] Set("XOIP/g0-0x277278", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("XOIP/g0-0x277278", "1?report") in new stack
    -- Goto (macro-user-callerid,s,13)
    -- Executing [s@macro-user-callerid:13] NoOp("XOIP/g0-0x277278", "TTL: ARG1: novm") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("XOIP/g0-0x277278", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:15] Set("XOIP/g0-0x277278", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:16] GotoIf("XOIP/g0-0x277278", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,23)
    -- Executing [s@macro-user-callerid:23] NoOp("XOIP/g0-0x277278", "Using CallerID "" <55512345>") in new stack
    -- Executing [s@macro-exten-vm:2] Set("XOIP/g0-0x277278", "FROMCONTEXT=exten-vm") in new stack
    -- Executing [s@macro-exten-vm:3] Set("XOIP/g0-0x277278", "VMBOX=novm") in new stack
    -- Executing [s@macro-exten-vm:4] Set("XOIP/g0-0x277278", "EXTTOCALL=4001") in new stack
    -- Executing [s@macro-exten-vm:5] Set("XOIP/g0-0x277278", "CFUEXT=") in new stack
    -- Executing [s@macro-exten-vm:6] Set("XOIP/g0-0x277278", "CFBEXT=") in new stack
    -- Executing [s@macro-exten-vm:7] Set("XOIP/g0-0x277278", "RT=""") in new stack
    -- Executing [s@macro-exten-vm:8] Macro("XOIP/g0-0x277278", "record-enable|4001|IN") in new stack
    -- Executing [s@macro-record-enable:1] GotoIf("XOIP/g0-0x277278", "0?2:4") in new stack
    -- Goto (macro-record-enable,s,4)
    -- Executing [s@macro-record-enable:4] AGI("XOIP/g0-0x277278", "recordingcheck|20081203-172226|1228321345.162") in new stack
    -- Launched AGI Script /opt/var/lib/asterisk/agi-bin/recordingcheck
    recordingcheck|20081203-172226|1228321345.162: Inbound recording not enabled
    -- AGI Script recordingcheck completed, returning 0
    -- Executing [s@macro-record-enable:5] NoOp("XOIP/g0-0x277278", "No recording needed") in new stack
    -- Executing [s@macro-exten-vm:9] Macro("XOIP/g0-0x277278", "dial||tr|4001") in new stack
    -- Executing [s@macro-dial:1] GotoIf("XOIP/g0-0x277278", "1?dial") in new stack
    -- Goto (macro-dial,s,3)
    -- Executing [s@macro-dial:3] AGI("XOIP/g0-0x277278", "dialparties.agi") in new stack
    -- Launched AGI Script /opt/var/lib/asterisk/agi-bin/dialparties.agi
    dialparties.agi: Starting New Dialparties.agi
    == Parsing '/opt/etc/asterisk/manager.conf': Found
    == Parsing '/opt/etc/asterisk/manager_additional.conf': Found
    == Parsing '/opt/etc/asterisk/manager_custom.conf': Found
    == Manager 'admin' logged on from 127.0.0.1
    dialparties.agi: Caller ID name is 'unknown' number is '55512345'
    dialparties.agi: USE_CONFIRMATION: 'FALSE'
    dialparties.agi: RINGGROUP_INDEX: ''
    dialparties.agi: Methodology of ring is 'none'
    -- dialparties.agi: Added extension 4001 to extension map
    -- dialparties.agi: Extension 4001 cf is disabled
    -- dialparties.agi: Extension 4001 do not disturb is disabled
    > dialparties.agi: extnum 4001 has: cw: 1; hascfb: 0 [] hascfu: 0 []
    > dialparties.agi: ExtensionState: 0
    -- dialparties.agi: dbset CALLTRACE/4001 to 55512345
    -- dialparties.agi: Filtered ARG3: 4001
    == Manager 'admin' logged off from 127.0.0.1
    -- AGI Script dialparties.agi completed, returning 0
    -- Executing [s@macro-dial:7] Dial("XOIP/g0-0x277278", "SIP/4001||tr") in new stack
    -- Called 4001
    -- SIP/4001-001d6f80 is ringing
    -- SIP/4001-001d6f80 answered XOIP/g0-0x277278
     

Share This Page