How to determine - from wich table called a form for add SUBSCRIPTION

There is 2 ways to add subscribers to subscription table

1) From CONTACTS

2) From DEVICE

 

How can i detect in script (triggers for update for subscription) that change in subscription called from 1) or 2) ?