Before the bridge action on the outbound route add the following actions
First enable access to the “PIN Number” app by giving permissions to the group of users you want to have access in Advanced > Group Manager. Make sure the “PIN Number” App is displayed in the menu by selecting the groups that can view it in Advanced > Menu Manager.
Set the PINs you would like to use in Apps > PIN Numbers
Before the bridge action on the outbound route add the following actions
action set pin_number=database
action lua pin_number.lua
If you want to know the gateway your call is using there is currently no way to do this with NocRoomPBX GUI. Instead you can do it this way.
Go to Advanced -> Command and in the switch command dropdown section type
show channels as xml and then press the execute button.
In the output that is returned, look for the string sofia/gateway/ and the gateway name. This is the gateway your call is using.