Re: [asterisk-users] Gotoiftime help

2007-12-29 Thread Doug Lytle
troxlinux wrote:
 hello list, I am trying to arm an ivr for schedule of office and
 outside of office
   


I've just tested a simple include.  It worked fine. 

My simple test:

[sip-utilities]

include = test1|16:50-16:55|mon-sat|*|*
include = test2|16:56-16:59|mon-sat|*|*

[test1]

exten = 15,1,Dial(IAX2/asterisk.cw:[EMAIL PROTECTED]/5700,,t)

[test2]

exten = 15,1,Dial(IAX2/asterisk.cw:[EMAIL PROTECTED]/4180,,t)


Doug

-- 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Gotoiftime help

2007-12-27 Thread Doug Lytle
troxlinux wrote:
 Verbosity is at least 20
 -- Executing [EMAIL PROTECTED]:1] Answer(SIP/sipurafxo-b77038e8, ) in 
 new stack
 -- Executing [EMAIL PROTECTED]:5] BackGround(SIP/sipurafxo-b77038e8,
   

Well that didn't help any.  I'll be working on my system this weekend 
and I'll see if I can get it to work.

I'll let you know.

Doug

-- 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Gotoiftime help

2007-12-26 Thread troxlinux
hello list, I am trying to arm an ivr for schedule of office and
outside of office

[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no

[in]
include =scheduleofservice|08:00-18:00|mon-fri|*|*


include =outsideofschedule|18:00-23:59|*|*|*
include =outsideofschedule|00:00-07:59|*|*|*
include =outsideofschedule|*|sat-sun|*|*

[scheduleofservice]
exten =110,1,Goto(cyber,110,1)

[outsideofschedule]
exten =110,1,Dial(SIP/111,16,Tt)
exten =110,2,hangup()
include = cyber

[cyber]
exten = 110,1,Answer()
exten = 110,2,Background(introm)
exten = 110,3,DigitTimeout,6
exten = 110,4,Dial(SIP/111,16,Tt)
exten = 110,5,hangup
exten = 0,1,playback(recepcion)
exten = 0,2,Dial(SIP/111,13,Tt)
exten = 0,3,Dial(SIP/112,12,Tt)
exten = 0,4,voicemail(u111)
exten = 0,5,hangup
exten = 1,1,Dial(IAX2/115)
exten = 1,2,hangup
exten = 2,1,playback(consultoria)
exten = 2,2,Dial(SIP/113,12,Tt)
exten = 2,3,voicemail(u113)
exten = 2,4,hangup
exten = 3,1,playback(gerencia)
exten = 3,2,Dial(SIP/112,12,Tt)
exten = 3,3,voicemail(u112)
exten = 3,4,hangup


[cyber]
include = internacionales
include = internas
include = locales
include = parkedcalls


I am trying that when they call me after the 6 pm, single ring the
secretary operator's extension, and that when they call me AM of 8:00
o'clock - 5:59 PM plays my main ivr cyber


but it doesn't work me!!

greetingss  ricky

___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Gotoiftime help

2007-12-26 Thread Doug Lytle
troxlinux wrote:
 [in]
 include =scheduleofservice|08:00-18:00|mon-fri|*|*


 include =outsideofschedule|18:00-23:59|*|*|*
 include =outsideofschedule|00:00-07:59|*|*|*
 include =outsideofschedule|*|sat-sun|*|*

   

I've read that you can use time limits within include, but personally 
have never tried.  What shows on your console during your testing, that 
would probably help.

Doug


-- 
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary 
Safety, deserve neither Liberty nor Safety.



___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Gotoiftime help

2007-12-26 Thread troxlinux
Verbosity is at least 20
-- Executing [EMAIL PROTECTED]:1] Answer(SIP/sipurafxo-b77038e8, ) in 
new stack
-- Executing [EMAIL PROTECTED]:5] BackGround(SIP/sipurafxo-b77038e8,
intron) in new stack
-- SIP/sipurafxo-b77038e8 Playing 'introm' (language 'es')
  == Begin MixMonitor Recording SIP/sipurafxo-b77038e8
  == CDR updated on SIP/sipurafxo-b77038e8
-- Executing [EMAIL PROTECTED]:1] Macro(SIP/sipurafxo-b77038e8,
inter|SIP/116) in new stack
-- Executing [EMAIL PROTECTED]:1] Dial(SIP/sipurafxo-b77038e8,
SIP/116|55|tT) in new stack
-- Called 116


greetingsss

2007/12/26, Doug Lytle [EMAIL PROTECTED]:

 I've read that you can use time limits within include, but personally
 have never tried.  What shows on your console during your testing, that
 would probably help.

 Doug


 --
 Ben Franklin quote:

 Those who would give up Essential Liberty to purchase a little Temporary 
 Safety, deserve neither Liberty nor Safety.



 ___
 --Bandwidth and Colocation Provided by http://www.api-digital.com--

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


