Asterisk Script to dial numbers in text file & record outcome of connect status
$100-500 USD
Closed
Posted over 12 years ago
$100-500 USD
Paid on delivery
An Asterisk script or custom code to process a text file (using any commonly used scripting language). A text file ([login to view URL]) which has phone numbers in it, one per line, is supplied as input to a script. The script is to initiate calls to numbers in the list. The numbers are pstn landlines in a customer database. The script reads the numbers sequentially, & initiates calls to the numbers from an available free line. The return codes (SIP stack) from the voip provider are to be closely monitored, and action taken depending on the returned codes. The purpose of the script is for database cleaning, to eliminate 'dead' numbers, by pinging to see whether they exist or not.
## Deliverables
Existing Setup - asterisk, with voip lines (multiple lines, potentially up to 50 in the distant future, but initially less than 10), dialling into the Australian pstn network, via an Australian voip provider. We may add GSM modems to the Asterisk box, so the calls can be made to landlines via wireless network (especially if this can increase the speed or reliability of the script) Requirement: An Asterisk script to process a text file (using any commonly used scripting language). A text file ([login to view URL]) which has phone numbers in it, one per line, eg: 0898317878 0776543232 0255554455 is supplied as input to a script. The script is to initiate calls to numbers in the list. The numbers are pstn landlines in a customer database. The script reads the numbers sequentially, & initiates calls to the numbers from an available free line. The return codes (SIP stack) from the voip provider are to be closely monitored, and action taken depending on the returned codes. The purpose of the call is to simply test whether a number exists, and record the outcome in an output file ([login to view URL]) in the format: 0898317878,0 0776543232,1 0255554455,2 where 0,1,2 etc are return codes indicating the status of a call - eg connect successful, number doesnt exist, error, etc - standard sip codes. The purpose of the script is for database cleaning, to eliminate 'dead' numbers, by pinging to see whether they exist or not. While many different return codes are possible at many points in the process of call initiation, they need to be categorised in 2 broad categories of interest to us - 1. number exists & can be dialled, 2. number doesnt exist or cannot be dialled The script is to immediately terminate a call at the earliest possible point in time, after determining the status of the called number. - any status code indicating non existent number, or error of any sort must terminate immediately, Ideally, we dont want the number to actually ring & annoy a person, but if there has to be a brief ring, that is ok. There is no intention to have the dialled call answered at that time. While speed is beneficial, the primary requirement is to reliably tell the difference between a live or dead number. The only information required is whether the number exists as a connectable number that can be called, versus a 'dead' or non-existent number. The coder must provide: -the script, -instructions to run the script (if particular versions of Asterisk are required, we are flexible) -a list of all of the call status codes of interest that the script listens to -if possible, advice on Australian voip providers to use if any would result in more reliable results
If an Asterisk script cannot do this, then custom code to intercept/monitor the SIP dialogue
Project ID: 3578383
About the project
6 proposals
Remote project
Active 12 yrs ago
Looking to make some money?
Benefits of bidding on Freelancer
Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $236 USD for this job