Re: [Asterisk-Users] goto() results in invalid extension

2004-11-01 Thread Eric Wieling
Michael Rowley wrote:
Hello,
Trying to rewrite my dialplan, and it is a little complex.  But my 
extensions.conf redirection works, but the referred to contexts result 
in invalid extension  Please help...  I have the extension set to 's' 
currently, but originally it was 6044.  The change didn't make any 
difference.  Still receive the invalid extension message.

Michael

[main]
; 6044 main office line.
exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
exten = 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
exten = 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
exten = 6044,4,Goto(afterhours,1)
Only when you forget to put the correct parameters on Goto.  The least 
line above says go to the extension named afterhours with priority 1
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] goto() results in invalid extension

2004-11-01 Thread Michael Rowley
Yeah, yeah, rtfm, I know... :)
This is after several editions.  The original was trying to refer to 
the incoming DID of 6044, so was programatically correct at 
Goto(afterhours,6044,1)  Plus, the GotoifTime's should work.  Actually, 
the afterhours should work, if I have an extension of 'afterhours' in 
the current context.  I didn't notice this until you pointed it out...  
but it was correct in previous revisions... and I was tyring to test it 
during the week, when the previous Goto's should have taken 
precidence... and they _all_ failed.

Any reason why the rest should give me 'invalid extension'?
Michael
On Nov 1, 2004, at 9:34 AM, Eric Wieling wrote:
Michael Rowley wrote:
Hello,
Trying to rewrite my dialplan, and it is a little complex.  But my 
extensions.conf redirection works, but the referred to contexts 
result in invalid extension  Please help...  I have the extension 
set to 's' currently, but originally it was 6044.  The change didn't 
make any difference.  Still receive the invalid extension message.
Michael

[main]
; 6044 main office line.
exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
exten = 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
exten = 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
exten = 6044,4,Goto(afterhours,1)
Only when you forget to put the correct parameters on Goto.  The least 
line above says go to the extension named afterhours with priority 
1
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] goto() results in invalid extension

2004-11-01 Thread Matt Riddell
Michael Rowley wrote:
Yeah, yeah, rtfm, I know... :)
This is after several editions.  The original was trying to refer to the 
incoming DID of 6044, so was programatically correct at 
Goto(afterhours,6044,1)  Plus, the GotoifTime's should work.  Actually, 
the afterhours should work, if I have an extension of 'afterhours' in 
the current context.  I didn't notice this until you pointed it out...  
but it was correct in previous revisions... and I was tyring to test it 
during the week, when the previous Goto's should have taken 
precidence... and they _all_ failed.

Any reason why the rest should give me 'invalid extension'?
 exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
 exten = 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
 exten = 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
 exten = 6044,4,Goto(afterhours,1)
It shouldn't make a difference, but you are altering terminators half 
way through the line...i.e. try

exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours|s|1)
--
Cheers,
Matt Riddell
___
http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] goto() results in invalid extension

2004-10-31 Thread Andreas Sikkema
[EMAIL PROTECTED] wrote:

 [main]
 
 ; 6044 main office line.
 
 exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
 exten = 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
 exten = 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
 exten = 6044,4,Goto(afterhours,1)
 

Your numbering sequence is incorrect, spot the difference:

 exten = 6044,1,GotoifTime(08:30-11:59|mon-fri|*|*?officehours,s,1)
 exten = 6044,2,GotoifTime(13:00-16:29|mon-fri|*|*?officehours,s,1)
 exten = 6044,3,GotoifTime(12:00-12:59|mon-fri|*|*?lunch,s,1)
 exten = 6044,4,Goto(afterhours,1)

snip

 
 [afterhours]
 
 exten =s,3,Answer
 exten =s,4,NoOp,${CALLERID}
 exten =s,5,ResponseTimeout(5)
 exten =s,6,Background(thankyouwmfm)

There's nowhere to go with (afterhours,1). I'd try to Goto(afterhours,s,3)

-- 
Andreas SikkemaRits tele.com
Scheepmakersstraat 11  3011 VH Rotterdam
t: +31 (0)10 2245544f: +31 (0)10 2245540
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users