<div class="gmail_quote">On Wed, Mar 10, 2010 at 3:38 AM, Zhang Shukun <span dir="ltr"><<a href="mailto:bitzsk@gmail.com">bitzsk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[95040]<br>
<br>
exten => _95040XXXXX,1,Set(CALLINNUM=${CALLERID(dnid)})<br>
exten => _95040XXXXX,n(start),Answer<br>
exten => _95040XXXXX,n(welcome),Background(${welcomefile},,123)<br>
...<br>
<br>
exten => i,1,Playback(invalid)<br>
exten => i,2,Goto(${CALLINNUM},welcome)<br clear="all"></blockquote></div><br>Try setting CALLINNUM to ${EXTEN}.<br><br>exten => _95040XXXXX,1,Set(CALLINNUM=${EXTEN}).<br><br>This way you'll capture whatever is matching the _95040XXXXX pattern, instead of the value in the CALLERID(dnid).<br>
<br>-- <br>Thanks,<br>--Warren Selby<br><a href="http://www.selbytech.com">http://www.selbytech.com</a><br>