Simon Brown
2004-Oct-05 21:41 UTC
[Asterisk-Users] loggedoff extension - why does * say "isonthephone"
I think you will find the functionality you are looking for is in * already. Here is an excerpt from the sample extensions.conf file that is included with the source: exten => s,1,Dial(${ARG2},20) ; Ring the interface, 20 seconds maximum exten => s,2,Goto(s-${DIALSTATUS},1) ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER) exten => s-NOANSWER,1,Voicemail(u${ARG1}) ; If unavailable, send to voicemail w/ unavail announce exten => s-NOANSWER,2,Goto(default,s,1) ; If they press #, return to start exten => s-BUSY,1,Voicemail(b${ARG1}) ; If busy, send to voicemail w/ busy announce exten => s-BUSY,2,Goto(default,s,1) ; If they press #, return to start exten => s-.,1,Goto(s-NOANSWER,1) ; Treat anything else as no answer exten => a,1,VoicemailMain(${ARG1}) ; If they press *, send the user into VoicemailMain Regards, Simon Brown -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Tim Jackson Sent: Wednesday, 6 October 2004 13:41 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] loggedoff extension - why does * say "isonthephone" Same here, I just changed the b to u. Unavailable message is more generic, but it beats it saying busy when its not. -Tim -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Henry Devito Sent: Tuesday, October 05, 2004 8:31 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] loggedoff extension - why does * say "is onthephone" I've noticed this too, I think it returns a "busy" state. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Robert Rozman Sent: Tuesday, October 05, 2004 8:24 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] loggedoff extension - why does * say "is on thephone" Hi, I have following one-line macro extension: ------------------------ [macro-oneline] ; ; Standard extension macro (with call forwarding): ; ${ARG1} - Device(s) to ring ; #exten => s,1,AGI(misterhouse.agi,"CallerID") exten => s,1,NoOp exten => s,2,DBget(temp=CFIM/${MACRO_EXTEN}) ; Get CFIM key, if not existing, goto 103 exten => s,3,Dial(Local/${temp}@default/n) ; Unconditional forward exten => s,4,Dial(${ARG1},20,tr) ; 20sec timeout exten => s,5,NoOp exten => s,6,DBget(temp=CFBS/${MACRO_EXTEN}) ; Get CFBS key, if not existing, goto 106 exten => s,7,Dial(Local/${temp}@default/n) ; Forward on busy or unavailable ; No CFIM key exten => s,103,Goto(s,4) ; No CFBS key - voicemail ? exten => s,105,Voicemail(b${MACRO_EXTEN}) exten => s,106,Hangup exten => s,107,Voicemail(u${MACRO_EXTEN}) exten => s,108,Hangup ------------------------ Is it normal that system says "is on the phone" even if extension is not logged in at all ? Regards, Robert. _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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 _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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 _______________________________________________ Asterisk-Users mailing list Asterisk-Users@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