on-internet
← Community

A Sql Query for Looking up International numbers from WHMCS into PBX

Stack Overflow ·

I am trying to integrate my WHMCS and PBX together, which i can do via mysql. The problem is WHMCS now stores phone numbers as +44.000 000 0000 and my PBX creates the query as 07000000000 (without spaces) I had the idea of the following, but unfortunately doesn't look at the new replaced numbers with no spaces (SELECT REPLACE(phonenumber, ' ', '') FROM tblclients) UNION (SELECT companyname AS name FROM tblclients WHERE phonenumber LIKE "%xxx xxx xxxx%") UNION (SELECT companyname AS name FROM tblcontacts WHERE phonenumber LIKE "%xxx xxx xxxx%") The actual SQL Query that goes into the the PBX is

Comments

Sign in or sign up to comment and upvote.

No comments yet.