Update asterisk.inc

Gosh I found some dumb syntax errors. Plus optimized a bit more.