<div class="gmail_quote">2009/4/22 michel freiha <span dir="ltr">&lt;<a href="mailto:michofr@gmail.com">michofr@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr">Hi all, <br>Does asterisk support the following scenario? I need when a customer who own an endpoint registered on asterisk open the line, the asterisk will run a specific AGI script inside the endpoint context?<br>

</div></blockquote><div><br>You mean when they pick up the phone it&#39;ll automatically run the AGI? <br>If so, easy to do with dahdi channels using immediate=yes, the s extension in that channels context would be executed on the phone going offhook, with other channel types it depends on whether the endport device supports some way of really automatically opening a channel... Most SIP devices will generate their own dial tone and at a certain point, based on their local dialplan, send the dialled string to asterisk to open a channel, if nothing is dialled, they wouldn&#39;t contact the server... That said, their may be some devices that would allow configuration such that they will automatically dial a number when going offhook...<br>
<br>d <br></div></div><br>