The dial field needs to be trimmed before passing to asterisk, or even better, before it is written to the dbase.