use:
exten => s,2,Read(fwdnum|audiofile-to-play|10)
then you'll have the number entered in variable ${fwdnum}.
Type "show application read" in asterisk console for further
details...
Hope this helps...
2006/9/9, James Williams
<jameswilliams@m33access.com>:>
> I'm currently trying to write a section into my dialplan that when a
user
> dials *78, it will beep 3 times, then wait 10 seconds for the user to
> enter
> a 10 digit phone number, then beep 3 more times and put that number into
> my
> AsteriskDB. I'm very new to this and I know this is probably very
simple
> but I'm having a very hard time accomplishing this. Here is what I
have
> currently which works for the most part. I thought that using
> WaitExten(10)
> would store the numbers that they enter to ${EXTEN} but I was wrong,
> instead
> I get just the "s". Any idea what I'd have to change here to
either store
> the number to ${EXTEN} or another variable? Any help would be appreciated.
>
>
> [CFWD] ; Call Forward Unconditional
> exten => *78,1,Set(cfwd_able=${DB(User/${CALLERID(number)}/cfwd_able})
>
> exten => *78,2,GotoIf($[${cfwd_able} = "0"]?10)
>
> exten => *78,3,GotoIf($[${cfwd_able} = "1"]?4)
>
> exten => *78,4,Goto(get-fwd,s,1)
>
> exten => *78,10,Playback(feature-not-avail-line)
>
> exten => *78,11,Hangup
>
>
> exten =>
*73,1,Set(DB(User/${CALLERID(number)}/callforward)="Disabled")
>
> exten => *73,2,DBdel(User/${CALLERID(number)}/callforwardnumber)
>
> exten => *73,3,AGI(/etc/asterisk/scripts/cfwdprocess.pl)
> exten => *73,4,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)
>
> exten => *73,5,Hangup
>
> [get-fwd]
> exten => s,1,NoOp(${TIMESTAMP} get-cfwd begins)
> exten => s,2,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)
>
> exten => s,2,WaitExten(10)
>
> exten =>
s,3,Set(DB(User/${CALLERID(number)}/callforward)="Enabled")
>
> exten =>
s,4,Set(DB(User/${CALLERID(number)}/callforwardnumber)=${EXTEN})
>
> exten => s,5,AGI(/etc/asterisk/scripts/cfwdprocess.pl)
> exten => s,6,Playtones(!1400/500,!0/250,!1400/500,!0/250,!1400/330)
>
> exten => s,7,Wait(5)
> exten => s,8,Hangup
>
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.2/442 - Release Date: 9/8/2006
>
>
> _______________________________________________
> --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/20060911/ff0ef305/attachment.htm