Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


rassnor

27 posts

Geek


#61182 11-May-2010 14:26
Send private message

I have an asterisk server all setup and running already, what I'm looking to do is call a bunch of numbers and record which calls were to disconnected lines. I've got ${HANGUPCAUSE} writing into the CDR, but it is recording as 0/'NO ANSWER'. Obviously, I need to be able to tell the difference between an unanswered call and a disconnected line.
At the moment, my very simple callplan is ::

exten => _0N.,1,Dial(DAHDI/g0/${EXTEN},20,Tr)
exten => _0N.,n,Set(CDR(userfield)=${HANGUPCAUSE}.${DIALSTATUS})

The plan is to extend this later on to record the disconnects against a customer database using an AGI script.

Have I missed some configuration option? Any suggestions/alternatives would be much appreciated.

I'm using a TDM410P with 4 FXO modules to bridge the SIP phones we have with analog lines provided by Telstraclear.

Cheers.

Create new topic
rassnor

27 posts

Geek


  #328935 11-May-2010 14:46
Send private message

Ok, after some meddling I'm now getting 'ANSWERED', I had the timeout way too short. So back to the original problem, can anyone suggest a way of getting asterisk to detect and log disconnected calls?



hads
392 posts

Ultimate Geek

Trusted

  #329012 11-May-2010 17:11
Send private message

There's no out of band signalling with analog lines so you can't get the detailed information that you're after without resorting to hacks such as tone detection.




sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #329022 11-May-2010 17:40
Send private message

I don't believe it can be done either. DAHDI does't know the reason for the incomplete call, just whether it connects or doesn't connect.

You would need to find a VoIP provider who could provide you with the SIP signalling for this or use ISDN which may give you this signalling, I've never actually tried to see what status you get from a disconnected number.

Obviously I'd have to question what motives you have for such a dialler - there are legitimate ways to get lists of numbers.




hads
392 posts

Ultimate Geek

Trusted

  #329033 11-May-2010 17:55
Send private message

ISDN would work fine, and a SIP provider may pass you those details.

I've just tested a non-existent number through 2Talk and got a CALL_REJECTED which is different from NO_ANSWER (FreeSWICH).

I too though am slightly dubious of the motives. 




rassnor

27 posts

Geek


  #329047 11-May-2010 18:19
Send private message

We already have a large database of customers, I've been asked to flatten this into a list of active customers. We've tried manually calling all these people, but its proving costly due to volume of disconnects.
This has been suggested as a more cost-effective method of narrowing down the list, I don't agree with it but I don't make the decisions. I shall look into an ISDN line next then.

Thanks for the assistance.

hads
392 posts

Ultimate Geek

Trusted

  #329049 11-May-2010 18:23
Send private message

Fair enough.

A SIP trunk is going to be much more cost effective to setup and likely to run.




rassnor

27 posts

Geek


  #329308 12-May-2010 12:27
Send private message

On the subject of SIP trunks, I'm assuming this kind of calling would be in breech of Terms and Services?
I did take a quick look at 2talk, and the unlimited business plan would be suitable, but I get the feeling tying up the lines constantly would be beyond 'fair use'.

Cheers.

 
 
 

Trade NZ and US shares and funds with Sharesies (affiliate link).
sbiddle
30853 posts

Uber Geek

Retired Mod
Trusted
Biddle Corp
Lifetime subscriber

  #329328 12-May-2010 12:58
Send private message

And it's also not "unlimited".

rassnor

27 posts

Geek


  #329330 12-May-2010 13:02
Send private message

Yeah, I had gathered that from their terms and conditions.

Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.