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

Richard J. Sears rsears at americanIS.net
Wed Feb 23 11:56:29 MST 2005


One method that I use is to dial all of my extensions at once (Office,
home, laptop) and then dial my cellphone. Failing any of those to answer,
it drops back into my voicemail.

exten => ${RJSWORK},1,Macro(stdexten_cell,SIP/${RJSWORK}&SIP/${RJSDESK}&SIP/${RJSLAPTOP}&SIP/${RJSHOME},${RJSCELL})

[macro-stdexten_cell]
exten => s,1,Dial(${ARG1},10,rtm)
exten => s,2,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Dial(IAX2/blahblah at NuFone/${ARG2},10,rtm)
exten => s-NOANSWER,2,Voicemail(u${MACRO_EXTEN})
;exten => s-NOANSWER,3,Goto(default,s,1)
exten => s-BUSY,1,Voicemail(b${MACRO_EXTEN})
;exten => s-BUSY,2,Goto(default,s,1)
exten => s-.,1,Goto(s-NOANSWER,1)
exten => a,1,VoicemailMain(${MACRO_EXTEN})


On Wed, 23 Feb 2005 12:07:03 -0600
"Nathan C. Smith" <smith at ipmvs.com> wrote:

> Hi All,
> 
> 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).
> 
> There are a couple ways, but within the dialplan you can use chanavail().
> On the console you can type "show application appname" to get more
> information about applications such as chanavail and dial.  
> 
> On the failure of a dial command the priority jumps 101, so for instance if
> you softphone was dialed at priority 3 and it failed the execution would
> jump to priority 104 where you could attempt to dial your deskphone.
> 
> Finally, you can use the asterisk database.  By dialing an extension to set
> a database value and checking for a value in the dialplan you can use logic
> to decide whether to dial an extension or not.
> 
> Most of this is documented reasonably well on www.voip-info.org once you
> know what you are looking for.
> 
> -Nate
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users


******************************************
Richard J. Sears
Vice President         
American Internet Services                          
----------------------------------------------------
rsears at adnc.com
http://www.adnc.com
----------------------------------------------------
858.576.4272 - Phone
858.427.2401 - Fax
INOC-DBA - 6130
----------------------------------------------------

I fly because it releases my mind 
from the tyranny of petty things . . 


"Work like you don't need the money, love like you've
never been hurt and dance like you do when nobody's
watching."




More information about the asterisk-users mailing list