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.
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.