The SQL query is missing the toll-allow setting from the virtual fax extension. All dialplans that have that condition will fail. This patch makes sure the variable is present if need it.