Asterisk and the Australian grey pages



NOTE: This info is VERY outdated and doesn't work anymore. You should look at the new script for services provided by Reverse Australia. So since I found the Australian gray pages on a lovely web site, I wanted to integrate this info into asterisk. 30 minutes of perl hacking later, and it works. enjoy :) The following script & example will enable a reverse lookup of incoming caller ID and replace the name section with the lookup. It also allows you to maintain a comma separated file in number,name format. If this finds a match, it will add the name in the file to the caller ID string. If nothing is found in the file, it will consult the grey pages. Updated 24/8/07: changed script URL to reflect new grey pages site. Download this script and put it into /var/lib/asterisk/agi-bin. Create a file /var/lib/asterisk/agi-bin/numbers.txt and populate it with numbers that you already know in the format of: number,name eg: 0390001234,My Pizza Shop The script will try to match numbers from this file first. If no match is found, it will consult the Australian grey pages for a match. If nothing is found here, it will not change the caller ID strings. In your extensions.conf, call cid-lookup like so:
    exten => 100,1,NoOp(Incoming call!) exten => 100,n,agi,cid-lookup.agi exten => 100,n,NoOp(Caller ID: ${CALLERID(all)}) exten => 100,n,Dial(SIP/my-sip-phone,30) exten => 100,n,HangUp

Comments


Comments powered by Disqus