Re: [asterisk-users] GotoIfTime Function

2008-06-27 Thread Benoit Plessis

I would say you have two choices for that:
opt 1, let the carrier provider do the ring
  and then answer, using Wait() or WaitForRing()
opt 2, do it yourself using PlayTones() or Progess()


broadband Voice a écrit :
 Finally did it but only one more problem, I want it to ring once 
 before going to the context or playing the background message.
  

 [day_menu]
 exten = s,1,Answer()
 exten = s,2,Background(welcome-message)
 exten = s,3,Dial(SIP/5960,200,rt)  ; week day goes to 
 Philadelphia Office

 [weekend__menu]
 exten = s,1,Answer()
 exten = s,2,Background(welcome-message)
 exten = s,3,Dial(SIP/5961,200,rt)  ; weekend goes to Delaware Office
  
 [night_menu]
 exten = s,1,Answer()
 exten = s,2,Background(officeclosed)
 exten = s,3,Hangup  ;

 ;incoming
 exten = 1866x,1,GotoIfTime(8:00-18:00|mon-sun|*|*?day_menu,s,1)
 exten = 1866x,n,Goto(night_menu,s,1)





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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] GotoIfTime Function

2008-06-26 Thread broadband Voice
Finally did it but only one more problem, I want it to ring once before
going to the context or playing the background message.


[day_menu]
exten = s,1,Answer()
exten = s,2,Background(welcome-message)
exten = s,3,Dial(SIP/5960,200,rt)  ; week day goes to Philadelphia
Office

[weekend__menu]
exten = s,1,Answer()
exten = s,2,Background(welcome-message)
exten = s,3,Dial(SIP/5961,200,rt)  ; weekend goes to Delaware Office

[night_menu]
exten = s,1,Answer()
exten = s,2,Background(officeclosed)
exten = s,3,Hangup  ;

;incoming
exten = 1866x,1,GotoIfTime(8:00-18:00|mon-sun|*|*?day_menu,s,1)
exten = 1866x,n,Goto(night_menu,s,1)

On Tue, Jun 24, 2008 at 6:35 AM, broadband Voice [EMAIL PROTECTED]
wrote:

 I googled some information on voip.org. Its my fault though and
 implemented the sample implementation without creating the context an the
 include statements.

 On Mon, Jun 23, 2008 at 10:33 PM, Eric ManxPower Wieling [EMAIL PROTECTED]
 wrote:

 If any docs were the cause of this (very important) misconception, maybe
 the docs could be reworded.  Do you remember what caused you to think
 that context was created automatically?

 broadband Voice wrote:
  fc7234153*CLI dialplan show open
  There is no existence of 'open' context
  I was under the impression that this was part of the Asterisk default
  libraries. I will create the context then and also add the include
 files.


 --
 Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS,
 T-1, PRI, Frame Relay, Linux, and network design.  Based near
 Birmingham, AL.  Now accepting clients worldwide.

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

 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net

 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] GotoIfTime Function

2008-06-24 Thread broadband Voice
I googled some information on voip.org. Its my fault though and implemented
the sample implementation without creating the context an the include
statements.

On Mon, Jun 23, 2008 at 10:33 PM, Eric ManxPower Wieling [EMAIL PROTECTED]
wrote:

 If any docs were the cause of this (very important) misconception, maybe
 the docs could be reworded.  Do you remember what caused you to think
 that context was created automatically?

 broadband Voice wrote:
  fc7234153*CLI dialplan show open
  There is no existence of 'open' context
  I was under the impression that this was part of the Asterisk default
  libraries. I will create the context then and also add the include files.


 --
 Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS,
 T-1, PRI, Frame Relay, Linux, and network design.  Based near
 Birmingham, AL.  Now accepting clients worldwide.

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

 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net

 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

[asterisk-users] GotoIfTime Function

2008-06-23 Thread broadband Voice
I am trying to use the GotoIfTime function and get a busy signal. What I am
trying to accomplish is to have the system tell callers that we are closed
after 5:00pm. Here is the code below.

; If we're open, then go to the open context
; We're open from 9am to 6pm Monday through Friday
exten = 3200,1,GotoIfTime(09:00-17:59,mon-fri,*,*?open,3200,1)
;
; We're also late on Tuesday and Thursday
exten = 3200,n,GotoIfTime(09:00-19:59,tuethru,*,*?open,3200,1)
;
; We're also open from 9am to noon on Saturday
exten = 3200,n,GotoIfTime(09:00-11:59,sat,*,*?open,3200,1)
;
; Otherwise, we're closed
exten = 3200,n,Goto(closed,s,1)

here is the cli

-- Executing [EMAIL PROTECTED]:1] GotoIfTime(SIP/1231-009da480,
09:00-17:59|mon-fri|*|*?open|3200|1) in new stack
-- Goto (open,3200,1)
[Jun 23 16:57:46] WARNING[3267]: pbx.c:2468 __ast_pbx_run: Channel
'SIP/1231-009da480' sent into invalid extension '3200' in context 'open',
but no invalid handler
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] GotoIfTime Function

