Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] ODBC spidermonkey


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mashudiflexi at telkom...
Guest





PostPosted: Thu Aug 28, 2008 1:58 am    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

Hi folks,
i try javascripts example for conference application and get this error,

2008-08-28 20:59:55 [ERR] mod_spidermonkey.c:3303 js_api_use() Error
loading ODBC
2008-08-28 20:59:55 [ERR] conference.js:10 mod_spidermonkey()
ReferenceError: ODBC is not defined

i have follow the instruction as documented on
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc.

please help.

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Thu Aug 28, 2008 2:02 am    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

First you have to add

use("ODBC");

in your javascript.


On Thu, Aug 28, 2008 at 9:06 AM, mashudi <mashudiflexi@telkom.co.id> wrote:
Quote:
Hi folks,
i try javascripts example for conference application and get this error,

2008-08-28 20:59:55 [ERR] mod_spidermonkey.c:3303 js_api_use() Error
loading ODBC
2008-08-28 20:59:55 [ERR] conference.js:10 mod_spidermonkey()
ReferenceError: ODBC is not defined

i have follow the instruction as documented on
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc.

please help.

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mashudiflexi at telkom...
Guest





PostPosted: Thu Aug 28, 2008 8:33 pm    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

it is already

use("ODBC");


var DSN = "DB";
var DB_USER = "conce";
var DB_PASS = "password";

var line = "====================================\n";

var db = new ODBC(DSN, DB_USER, DB_PASS);
db.connect();
var sql;
var dtmf = new Object();
var replay = 1;

function mycb (session, type, data, arg) {

if (type == "dtmf") {
arg.digits += data.digit;
if (arg.digits.length >= 1) {
return false;
}
}
}

