2600hz/kazoo — pull request #297 by onnet (2014-04-08 14:26:20+00:00)
Title: sup command to list all account's call_restriction flags

An alternative to digging CouchDB or UI

Output sample:

[root@host kazoo]# sup callflow_maintenance list_account_restrictions "my office"

Account level classifiers:

Classifier <<"local_spb">>:	action <<"allow">>
Classifier <<"national">>:	action <<"allow">>
Classifier <<"international">>:	action <<"deny">>
Classifier <<"dangerous">>:	action <<"deny">>

User level classifiers:

Username: admin

Classifier <<"closed_groups">>:	action <<"inherit">>
Classifier <<"local_spb">>:	action <<"inherit">>
Classifier <<"national">>:	action <<"inherit">>
Classifier <<"dangerous">>:	action <<"inherit">>
Classifier <<"international">>:	action <<"deny">>

Username: user1

Classifier <<"closed_groups">>:	action <<"inherit">>
Classifier <<"local_spb">>:	action <<"inherit">>
Classifier <<"national">>:	action <<"inherit">>
Classifier <<"dangerous">>:	action <<"inherit">>
Classifier <<"international">>:	action <<"inherit">>

Device level classifiers:

Device: spa525

Classifier <<"closed_groups">>:	action <<"inherit">>
Classifier <<"local_spb">>:	action <<"inherit">>
Classifier <<"national">>:	action <<"inherit">>
Classifier <<"dangerous">>:	action <<"deny">>
Classifier <<"international">>:	action <<"inherit">>

Device: spa922

Classifier <<"closed_groups">>:	action <<"inherit">>
Classifier <<"local_spb">>:	action <<"inherit">>
Classifier <<"national">>:	action <<"deny">>
Classifier <<"international">>:	action <<"deny">>

Trunkstore classifiers:

Trunk: pbx_single@domain.tld

Classifier <<"local_spb">>:	action <<"allow">>
Classifier <<"national">>:	action <<"allow">>
Classifier <<"international">>:	action <<"deny">>
Classifier <<"dangerous">>:	action <<"deny">>
ok