[Asterisk-Users] Able to tell if phone is registered?

Kevin P. Fleming kpfleming at starnetworks.us
Wed Feb 23 10:38:18 MST 2005


Tim Pushor wrote:

> I have a new asterisk setup running at home and am very happy with it. 
> One thing that I am trying to do is to take various actions in the 
> dialplan *if* a particular phone is registered/authenticated/connected. 
> For example, if someone dials *me* and is shows that I am connected via 
> my softphone, to try it instead of my deskphone (and possibly notifiy 
> the user in advance that it is taking that action).

Just go ahead and try to send the call there... it will fail immediately 
if it is not registered, with a DIALSTATUS of CHANUNAVAIL.

If you are using CVS HEAD, you can use "regexten" to accomplish 
something similar, but I wouldn't recommend it as it's about to change :-)



More information about the asterisk-users mailing list