CallerID Superfecta: CID number > 10 digits

TheMole

Guru
Joined
Aug 28, 2008
Messages
96
Reaction score
9
(I'm not a php programmer, so this is pretty rough)

My Optimum Voice telephone number is always passed with a "1" in the CID to anybody I call.

When I call my PBX in a Flash box from my Optimum Voice line, the CallerID Superfecta lookup in AsterDex would fail, because of the leading "1".

Right after this line of code:

$thenumber=$_REQUEST['thenumber'];

I added the following:

if (strlen($thenumber)==11) :
$thenumber = substr($thenumber, -10);
endif;

Hope this helps somebody else.
 
Great idea. For those in the U.S. and Canada, I've embellished it a little more because some providers send +1 and the 10-digit number...

Code:
if (strlen($thenumber)>10) :
 $thenumber = substr($thenumber, -10);
endif;
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top