[asterisk-users] How to detect a PSTN telephone is busy or not?

Zhang Shukun bitzsk at gmail.com
Thu Mar 18 22:25:53 CDT 2010


Thanks!  but if  i use Queue to call out not Dial.

how should i know the status like busy or free?

for now . i know asterisk have QUEUESTATUS variable,

QUEUESTATUS   The status of the call as a text string, one of TIMEOUT
| FULL | JOINEMPTY | LEAVEEMPTY | JOINUNAVAIL | LEAVEUNAVAIL

but the variable have no busy or free status?  how to  know the
numbers in the queue is busy or not at present?

Need your help. thanks!

2010/3/18 ABBAS SHAKEEL <shakeel.abbas.qau at gmail.com>:
> Hello,
> Please have a look to DIALSTATUS variable.
> here http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS
> I hope it helps
>
>
> On Thu, Mar 18, 2010 at 1:31 PM, Zhang Shukun <bitzsk at gmail.com> wrote:
>>
>> hi,all
>>
>> one problem confuse me these days. i want to sequence dial three PSTN
>> number(a,b,c)
>>
>> first, if i dial number a, if a is busy , i will dial number b. if b
>> is busy, i will dial number c.
>>
>> Dial(SIP/a at IP,30)
>> Dial(SIP/b at IP,30)
>> Dial(SIP/c at IP,30)
>>
>> i want to know before i dial number a, how to know if a is busy now?
>>
>> if a is busy now. i will not dial a, instead, i will dial number b
>> directly.
>>
>> to summary is : in asterisk, how to detect a pstn telephone number is
>> busy or not before dialing it?
>>
>> Thanks!
>>
>> --
>> Best regards,
>> Sucan
>>
>> --
>> _____________________________________________________________________
>> -- 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
>
>
> --
> _____________________________________________________________________
> -- 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



More information about the asterisk-users mailing list