First: You dial pattern was not correct, 'P' is not valid, and using 'N' doesn't do what you think it does. Read this.
Second: The prohibition against entering underscore prefixed patterns in this field is a bug, open a ticket at http://issues.freepbx.org