[asterisk-users] dialplan tips

harry R rhm.noa101 at gmail.com
Thu Aug 6 05:07:15 CDT 2009


    > exten => 101,1,Ringing

> > exten => 101,n,Answer()
> > exten => 101,n,Dial(SIP/quentin,10)
> > exten => 101,n,Goto(101-${DIALSTATUS},1)
> > exten => 101-NOANSWER,1,VoiceMail(101 at default,u)
> > exten => 101-NOANSWER,n,Playback(vm-goodbye)
> > exten => 101-NOANSWER,n,Hangup()
> > exten => 101-BUSY,1,Playback(busy)
> > exten => 101-BUSY,n,Wait(3)
> > exten => 101-BUSY,n,VoiceMail(101 at default,b)
> > exten => 101-BUSY,n,Playback(vm-goodbye)
> > exten => 101-BUSY,n,Hangup()
> > exten => _101-.,1,Goto(101-NOANSWER,1)
>
> Such a dialplan is potentially dangerous.
> Someone could call 101-BUSY directly and leave a voicemail message
> even if you are available.
> Please don't jump to extensions. Use labels (priorities) instead.
> Or use the switch(){} statement in AEL (:-) so you don't have to
> worry about the implementation details.
>
>
>    Philipp Kempgen
>

Hi Philipp

How could someone call 101-BUSY directly ? I dont see a way to that...

 But if I wrote something like
> exten => 101,n,Goto(s-${DIALSTATUS},1)
> exten => s-NOANSWER,1,VoiceMail(101 at default,u)
> exten => s-BUSY,n,VoiceMail(101 at default,b)
> exten => _s-.,1,Goto(101-NOANSWER,1)
there is a problem to ???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090806/64c1e56d/attachment.htm 


More information about the asterisk-users mailing list