Here is how it is implemented in Tomato:

It is very useful to check which hosts initiated UPnP port opening, and what applications are in fact using this feature.
In addition to BitTorrent (KTorrent, qBittorrent), Skype and Pidgin use UPnP to have correct port mappings.
Here is how it looks like on TP-Link WR1043ND stock firmware:
