the script takes the device name as stored in FreePBX database, you should modify the freepbx database records. Or ask freepbx to fix the problem as you are using dahdi, not zap. It is possible to write exceptions on the .sh script, but not wise. This problem is a freepbx problem. Best regards,