aboutsummaryrefslogtreecommitdiffstats
path: root/doc/en/hook/change_channel.bb
blob: 4514b926511d6752d8dd9a87ed8c4f16a39ca015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
[h2]change_channel[/h2]

Called when entering a logged in state in a channel context (as opposed to an account context).
The hook array provides two arguments, 'channel_id' and 'chanx'. 'chanx' is a union of the channel 
and xchan records for the now active channel.

Use this to capture what would traditionally be known as 'login events'.  In this platform, login is
a separate authentication activity and doesn't necessarily require "connecting to an identity", which
is what the change_channel activity represents.