I think I don't understand what those two parts are, the code block you added here (starting from L503 up to L522 in this file) gets converted into the code I wrote in my previous comment (i.e. L503 - L522 is removed). Thus there is only one part that has the voicemail/emergency code in `call_log.js` and that bit is quite short and easy to follow:
```javascript
...
} else if (voicemail || emergency) {
    // Check if the number is an emergency or a voicemail
    // number and set the appropriate label
    phoneNumberAdditionalInfo =
        voicemail ? this._('voiceMail') :
           (emergency ? this._('emergencyNumber') : '');
}
...
```
Let me know if I'm missing something