Change terminator checking to a regex, so we can match multiple digits

I have a need to watch an `#ask` that terminates with either a `#` or a `*` - this patch works.

This was only tested against freeswitch (w/ mod_rayo) and against specs - it works fine there. Not tested against asterisk or prism.