diff --git a/apier/v1/apier.go b/apier/v1/apier.go index 6e915187b..521e37eac 100644 --- a/apier/v1/apier.go +++ b/apier/v1/apier.go @@ -142,7 +142,7 @@ func (self *ApierV1) ExecuteAction(attr *AttrExecuteAction, reply *string) error } type AttrSetRatingProfile struct { - TPid string + TPid string RatingProfileId string } @@ -282,3 +282,14 @@ func (self *ApierV1) SetAccountActions(attrs AttrSetAccountActions, reply *strin *reply = OK return nil } + +func (self *ApierV1) ReloadScheduler(input string, reply *string) error { + if self.Sched != nil { + self.Sched.LoadActionTimings(self.DataDb) + self.Sched.Restart() + *reply = OK + return nil + } + *reply = utils.ERR_NOT_FOUND + return errors.New(utils.ERR_NOT_FOUND) +} diff --git a/console/add_account.go b/console/add_account.go index 797fcb87b..85ce27d52 100644 --- a/console/add_account.go +++ b/console/add_account.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/add_balance.go b/console/add_balance.go index 623029031..a5fa59c2a 100644 --- a/console/add_balance.go +++ b/console/add_balance.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/add_triggeredaction.go b/console/add_triggeredaction.go index b9ab2b681..27a49d273 100644 --- a/console/add_triggeredaction.go +++ b/console/add_triggeredaction.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/command.go b/console/command.go index db10d4bb2..770666157 100644 --- a/console/command.go +++ b/console/command.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/destination.go b/console/destination.go index df6db730f..c02bb111a 100644 --- a/console/destination.go +++ b/console/destination.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/execute_action.go b/console/execute_action.go index 69bfa0444..d61cdab85 100644 --- a/console/execute_action.go +++ b/console/execute_action.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/get_balance.go b/console/get_balance.go index d69991002..f1c86e38c 100644 --- a/console/get_balance.go +++ b/console/get_balance.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/set_accountactions.go b/console/set_accountactions.go index eff8059ea..c7e317a6f 100644 --- a/console/set_accountactions.go +++ b/console/set_accountactions.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/set_ratingprofile.go b/console/set_ratingprofile.go index 49f40cccc..6d46b5c55 100644 --- a/console/set_ratingprofile.go +++ b/console/set_ratingprofile.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/console/status.go b/console/status.go index 942731f70..cac4a8c72 100644 --- a/console/status.go +++ b/console/status.go @@ -1,3 +1,21 @@ +/* +Rating system designed to be used in VoIP Carriers World +Copyright (C) 2013 ITsysCOM + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see +*/ + package console import ( diff --git a/misc/copyright_header.txt b/misc/copyright_header.txt index ca4bc317e..829ae4a52 100644 --- a/misc/copyright_header.txt +++ b/misc/copyright_header.txt @@ -15,3 +15,4 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see */ +