___
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] GotoIfTime help

2003-12-19 Thread Osvaldo Mundim
Hey All,

I need to forward an extension to an other depending on the current 
time but I could not get it done with GotoIfTime.

What I'm trying to do is ring on the extension 1 if time is between 
8:00AM and 2:00PM and on extension 2 if is between
2:01PM 11:00PM.

exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
exten = 111,2,Dial(${Person1})
exten = 111,3,Dial(Hangup)
exten = 333,1,Dial(${Person2})
exten = 333,2,Dial(Hangup)
When I ring on the extension 111, the call is not being forward to the 
extension 333..

And the extensions are all in the same context.

regards
Oz
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] GotoIfTime help

2003-12-19 Thread Lubomir Christov
about GotoIfTime you have:

 show application GotoIfTime
  -= Info about application 'GotoIfTime' =-
[Synopsis]:
  Conditional goto on current time
[Description]:
GotoIfTime(times|weekdays|mdays|months?[[context|]extension|]pri):
If the current time matches the specified time, then branch to the 
specified extension.  Each of the elements may be specified either as 
'*' (for always) or as a range.  See the include syntax.



and it have to be something like that:

[default]
exten = 111,1,GotoIfTime(08:00:00-14:00:00,*,*,*?extension_1,1,1)
exten = 111,2,GotoIfTime(14:00:01-23:00:00,*,*,*?extension_1,101,1)
exten = 111,3,Hangup
[extension_1]
exten = 1,1,Dial(${Person1})
exten = 1,2,Hangup
exten = 101,1,Dial(${Person2})
exten = 101,2,Hangup
Lubo

Osvaldo Mundim wrote:
Hey All,

I need to forward an extension to an other depending on the current time 
but I could not get it done with GotoIfTime.

What I'm trying to do is ring on the extension 1 if time is between 
8:00AM and 2:00PM and on extension 2 if is between
2:01PM 11:00PM.

exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
exten = 111,2,Dial(${Person1})
exten = 111,3,Dial(Hangup)
exten = 333,1,Dial(${Person2})
exten = 333,2,Dial(Hangup)
When I ring on the extension 111, the call is not being forward to the 
extension 333..

And the extensions are all in the same context.

regards
Oz
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] GotoIfTime help

2003-12-19 Thread Philipp von Klitzing
Hi!

gotoif usually takes a priority as label, not an extension! See below.
Never tried if you can also use the notation context,extension,priority
instead of just priority, but it might work. Just try it.

 I need to forward an extension to an other depending on the current 
 time but I could not get it done with GotoIfTime.
 
 What I'm trying to do is ring on the extension 1 if time is between 
 8:00AM and 2:00PM and on extension 2 if is between
 2:01PM 11:00PM.
 
 exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
 exten = 111,2,Dial(${Person1})
 exten = 111,3,Dial(Hangup)
 
 exten = 333,1,Dial(${Person2})
 exten = 333,2,Dial(Hangup)



exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?4:2)
exten = 111,2,Dial(${Person1})
exten = 111,3,Dial(Hangup)
exten = 111,4,Goto(default,333,1)

exten = 333,1,Dial(${Person2})
exten = 333,2,Dial(Hangup)

Note: If you use goto() or gotoif() with just one label then you'll see a 
warning in /var/log/asterisk/messages about the 2nd label missing. That's 
why I prefer to always specify both labels.

Cheers, Philipp


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] GotoIfTime help

2003-12-19 Thread Osvaldo Mundim
All right...

Its working now.

thank you very much!
regards
Oz
On Dec 19, 2003, at 3:02 PM, Philipp von Klitzing wrote:

Hi!

gotoif usually takes a priority as label, not an extension! See below.
Never tried if you can also use the notation 
context,extension,priority
instead of just priority, but it might work. Just try it.

I need to forward an extension to an other depending on the current
time but I could not get it done with GotoIfTime.
What I'm trying to do is ring on the extension 1 if time is between
8:00AM and 2:00PM and on extension 2 if is between
2:01PM 11:00PM.
exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?333)
exten = 111,2,Dial(${Person1})
exten = 111,3,Dial(Hangup)
exten = 333,1,Dial(${Person2})
exten = 333,2,Dial(Hangup)


exten = 111,1,GotoIfTime(8:00-14:00|*|*|1-12?4:2)
exten = 111,2,Dial(${Person1})
exten = 111,3,Dial(Hangup)
exten = 111,4,Goto(default,333,1)
exten = 333,1,Dial(${Person2})
exten = 333,2,Dial(Hangup)
Note: If you use goto() or gotoif() with just one label then you'll 
see a
warning in /var/log/asterisk/messages about the 2nd label missing. 
That's
why I prefer to always specify both labels.

Cheers, Philipp

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users