That would be more of a question for Asterisk.http://www.asterisk.org/search/google/run%20script%20on%20incoming%20call?query=run%20script%20on%20incoming%20call&cx=000646719971617706768%3Ae8ekz6gqgzm&cof=FORID%3A11&sitesearch=You would author a open-ticket.php using the sample, and have Asterisk run it. You would of course have to customize the script for your custom fields (if any), and your installations URL and API key. If you need a sample of how to handle the php script PM me your email address and I will send one to you.