Robert Rozman
2005-Apr-11 08:22 UTC
[Asterisk-Users] Why 's' doesn't take over unknown extension in context ?
Hi, I always thought that if there is no called extension in context, then 's' extension is started (I use latest bristuffed Asterisk) .... I have context 'from-isdn' : [from-isdn] exten => s,1,Wait,2 exten => s,2,NoOp(ISDN call from outside ${CALLERID}: Name: ${CALLERIDNAME}, Number: ${CALLERIDNUM}) exten => s,3,SetCIDName(From ISDN: ${CALLERIDNUM}) exten => s,4,SetCIDNum(0${CALLERIDNUM}) exten => s,5,AGI,callerid_lookup.agi exten => s,6,NoOp(After callerid_lookup.agi: ${CALLERID}: Name: ${CALLERIDNAME}, Number: ${CALLERIDNUM}) exten => s,7,DBget(temp=DYNAMIC/${CALLERIDNUM}) exten => s,8,DBdel(DYNAMIC/${CALLERIDNUM}) exten => s,9,Background(custom/aa_1) exten => s,10,Wait,5 exten => s,11,Dial(Local/${temp}@ext-local/n) exten => s,108,Goto(from-pstn,s,1) ; exten => 999999,1,Goto(s,1) ; Now if there is no line 999999 on incoming call I get : -- Extension '999999' in context 'isdn-incoming' from '041461620' does not exist. Rejecting call on channel 0/1, span 1 Why doesn't extension 's' get started if extension 999999 is unknown in context from-isdn? Thanks in advance, regards, Rob.
Steve Mann
2005-Apr-11 08:34 UTC
[Asterisk-Users] Why 's' doesn't take over unknown extension incontext ?
I think it is "i" you want, "s" is the start for a context, meaning anything coming in through that context will start there, "i" is invalid, and fires if an invalid extension is keyed in that context. -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Robert Rozman Sent: Monday, April 11, 2005 10:23 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Why 's' doesn't take over unknown extension incontext ? Hi, I always thought that if there is no called extension in context, then 's' extension is started (I use latest bristuffed Asterisk) .... I have context 'from-isdn' : [from-isdn] exten => s,1,Wait,2 exten => s,2,NoOp(ISDN call from outside ${CALLERID}: Name: ${CALLERIDNAME}, Number: ${CALLERIDNUM}) exten => s,3,SetCIDName(From ISDN: ${CALLERIDNUM}) exten => s,4,SetCIDNum(0${CALLERIDNUM}) exten => s,5,AGI,callerid_lookup.agi exten => s,6,NoOp(After callerid_lookup.agi: ${CALLERID}: Name: ${CALLERIDNAME}, Number: ${CALLERIDNUM}) exten => s,7,DBget(temp=DYNAMIC/${CALLERIDNUM}) exten => s,8,DBdel(DYNAMIC/${CALLERIDNUM}) exten => s,9,Background(custom/aa_1) exten => s,10,Wait,5 exten => s,11,Dial(Local/${temp}@ext-local/n) exten => s,108,Goto(from-pstn,s,1) ; exten => 999999,1,Goto(s,1) ; Now if there is no line 999999 on incoming call I get : -- Extension '999999' in context 'isdn-incoming' from '041461620' does not exist. Rejecting call on channel 0/1, span 1 Why doesn't extension 's' get started if extension 999999 is unknown in context from-isdn? Thanks in advance, regards, Rob. _______________________________________________ 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