Incoming calls to DID from outside line, Showing extension as dialed number

We use a program that pops up information based on the DID dialed, but its showing the extension (that answered the call) as the dialed number. Where do I find the setting to change this. Freepbx Distro, latest package with centos. Its receiving the information from our Snom 710 handset not the pbx. But the Snom handset gets the info from the PBX.