Bug 1050132 - [Loop] The other party is not notified when the loop call is rejected

See https://bugzilla.mozilla.org/show_bug.cgi?id=1050132 please.
This function is repeated several times in the code. Please move these 2 lines to a separate function and call it when needed.