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

Reply via email to