Hello Community, I Want to detect if a cell number is ON or OFF... for that matter i can generate call to it using PSTN lines (configured with asterisk). The problem is that i only want to see if the cell number can receive a ring or not. If ring is recieved at called number end then mark it as ON in database... Dial application or Originate action might not be that helpful. Do you have any idea regarding this.. -- Best Regards Shakeel Abbas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100419/ac64f099/attachment.htm
Dial() will return Dialstatus , if the number dialed is busy or off now. use this application you can detect a number is busy or not in several seconds. i use this method in my dialplan. 2010/4/19 ABBAS SHAKEEL <shakeel.abbas.qau at gmail.com>:> Hello Community, > > I Want to detect if a cell number is ON or OFF... for that matter i can > generate call to it using PSTN lines (configured with asterisk). > > The problem is that? i only want to see if the cell number can receive a > ring or not. If ring is recieved at called number end then mark it as ON in > database... > > Dial application or Originate action might not be that helpful. Do you have > any idea regarding this.. > > -- > Best Regards > Shakeel Abbas > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > ? ? ? ? ? ? ? http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > ? http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best regards, Sucan
This is probably a good idea, BUT it is likely that the dialed phone will never ring (Perhaps that is the desired effect); In my experience it takes Zap/DAHDI about 2-7 seconds to generate the first ring of a call. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ioan Indreias Sent: Tuesday, April 27, 2010 2:36 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Detect if a Number is up or not another idea you could test is to use a very short Timeout in your Dial command. like Dial(ZAP/012345678,1) - will dial and exit after 1 sec with DIALSTATUS set accordingly HTH, Ioan -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Thanks Loan Indreias ... Nice Idea Thanks Danny Nicholas. Cheers On Tue, Apr 27, 2010 at 7:17 PM, Danny Nicholas <danny at debsinc.com> wrote:> This is probably a good idea, BUT it is likely that the dialed phone will > never ring (Perhaps that is the desired effect); In my experience it takes > Zap/DAHDI about 2-7 seconds to generate the first ring of a call. > > -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Ioan > Indreias > Sent: Tuesday, April 27, 2010 2:36 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] Detect if a Number is up or not > > another idea you could test is to use a very short Timeout in your Dial > command. > > like Dial(ZAP/012345678,1) - will dial and exit after 1 sec with > DIALSTATUS set accordingly > > HTH, > Ioan > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Best Regards Shakeel Abbas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100429/d059eefe/attachment.htm