function get_route(digits)
{

sql = "select count(*) as count from conferences where pin = \""
+ digits +"\";";

var line = "====================================\n";

console_log("notice", "Menu Option Entered: " + digits +" \n sql
statment [" + sql + "]\n");
console_log("notice", line);

db.exec(sql);

while(db.nextRow()) {
var row = db.getData();
if (row["count"] >= 1) {
console_log("notice", "Found Conf Pin=[" +
digits + "]\n");
return digits;
} else {


and the odbc already running :

mashudi:/usr/local/freeswitch/scripts# isql -v DB
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>



Jonas Gauffin wrote:
Quote:
First you have to add

use("ODBC");

in your javascript.


On Thu, Aug 28, 2008 at 9:06 AM, mashudi <mashudiflexi@telkom.co.id> wrote:

Quote:
Hi folks,
i try javascripts example for conference application and get this error,

2008-08-28 20:59:55 [ERR] mod_spidermonkey.c:3303 js_api_use() Error
loading ODBC
2008-08-28 20:59:55 [ERR] conference.js:10 mod_spidermonkey()
ReferenceError: ODBC is not defined

i have follow the instruction as documented on
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc.

please help.

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************




*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
jonas.gauffin at gmail...
Guest





PostPosted: Fri Aug 29, 2008 1:00 am    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

Have you specified in fs\conf\autoload_configs\spidermonkey.conf.xml
that odbc should be loaded?

On 8/29/08, mashudi <mashudiflexi@telkom.co.id> wrote:
Quote:
it is already

use("ODBC");


var DSN = "DB";
var DB_USER = "conce";
var DB_PASS = "password";

var line = "====================================\n";

var db = new ODBC(DSN, DB_USER, DB_PASS);
db.connect();
var sql;
var dtmf = new Object();
var replay = 1;

function mycb (session, type, data, arg) {

if (type == "dtmf") {
arg.digits += data.digit;
if (arg.digits.length >= 1) {
return false;
}
}
}

function get_route(digits)
{

sql = "select count(*) as count from conferences where pin = \""
+ digits +"\";";

var line = "====================================\n";

console_log("notice", "Menu Option Entered: " + digits +" \n sql
statment [" + sql + "]\n");
console_log("notice", line);

db.exec(sql);

while(db.nextRow()) {
var row = db.getData();
if (row["count"] >= 1) {
console_log("notice", "Found Conf Pin=[" +
digits + "]\n");
return digits;
} else {


and the odbc already running :

mashudi:/usr/local/freeswitch/scripts# isql -v DB
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>



Jonas Gauffin wrote:
Quote:
First you have to add

use("ODBC");

in your javascript.


On Thu, Aug 28, 2008 at 9:06 AM, mashudi <mashudiflexi@telkom.co.id>
wrote:

Quote:
Hi folks,
i try javascripts example for conference application and get this error,

2008-08-28 20:59:55 [ERR] mod_spidermonkey.c:3303 js_api_use() Error
loading ODBC
2008-08-28 20:59:55 [ERR] conference.js:10 mod_spidermonkey()
ReferenceError: ODBC is not defined

i have follow the instruction as documented on
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc.

please help.

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************




*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mashudiflexi at telkom...
Guest





PostPosted: Fri Aug 29, 2008 1:49 am    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

Hi Jonas.gauffin,
here is my configuration related to odbc ,

mashudi:/usr/local/freeswitch/conf/autoload_configs# more
spidermonkey.conf.xml
<configuration name="spidermonkey.conf" description="Spider Monkey
JavaScript Pl
ug-Ins">
<modules>
<load module="mod_spidermonkey_teletone"/>
<load module="mod_spidermonkey_core_db"/>
<load module="mod_spidermonkey_socket"/>
<load module="mod_spidermonkey_odbc"/>
</modules>
</configuration>


jonas.gauffin@gmail.com wrote:
Quote:
Have you specified in fs\conf\autoload_configs\spidermonkey.conf.xml
that odbc should be loaded?

On 8/29/08, mashudi <mashudiflexi@telkom.co.id> wrote:

Quote:
it is already

use("ODBC");


var DSN = "DB";
var DB_USER = "conce";
var DB_PASS = "password";

var line = "====================================\n";

var db = new ODBC(DSN, DB_USER, DB_PASS);
db.connect();
var sql;
var dtmf = new Object();
var replay = 1;

function mycb (session, type, data, arg) {

if (type == "dtmf") {
arg.digits += data.digit;
if (arg.digits.length >= 1) {
return false;
}
}
}

function get_route(digits)
{

sql = "select count(*) as count from conferences where pin = \""
+ digits +"\";";

var line = "====================================\n";

console_log("notice", "Menu Option Entered: " + digits +" \n sql
statment [" + sql + "]\n");
console_log("notice", line);

db.exec(sql);

while(db.nextRow()) {
var row = db.getData();
if (row["count"] >= 1) {
console_log("notice", "Found Conf Pin=[" +
digits + "]\n");
return digits;
} else {


and the odbc already running :

mashudi:/usr/local/freeswitch/scripts# isql -v DB
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL>



Jonas Gauffin wrote:

Quote:
First you have to add

use("ODBC");

in your javascript.


On Thu, Aug 28, 2008 at 9:06 AM, mashudi <mashudiflexi@telkom.co.id>
wrote:


Quote:
Hi folks,
i try javascripts example for conference application and get this error,

2008-08-28 20:59:55 [ERR] mod_spidermonkey.c:3303 js_api_use() Error
loading ODBC
2008-08-28 20:59:55 [ERR] conference.js:10 mod_spidermonkey()
ReferenceError: ODBC is not defined

i have follow the instruction as documented on
http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc.

please help.

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************



*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se-Jabodetabek, Banten, Karawang dan
Purwakarta.
*****************************************




*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mike at jerris.com
Guest





PostPosted: Fri Aug 29, 2008 9:32 am    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

On Aug 29, 2008, at 2:58 AM, mashudi wrote:

Quote:
Hi Jonas.gauffin,
here is my configuration related to odbc ,

mashudi:/usr/local/freeswitch/conf/autoload_configs# more
spidermonkey.conf.xml
<configuration name="spidermonkey.conf" description="Spider Monkey
JavaScript Pl
ug-Ins">
<modules>
<load module="mod_spidermonkey_teletone"/>
<load module="mod_spidermonkey_core_db"/>
<load module="mod_spidermonkey_socket"/>
<load module="mod_spidermonkey_odbc"/>
</modules>
</configuration>



does mod_spidermonkey_odbc.so exist in the prefix/mods directory and
do you get any messages about it when you load?

mike

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mashudiflexi at telkom...
Guest





PostPosted: Sun Aug 31, 2008 8:57 pm    Post subject: [Freeswitch-users] ODBC spidermonkey Reply with quote

Michael Jerris wrote:
Quote:
On Aug 29, 2008, at 2:58 AM, mashudi wrote:


Quote:
Hi Jonas.gauffin,
here is my configuration related to odbc ,

mashudi:/usr/local/freeswitch/conf/autoload_configs# more
spidermonkey.conf.xml
<configuration name="spidermonkey.conf" description="Spider Monkey
JavaScript Pl
ug-Ins">
<modules>
<load module="mod_spidermonkey_teletone"/>
<load module="mod_spidermonkey_core_db"/>
<load module="mod_spidermonkey_socket"/>
<load module="mod_spidermonkey_odbc"/>
</modules>
</configuration>




does mod_spidermonkey_odbc.so exist in the prefix/mods directory and
do you get any messages about it when you load?

mike

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se-Jabodetabek, Banten, Karawang dan
Purwakarta.
*****************************************


thank's this problem solved,we uncomment modules.conf.xml for
<load module="mod_spidermonkey_odbc"/>


*****************************************
Flexi-Gratis bicara sepanjang waktu se-Jawa Barat,
Banten dan DKI Jakarta.

Speedy-Gratis Internetan unlimited dari Pkl. 20.00
s/d 8.00 se- Jabodetabek, Banten, Karawang dan
Purwakarta
*****************************************

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services