[Asterisk-Users] Asking for phone number to dial

Anthony Cennami acennami at gmail.com
Fri Jun 23 14:26:36 MST 2006


You want to use DISA: http://www.voip-info.org/wiki-Asterisk+cmd+DISA

Or, you can do it with something like:

exten=>_XXXX,1,Answer()
exten=>_XXXX,n,Wait(1)
exten=>_XXXX,n,Authenticate(1234)
exten=>_XXXX,n,Read(CallerID,beep,10)
exten=>_XXXX,n,Wait(1)
exten=>_XXXX,n,Read(DialedNum,beep,10)
exten=>_XXXX,n,Set(CALLERID(num)=+1${CallerID})
exten=>_XXXX,n,Dial(SIP/trunk/+1${DialedNum})
exten=>_XXXX,n,Hangup

Example above:

Answers
Asks for password (1234)
Reads a 10 digit number (Calling Number)
Reads a 10 digit number (Called Number)
Sets outbound callerid
Dials called number

This is useful for ....  testing.


On 6/23/06, Don <sales at xwebfactor.com> wrote:
>
>  Does anyone know where to find an example or able to provide an example
> of how to do the following:
>
> When asterisk answers a call...
> Ask for number to dial...then dial that number?
> I am basically dialing into the asterisk box and then wanting it to take
> the digits I enter and dial them on an outbound zap trunk...
>
> I basically am just not sure how to have asterisk accept the digits and
> then use them in the dial command...
>
>
> _______________________________________________
> --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
>
>
>


-- 
Anthony D Cennami
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060623/10bb7392/attachment.htm


More information about the asterisk-users mailing list