Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
336808f
commit f79ae9a
Showing
16 changed files
with
388 additions
and
7 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE database PUBLIC "-//opensips.org//DTD DBSchema V1.1//EN" | ||
"http://opensips.org/pub/opensips/dbschema/dtd/1.1/dbschema.dtd" [ | ||
|
||
<!ENTITY % entities SYSTEM "entities.xml"> | ||
%entities; | ||
]> | ||
|
||
<database xmlns:xi="http://www.w3.org/2001/XInclude"> | ||
<name>SMPP</name> | ||
<xi:include href="smpp.xml"/> | ||
</database> |
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,110 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE table PUBLIC "-//opensips.org//DTD DBSchema V1.1//EN" | ||
"http://opensips.org/pub/opensips/dbschema/dtd/1.1/dbschema.dtd" [ | ||
|
||
<!ENTITY % entities SYSTEM "entities.xml"> | ||
%entities; | ||
|
||
]> | ||
|
||
<table id="smpp" xmlns:db="http://docbook.org/ns/docbook"> | ||
<name>smpp</name> | ||
<version>1</version> | ||
<type db="mysql">&MYSQL_TABLE_TYPE;</type> | ||
<description> | ||
<db:para> | ||
This table is used to provision Short Message Service Center (SMSC) | ||
information to connect to over the SMPP (Short Message Peer-to-Peer). | ||
More information can be found at: &OPENSIPS_MOD_DOC;proto_smpp.html. | ||
</db:para> | ||
</description> | ||
|
||
<column id="id"> | ||
<name>id</name> | ||
<type>unsigned int</type> | ||
<size>&table_id_len;</size> | ||
<autoincrement/> | ||
<natural/> | ||
<primary/> | ||
<type db="dbtext">int,auto</type> | ||
<description>Unique ID</description> | ||
</column> | ||
|
||
<column id="name"> | ||
<name>name</name> | ||
<type>string</type> | ||
<size>255</size> | ||
<description>An arbitrary name of the SMSC, used to uniquely identify the binding. | ||
</description> | ||
</column> | ||
|
||
<column id="ip"> | ||
<name>ip</name> | ||
<type>string</type> | ||
<size>&ip_add_len;</size> | ||
<description>The IP address used to connect to the SMSC.</description> | ||
</column> | ||
|
||
<column id="port"> | ||
<name>port</name> | ||
<type>unsigned int</type> | ||
<size>5</size> | ||
<description>The port used to connect to the SMSC.</description> | ||
</column> | ||
|
||
<column id="system_id"> | ||
<name>system_id</name> | ||
<type>string</type> | ||
<size>16</size> | ||
<description>The System ID (also called user name) for the gateway | ||
to use when connecting to the SMPP server.</description> | ||
</column> | ||
|
||
<column id="password"> | ||
<name>password</name> | ||
<type>string</type> | ||
<size>9</size> | ||
<description>The password for the gateway to use when connecting to | ||
the SMPP server.</description> | ||
</column> | ||
|
||
<column id="system_type"> | ||
<name>system_type</name> | ||
<type>string</type> | ||
<size>13</size> | ||
<description>Configures the System Type parameter of the | ||
the SMPP server.</description> | ||
</column> | ||
|
||
<column id="src_ton"> | ||
<name>src_ton</name> | ||
<type>unsigned int</type> | ||
<description>Specifies the Source TON (Type of Number).</description> | ||
</column> | ||
|
||
<column id="src_npi"> | ||
<name>src_npi</name> | ||
<type>unsigned int</type> | ||
<description>Specifies the Source NPI (Numbering Plan Indicator).</description> | ||
</column> | ||
|
||
<column id="dst_ton"> | ||
<name>dst_ton</name> | ||
<type>unsigned int</type> | ||
<description>Specifies the Destination TON (Type of Number).</description> | ||
</column> | ||
|
||
<column id="dst_npi"> | ||
<name>dst_npi</name> | ||
<type>unsigned int</type> | ||
<description>Specifies the Destination NPI (Numbering Plan Indicator).</description> | ||
</column> | ||
|
||
<column id="session_type"> | ||
<name>session_type</name> | ||
<type>unsigned int</type> | ||
<description>Sepecifies the type of binding: 1 - transciever, | ||
2 - transmitter, 3 - receiver, 4 - outbind.</description> | ||
</column> | ||
|
||
</table> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
METADATA_COLUMNS | ||
id(int) name(str) ip(str) port(int) system_id(str) password(str) system_type(str) src_ton(int) src_npi(int) dst_ton(int) dst_npi(int) session_type(int) | ||
METADATA_KEY | ||
0 | ||
METADATA_READONLY | ||
0 | ||
METADATA_LOGFLAGS | ||
0 | ||
METADATA_DEFAULTS | ||
NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL|NIL |
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 |
---|---|---|
|
@@ -112,6 +112,8 @@ silo| | |
silo|6 | ||
sip_trace| | ||
sip_trace|5 | ||
smpp| | ||
smpp|1 | ||
speed_dial| | ||
speed_dial|3 | ||
subscriber| | ||
|
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 @@ | ||
id(int,auto) name(string) ip(string) port(int) system_id(string) password(string) system_type(string) src_ton(int) src_npi(int) dst_ton(int) dst_npi(int) session_type(int) |
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 |
---|---|---|
|
@@ -48,6 +48,7 @@ rtpengine:1 | |
rtpproxy_sockets:0 | ||
silo:6 | ||
sip_trace:5 | ||
smpp:1 | ||
speed_dial:3 | ||
subscriber:7 | ||
tls_mgm:3 | ||
|
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,16 @@ | ||
INSERT INTO version (table_name, table_version) values ('smpp','1'); | ||
CREATE TABLE smpp ( | ||
id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY NOT NULL, | ||
name CHAR(255) NOT NULL, | ||
ip CHAR(50) NOT NULL, | ||
port INT(5) UNSIGNED NOT NULL, | ||
system_id CHAR(16) NOT NULL, | ||
password CHAR(9) NOT NULL, | ||
system_type CHAR(13) NOT NULL, | ||
src_ton INT UNSIGNED NOT NULL, | ||
src_npi INT UNSIGNED NOT NULL, | ||
dst_ton INT UNSIGNED NOT NULL, | ||
dst_npi INT UNSIGNED NOT NULL, | ||
session_type INT UNSIGNED NOT NULL | ||
) ENGINE=InnoDB; | ||
|
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,24 @@ | ||
INSERT INTO version (table_name, table_version) values ('smpp','1'); | ||
CREATE TABLE smpp ( | ||
id NUMBER(10) PRIMARY KEY, | ||
name VARCHAR2(255), | ||
ip VARCHAR2(50), | ||
port NUMBER(10), | ||
system_id VARCHAR2(16), | ||
password VARCHAR2(9), | ||
system_type VARCHAR2(13), | ||
src_ton NUMBER(10), | ||
src_npi NUMBER(10), | ||
dst_ton NUMBER(10), | ||
dst_npi NUMBER(10), | ||
session_type NUMBER(10) | ||
); | ||
|
||
CREATE OR REPLACE TRIGGER smpp_tr | ||
before insert on smpp FOR EACH ROW | ||
BEGIN | ||
auto_id(:NEW.id); | ||
END smpp_tr; | ||
/ | ||
BEGIN map2users('smpp'); END; | ||
/ |
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
Oops, something went wrong.