<html><head><base href="x-msg://861/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2 Mar 2012, at 11:35, Kamlesh Kumar wrote:</div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage"><div dir="ltr"><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: 10pt;">$agi = new AGI();</span></font><br><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: 10pt;">$agi-> exec('Background','press_one0&press_two0&press_zero0');</span></font><br><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: 10pt;">$agi-> exec('Read','NUMBER,,1,3');</span></font><br><strong style="font-family: Tahoma; font-size: 10pt; ">$agi-> verbose ("You have entered".$NUMBER);</strong><font class="Apple-style-span" face="Tahoma"><span class="Apple-style-span" style="font-size: 13px;"><br></span></font></div></div></span></blockquote><br></div><div>You need to use AGI to read the Asterisk variable.. Asterisk variables don't magically become PHP ones.. Or you get Asterisk to process it instead using ${NUMBER}.</div><div><br></div><div>S</div></body></html>