[asterisk-users] How to test if a telephone is busy now?

Zhang Shukun bitzsk at gmail.com
Sun Jan 10 20:37:27 CST 2010


hi, all

i want to test if a telephone is busy now in agi php script?

Could you tell me how to do that judgement?


example:

if( ivan is not busy)
{
     $agi -> exec_dial("SIP","ivan");
}
else if (test is not busy)
{
    $agi -> exec_dial("SIP","test");
}

Thanks very much!

-- 
Best regards,
Sucan



More information about the asterisk-users mailing list