SN10200 Routing based on MySQL Database
Posted by Zsolt Erdei, Last modified by Danny Staub on 15 November 2017 02:49 PM

In some cases the routing on SmartMedia 10K series can not be done just using the static routing table.

As a new case study, in some cases the remapped nap is depending on the actual time / the calling party number of the called party number. All these data are available already in a MySQL database, so the most logical is to use it.

 

Link to attachment 

What you need:

- A SmartMedia VoIP Gateway

- A MySQL Server ( version <= 5.1.47 as of now )

- The attached Ruby Script.

Database Scheme:

mysql> describe route\G;

*************************** 1. row ***************************
Field: id
Type: int(11)
Null: NO
Key: PRI
Default: NULL
Extra: auto_increment
*************************** 2. row ***************************
Field: numberA
Type: varchar(255)
Null: NO
Key:
Default: NULL
Extra:
*************************** 3. row ***************************
Field: numberB
Type: varchar(255)
Null: NO
Key:
Default: NULL
Extra:
*************************** 4. row ***************************
Field: napB
Type: varchar(255)
Null: NO
Key:
Default: NULL
Extra:
4 rows in set (0.00 sec)



Attachments 
 
 sql_based_routing_10k.rb (2.21 KB)
(8748 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).