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
+1 received by user: 12

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
+1 received by user: 9996

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
+1 received by user: 12

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
+1 received by user: 12

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.




 
 
 
 

Shop now on Samsung phones, tablets, TVs and more (affiliate link).
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.

sbiddle
30853 posts

Uber Geek
+1 received by user: 9996

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








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.