You want to use DISA: <a href="http://www.voip-info.org/wiki-Asterisk+cmd+DISA">http://www.voip-info.org/wiki-Asterisk+cmd+DISA</a><br><br>Or, you can do it with something like:<br><br>exten=>_XXXX,1,Answer()<br>exten=>_XXXX,n,Wait(1)
<br>exten=>_XXXX,n,Authenticate(1234)<br>exten=>_XXXX,n,Read(CallerID,beep,10)<br>exten=>_XXXX,n,Wait(1)<br>exten=>_XXXX,n,Read(DialedNum,beep,10)<br>exten=>_XXXX,n,Set(CALLERID(num)=+1${CallerID})<br>exten=>_XXXX,n,Dial(SIP/trunk/+1${DialedNum})
<br>exten=>_XXXX,n,Hangup<br><br>Example above:<br><br>Answers<br>Asks for password (1234)<br>Reads a 10 digit number (Calling Number)<br>Reads a 10 digit number (Called Number)<br>Sets outbound callerid<br>Dials called number
<br><br>This is useful for .... testing.<br><br><br><div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Don</b> <<a href="mailto:sales@xwebfactor.com">sales@xwebfactor.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Does anyone know where to find an example or able
to provide an example of how to do the following:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When asterisk answers a call...</font></div>
<div><font face="Arial" size="2">Ask for number to dial...then dial that
number?</font></div>
<div><font face="Arial" size="2">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...</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I basically am just not sure how to have asterisk
accept the digits and then use them in the dial command...</font></div>
<div> </div></div>
</div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --
<br><br>Asterisk-Users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Anthony D Cennami<br>