[asterisk-users] dialplan design - unknown extension length

Mojo with Horan & Company, LLC mojo at horanappraisals.com
Mon Nov 19 12:49:32 CST 2007


Should work fine:


[incoming]
exten => s,1,Background(blahblahblah)
exten => s,2,WaitExten(10)
exten => s,3,Background(make your selection)
exten => s,4,Goto(2)

exten => 0,1,Goto(operator,s,1)

exten => _XXXX,1,Goto(agents,${EXTEN}, 1)

[operator]
exten => s,1,Dial(SIP/110,,twk)

[agents]
exten => 1234,1,Dial(SIP/1234,,twk)
exten => 5678,1,Dial(SIP/5678,,twk)



Robert McNaught wrote:
> Hi,
>
> Trying to figure out what would be the best practice for the following:-
>
> Problem: From the main number IVR, allowing a user to dial a 0 to
> reach an endpoint instantly (without pressing pound, or having any
> delay), or allowing the customer to type in 1234 then pound to be
> transferred somewhere else.
>
> If you use the Read() application, then it specifies either the wait
> time or the number of digits to accept, if you press 0 - you have to
> wait until the Read application stops accepting digits - if you set
> this timeout low then the wait is not too long, but is confusing to
> the user:
>
> The other option is the Background (using the m flag) or WaitExten
> application, but cannot get these to work using a pattern match - I am
> assuming that this is impossible with a pattern match?
>
>
> exten => 9161231234,1,Background(soundfile,m)
>
> exten => 0,1,XXXXX
>
> exten => _XXXX,1,dosomethingelse
>
> Has anyone done this before in production? and is there a best way to
> design this?
>
> Cheers - any info appreciated :-)
>
> Robert
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   




More information about the asterisk-users mailing list