2008-06-23 Thread Steve Edwards
On Mon, 23 Jun 2008, broadband Voice wrote:

 I am trying to use the GotoIfTime function and get a busy signal. What I am
 trying to accomplish is to have the system tell callers that we are closed
 after 5:00pm. Here is the code below.

 ; If we're open, then go to the open context
 ; We're open from 9am to 6pm Monday through Friday
 exten = 3200,1,GotoIfTime(09:00-17:59,mon-fri,*,*?open,3200,1)
 ;
 ; We're also late on Tuesday and Thursday
 exten = 3200,n,GotoIfTime(09:00-19:59,tuethru,*,*?open,3200,1)
 ;
 ; We're also open from 9am to noon on Saturday
 exten = 3200,n,GotoIfTime(09:00-11:59,sat,*,*?open,3200,1)
 ;
 ; Otherwise, we're closed
 exten = 3200,n,Goto(closed,s,1)

 here is the cli

-- Executing [EMAIL PROTECTED]:1] GotoIfTime(SIP/1231-009da480,
 09:00-17:59|mon-fri|*|*?open|3200|1) in new stack
-- Goto (open,3200,1)
 [Jun 23 16:57:46] WARNING[3267]: pbx.c:2468 __ast_pbx_run: Channel
 'SIP/1231-009da480' sent into invalid extension '3200' in context 'open',
 but no invalid handler

Which part of sent into invalid extension '3200' in context 'open' do 
you not understand :)

Do you have a context named open? Does the context have an extension 
3200? Does the extension have a priority 1?

Try show dialplan open and it should be [even more] obvious.

Thanks in advance,

Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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


Re: [asterisk-users] GotoIfTime Function

2008-06-23 Thread broadband Voice
fc7234153*CLI dialplan show open
There is no existence of 'open' context
I was under the impression that this was part of the Asterisk default
libraries. I will create the context then and also add the include files.

On Mon, Jun 23, 2008 at 8:19 PM, Steve Edwards [EMAIL PROTECTED]
wrote:

  On Mon, 23 Jun 2008, broadband Voice wrote:

  I am trying to use the GotoIfTime function and get a busy signal. What I
 am
  trying to accomplish is to have the system tell callers that we are
 closed
  after 5:00pm. Here is the code below.
 
  ; If we're open, then go to the open context
  ; We're open from 9am to 6pm Monday through Friday
  exten = 3200,1,GotoIfTime(09:00-17:59,mon-fri,*,*?open,3200,1)
  ;
  ; We're also late on Tuesday and Thursday
  exten = 3200,n,GotoIfTime(09:00-19:59,tuethru,*,*?open,3200,1)
  ;
  ; We're also open from 9am to noon on Saturday
  exten = 3200,n,GotoIfTime(09:00-11:59,sat,*,*?open,3200,1)
  ;
  ; Otherwise, we're closed
  exten = 3200,n,Goto(closed,s,1)
 
  here is the cli
 
 -- Executing [EMAIL PROTECTED]:1] GotoIfTime(SIP/1231-009da480,
  09:00-17:59|mon-fri|*|*?open|3200|1) in new stack
 -- Goto (open,3200,1)
  [Jun 23 16:57:46] WARNING[3267]: pbx.c:2468 __ast_pbx_run: Channel
  'SIP/1231-009da480' sent into invalid extension '3200' in context 'open',
  but no invalid handler

 Which part of sent into invalid extension '3200' in context 'open' do
 you not understand :)

 Do you have a context named open? Does the context have an extension
 3200? Does the extension have a priority 1?

 Try show dialplan open and it should be [even more] obvious.

 Thanks in advance,
 
 Steve Edwards  [EMAIL PROTECTED]  Voice: +1-760-468-3867 PST
 Newline Fax: +1-760-731-3000

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

 AstriCon 2008 - September 22 - 25 Phoenix, Arizona
 Register Now: http://www.astricon.net

 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 --

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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

Re: [asterisk-users] GotoIfTime Function

2008-06-23 Thread Eric ManxPower Wieling
If any docs were the cause of this (very important) misconception, maybe 
the docs could be reworded.  Do you remember what caused you to think 
that context was created automatically?

broadband Voice wrote:
 fc7234153*CLI dialplan show open
 There is no existence of 'open' context
 I was under the impression that this was part of the Asterisk default
 libraries. I will create the context then and also add the include files.


-- 
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS, 
T-1, PRI, Frame Relay, Linux, and network design.  Based near 
Birmingham, AL.  Now accepting clients worldwide.

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

AstriCon 2008 - September 22 - 25 Phoenix, Arizona
Register Now: http://www.astricon.net

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