[Asterisk-Users] Don't want a ring before voice menu

John Campbell johnny at terrascale.net
Wed Jun 9 13:19:36 MST 2004


Sorry. Attached is my extensions.conf, which isn't the cleanest but can
hopefully be of help in solving this. 

Thanks,

--john


On Tue, 2004-06-08 at 17:11, Steve Totaro wrote:
> Can we see your extensions.conf
> ----- Original Message ----- 
> From: "John Campbell" <johnny at terrascale.net>
> To: "asterisk-users" <asterisk-users at lists.digium.com>
> Sent: Tuesday, June 08, 2004 3:55 PM
> Subject: Re: [Asterisk-Users] Don't want a ring before voice menu
> 
> 
> > I should have been clearer in my description of the scenario.
> >
> > What I have is an FXO port connected to an analog line, with 3 FXS
> > extensions. With an incoming call, the phone connected to one of the FXS
> > ports will ring once before  kicking in to the voice menu. Eventually,
> > say when the caller presses "0", the call is routed to that extension
> > and the phone rings again the way I've configured it to.
> >
> > Ideally, we would rather not hear the extension ring at all the first
> > time.
> >
> > In short, all incoming calls ring to the extension before the caller
> > gets presented with a voice menu. For now, I've told the receptionist
> > (the person at that extension) to just let it ring.
> >
> > I hope this is somewhat clearer....
> >
> >
> >
> >
> >
> > On Tue, 2004-06-08 at 13:52, jparr at bgcfreedom.com wrote:
> > > On Tue, 8 Jun 2004, John Campbell wrote:
> > >
> > > > Hi,
> > > >
> > > > Having searched through the mailing list archives and the wiki, I
> still
> > > > don't know how to solve the following problem:
> > > >
> > > > Call is received, phone rings once, then the caller gets the voice
> menu.
> > > >
> > > > What I want is for the call not to actually ring, but to go straight
> to
> > > > the voice menu.
> > > >
> > > > How can I achieve this?
> > > >
> > > > Thanks,
> > >
> > > You are using analog lines? If so, asterisk has no way of knowing the
> > > phone is ringing, until it rings.
> > >
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at 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
> > >
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at 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
> >
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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
> 
-------------- next part --------------
[general]

static=yes       ; These two lines prevent the command-line interface
writeprotect=yes ; from overwriting the config file. Leave them here.

[globals]
TRUNK=Zap/1

[bogon-calls]

;
; Take unknown callers that may have found
; our system, and send them to a re-order tone.
; The string "_." matches any dialed sequence, so all
; calls will result in the Congestion tone application
; being called. They'll get bored and hang up eventually.
;

exten => _.,1,Congestion 

[from-sip]

;
; If the number dialed by the calling party was "2000", then
; Dial the user "2000" via the SIP channel driver. Let the number
; ring for 20 seconds, and if no answer, proceed to priority 2.
; If the number gives a "busy" result, then jump to priority 102
;

exten => 2000,1,Dial(SIP/2000,20)

;
; Priority 2 send the caller to voicemail, and gives the "u"navailable
; message for user 2000, as recorded previously. The only way out
; of voicemail in this instance is to hang up, so we have reached
; the end of our priority list.
;

exten => 2000,2,Voicemail(u2000)

;
; If the Dialed number in priority 1 above results in
; a "busy" code, then Dial will jump to 101 + (current priority)
; which in our case will be 101+1=102. This +101 jump is built
; into Asterisk and does not need to be defined.
;

exten => 2000,102,Voicemail(b2000)
exten => 2000,103,Hangup

;
; Now, what if the number dialed was "2001"?
;

exten => 2001,1,Dial(SIP/2001,20)
exten => 2001,2,Voicemail(u2001)
exten => 2001,102,Voicemail(b2001)
exten => 2001,103,Hangup

;
; Define a way so that users can dial a number to reach
; voicemail. Call the VoicemailMain application with the
; number of the caller already passed as a variable, so
; all the user needs to do is type in the password.
;

exten => 2999,1,VoicemailMain;(${CALLERIDNUM})
include => trunklocal

[default]
; Wait 15 seconds for an answer (pick up the local phone)
exten => s,1,Wait,2

; Answer the phone
exten => s,2,Answer


; Playback generic voice mail message
exten => s,3,Background(ts_welcome_en)

; They must respond within 10 seconds
; else jump to priority t (terminate call)
exten => s,4,DigitTimeout,3
exten => s,5,ResponseTimeout,10


;Sales Voicemail
;exten => 1,1,Dial(SIP/2001,15)
exten => 1,1,Dial(Zap/3,20)
exten => 1,2,Playback,vm/7000/unavail
exten => 1,3,Voicemail,7000
exten => 1,4,Goto,t|1

;Support Voicemail
exten => 2,1,Dial(Zap/3,20)
exten => 2,2,Playback,vm/7000/unavail
exten => 2,3,Voicemail,7000
exten => 2,4,Goto,t|1

;Reception Voicemail
exten => 0,1,Dial(Zap/3,20)
exten => 0,2,Playback,vm/7000/unavail
exten => 0,3,Voicemail,7000
exten => 0,4,Goto,t|1

; t - terminate call
exten => t,1,Playback,vm-goodbye
exten => t,2,Hangup

exten => 2999,1,VoicemailMain
include => trunklocal
include => trunkld
include => trunkint
include => trunktollfree
include => trunk450
include => trunk514

[trunklocal]
exten => _NXXXXXX,1,Dial(${TRUNK}/${EXTEN})
exten => _NXXXXXX,2,Congestion

[trunk450]
exten => _450NXXXXXX,1,Dial(${TRUNK}/${EXTEN})
exten => _450NXXXXXX,2,Congestion

[trunk514]
exten => _514NXXXXXX,1,Dial(${TRUNK}/${EXTEN})
exten => _514NXXXXXX,2,Dial(${TRUNK}/${EXTEN})

[trunkld]
exten => _81NXXNXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _81NXXNXXXXXX,2,Congestion

[trunkint]
exten => _8011.,1,Dial(${TRUNK}/${EXTEN:1})
exten => _8011.,2,Congestion

[trunktollfree]
exten => _91800NXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _91800NXXXXXX,2,Congestion
exten => _91888NXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _91888NXXXXXX,2,Congestion
exten => _91877NXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _91877NXXXXXX,2,Congestion
exten => _91866NXXXXXX,1,Dial(${TRUNK}/${EXTEN:1})
exten => _91866NXXXXXX,2,Congestion


More information about the asterisk-users mailing list