[asterisk-users] Asterisk Dial Plan to Play Message
broadbandvoice at comcast.net
broadbandvoice at comcast.net
Sun Jul 23 06:37:55 MST 2006
Thanks for the response, its looks logical, for some reason the authentication is not working for me, I'm using a Linksys Phone adapter and here is a sample dial plan in extensions.conf and also SIP channels.
exten => 8407,1,Dial(SIP/8407,80,rt) ; permit transfer
exten => 8407,n,Authenticate(9461)
exten => 8407,n,Playback(pbx-invalid)
exten => 8407,n,Hangup()
and in sip.conf
[9507]
type=friend
user=8407
secret=xxxxxxxxxx
;context=from-sip
callerid=8407
host=dynamic
nat=yes
qualify=yes
canreinvite=no
dtmfmode=rfc2833
;incominglimit=1
;mailbox=8407 at default
;disallow=all
;allow=ulaw
;allow=alaw
;allow=g729
;allow=g723.1
I also tried changing type to peer instead of freind and does not work either. I am running Asterisk 1.2.3.
Any help will be appreciated and thanks for all your inputs.
-------------- Original message --------------
From: Steve Totaro <stotaro at asteriskhelpdesk.com>
> If you are using phones attached to a ZAP FXS port the immediate=yes
> will work. Otherwise, some SIP phones (Grandstream for instance) allows
> you to enter an autodial number. It depends on what is providing the
> dialtone to the handset. If your device does not support autodial, then
> the next best thing is to do what has already been suggested.
>
> OR
>
> [somecontext]
> exten=s,1,answer
> exten=s,2,Authenticate(insertdigitshere)
> exten=s,3,(continue with a real dialplan)
>
> Change the corresponding authenticate gsm file to say what you want
> about contacting the boss.
>
> This gives the impression that phone is restricted for outbound calling
> but if you enter the authenticate string, you can dialout for
> emergencies or convenience.
>
> Thanks,
> Steve
>
> broadbandvoice at comcast.net wrote:
> > It did not work, how can I put in some user intervention so that any
> > numbers they dial will send them to a message? Restrict their outbound
> > calls and a get a message to contact administrator instead of a busy
> > signal.
> >
> > -------------- Original message --------------
> > From: "brandon kruz"
> >
> > > thank you russel
> > > forgot to mention this.
> > >
> > > >
> > > >On Sat, 2006-07-22 at 19:38 -0500, brandon kruz wrote:
> > > > > [internal]
> > > > > exten => s,1,Answer()
> > > > > exten => s,n,Playback(custom)
> > > > > exten => s,n,Hangup()
> > > >
> > > >This, by itself, does not solve the problem where you want the
> > message
> > > >to be played back when the phone is picked up without any user
> > > >intervention. If you're using zap phones, you can simply set this
> > > >option:
> > > >
> > > >immediate=yes
> > > >
> > > >Then, as soon as the phone goes off hook, the call will begin
> > at the 's'
> > > >extension in the configured context instead of pro viding
> > dialtone.
> > > >
> > > >--
> > > >Russell Bryant
> > > >Software Developer
> > > >Digium, Inc.
> > > >
> > > >_______________________________________________
> > > >--Bandwidth and Colocation provided by Easynews.com --
> > > >
> > > >asterisk-users mailing list
> > > >To UNSUBSCRIBE or update options visit:
> > > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > >
> > > _________________________________________________________________
> > > Dont just search. Find. Check out the new MSN Search!
> > > http://search.msn.click-url.com/go/onm00200636ave/direct/01/
> > >
> > > _______________________________________________
> > > --Bandwidth and Colocation provided by Easynews.com --
> > >
> > > asterisk-users mailing list
> > > To UNSUBSCRIBE or update options visit:
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060723/6c2f24a2/attachment.htm
More information about the asterisk-users
mailing list