Hi, I want to use the LCR module of SER, but it is not included on the latest release of SER (0.9.6). Also is it possible to use this module to route especial calls to a certain gateway based on the country code of the destination? For example all calls to the Philippines are bound to a specific gateway and the decision will be based on the destination:
destination is: 00632xxxxxxx ; i strip the leading 00 and to determine that it is a PSTN call then i want this call to be forwarded to a specific gateway. Can I do this with LCR module? How? Sample please...
Thanks in advance, Ryan
Yes, that is possible. That´s what LRC is used for.
Jose Simoes
On 3/11/06, Ryan Pagquil rpagquil@philonline.com wrote:
Hi, I want to use the LCR module of SER, but it is not included on the latest release of SER (0.9.6). Also is it possible to use this module to route especial calls to a certain gateway based on the country code of the destination? For example all calls to the Philippines are bound to a specific gateway and the decision will be based on the destination:
destination is: 00632xxxxxxx ; i strip the leading 00 and to determine that it is a PSTN call then i want this call to be forwarded to a specific gateway. Can I do this with LCR module? How? Sample please...
Thanks in advance, Ryan
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
The experimental cvs module for 0.9.x has the LCR backport (same level as sip_router and rtpproxy). Below is the sql tables. Also remember to add each table name and version=1 to the version table. g-)
# # Table structure for table 'gw' #
CREATE TABLE gw ( gw_name VARCHAR(128) NOT NULL, ip_addr INT UNSIGNED NOT NULL, port SMALLINT UNSIGNED, uri_scheme TINYINT UNSIGNED, transport TINYINT UNSIGNED, grp_id INT UNSIGNED NOT NULL, PRIMARY KEY (gw_name), KEY (grp_id) ) $TABLE_TYPE;
# # Table structure for table 'gw_grp' #
CREATE TABLE gw_grp ( grp_id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, grp_name VARCHAR(64) NOT NULL ) $TABLE_TYPE;
# # Table structure for table 'lcr' #
CREATE TABLE lcr ( prefix varchar(16) NOT NULL, from_uri varchar(128) NOT NULL DEFAULT '%', grp_id INT UNSIGNED NOT NULL, priority TINYINT UNSIGNED NOT NULL, KEY (prefix), KEY (from_uri), KEY (grp_id) ) $TABLE_TYPE;
----- Original Message ----- From: "Ryan Pagquil" rpagquil@philonline.com To: serusers@lists.iptel.org Sent: Sunday, March 12, 2006 1:52 AM Subject: [Serusers] LCR module
Hi, I want to use the LCR module of SER, but it is not included on the latest release of SER (0.9.6). Also is it possible to use this module to route especial calls to a certain gateway based on the country code of the destination? For example all calls to the Philippines are bound to a specific gateway and the decision will be based on the destination:
destination is: 00632xxxxxxx ; i strip the leading 00 and to determine that it is a PSTN call then i want this call to be forwarded to a specific gateway. Can I do this with LCR module? How? Sample please...
Thanks in advance, Ryan
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi, What is $TABLE_TYPE for?
CREATE TABLE gw ( gw_name VARCHAR(128) NOT NULL, ip_addr INT UNSIGNED NOT NULL, port SMALLINT UNSIGNED, uri_scheme TINYINT UNSIGNED, transport TINYINT UNSIGNED, grp_id INT UNSIGNED NOT NULL, PRIMARY KEY (gw_name), KEY (grp_id) ) $TABLE_TYPE; <<<-----------------------what for?
Thanks, Ryan
Sorry, you replace it with the mysql table type, ex myISAM. g-) ----- Original Message ----- From: "Ryan Pagquil" rpagquil@philonline.com To: "Greger V. Teigre" greger@teigre.com; serusers@lists.iptel.org Sent: Monday, March 13, 2006 11:08 PM Subject: Re: [Serusers] LCR module
Hi, What is $TABLE_TYPE for?
CREATE TABLE gw ( gw_name VARCHAR(128) NOT NULL, ip_addr INT UNSIGNED NOT NULL, port SMALLINT UNSIGNED, uri_scheme TINYINT UNSIGNED, transport TINYINT UNSIGNED, grp_id INT UNSIGNED NOT NULL, PRIMARY KEY (gw_name), KEY (grp_id) ) $TABLE_TYPE; <<<-----------------------what for?
Thanks, Ryan