Line Test via Asterisk

General discussions about Asterisk.

Moderators: Moderator, Support

Line Test via Asterisk

Postby jonpaulh » Tue Jul 21, 2015 6:10 am

Hi guys,

I have searched around and as of yet have not found what I am looking for.

I have a list of say 1000 numbers that I need to confirm are working phone numbers. I understand that you can do a line test that make an abandoned call, this call checks for a response from the other end and is able to determine if the line is active or inactive.

The procedure obvsiouly exists but I am unable to see how this could be implemented with asterisk. I would imagine that such a tool or script already exists. Can someone let me know where this tool can be found or point me in the right direction of how this can be achieved. I have experience with coding so will not have trouble creating this if I know the basic info on how to achieve this. I have used AMI briefly and wonder if this is the way to go.

any help is appreciated.
jonpaulh
Newsterisk
 
Posts: 1
Joined: Tue Jul 21, 2015 6:01 am

Re: Line Test via Asterisk

Postby david55 » Tue Jul 21, 2015 2:43 pm

Use originate, or a call file. In the extension specified, playback a message explaining the purpose of a call and asking for some digits to be keyed. Use, for example, Read to read the digits and then check you have the right digits.

This is not a facility that networks normally provide and any tricks to achieve it are likely not to be considered fair use. If there are ways, you will, almost certainly, need a direct ISDN connection.

It is often attempted as the precursor to phone spam.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: Line Test via Asterisk

Postby ambiorixg12 » Sat Aug 01, 2015 12:24 am

I achieved this task using bash scripting and Asterisk originate command. The script is not very elegant but it works like a charm

I posted on my blog. http://asterisk-rd.blogspot.com/2015/05 ... lling.html
ambiorixg12
Astmaster
 
Posts: 967
Joined: Sun Mar 04, 2007 9:32 pm
Location: Dominican Republic


Return to Asterisk General

Who is online

Users browsing this forum: No registered users and 1 guest