forked from OpenTelecom/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAZOO-KNM: follow nomenclature for providers behaviour
- Loading branch information
Showing
11 changed files
with
33 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
ROOT = ../.. | ||
PROJECT = kazoo_number_manager | ||
|
||
SOURCES = src/providers/knm_providers.erl src/*.erl src/*/*.erl | ||
|
||
all: compile | ||
|
||
include $(ROOT)/make/kz.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
%%%------------------------------------------------------------------- | ||
%%% @copyright (C) 2011-2016, 2600Hz INC | ||
%%% @doc | ||
%%% | ||
%%% When implementing provider modules, these callbacks are a must! | ||
%%% | ||
%%% @end | ||
%%% @contributors | ||
%%% Pierre Fenoll | ||
%%%------------------------------------------------------------------- | ||
-module(knm_gen_provider). | ||
|
||
-include("knm.hrl"). | ||
|
||
-callback save(knm_number:knm_number()) -> | ||
knm_number:knm_number(). | ||
|
||
-callback delete(knm_number:knm_number()) -> | ||
knm_number:knm_number(). | ||
|
||
-callback has_emergency_services(knm_number:knm_number()) -> | ||
boolean(). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters