Bug 959011 - Decline call with message

.
Can you have any guide? I don't know how to convert this function to object...