Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Help! No output to CLI with console_log()


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





PostPosted: Wed Oct 29, 2008 1:23 am    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

I'm trying to get output to my CLI in Windows XP when running this script by dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.
What's wrong with console_log("Hello World!\n") ? Where has the output gone?


console_log("Hello World!\n");

var languageCode = "en";
var soundDir = "sound/";

function playFile(fileName, callBack, callBackArgs)
{
session.streamFile(soundDir + languageCode + "/" + fileName);
}

session.answer();
playFile("HelloWorld.wav");
exit();
McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!
Back to top
mszlazak at aol.com
Guest





PostPosted: Wed Oct 29, 2008 3:27 am    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

I changed console_log("Hello World!\n") to console_log("debug", "Hello World!\n") and that didn't work either. Finally, I got console_log("notice", "Hello World!\n") to output to the CLI.
Where is the output with "debug" going?





-----Original Message-----
From: mszlazak@aol.com
To: freeswitch-users@lists.freeswitch.org
Sent: Tue, 28 Oct 2008 11:14 pm
Subject: [Freeswitch-users] Help! No output to CLI with console_log() from script

I'm trying to get output to my CLI in Windows XP when running this script by dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.
What's wrong with console_log("Hello World!\n") ? Where has the output gone?


console_log("Hello World!\n");

var languageCode = "en";
var soundDir = "sound/";

function playFile(fileName, callBack, callBackArgs)
{
session.streamFile(soundDir + languageCode + "/" + fileName);
}

session.answer();
playFile("HelloWorld.wav");
exit();

McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!
Back to top
mklein at nmedia.net
Guest





PostPosted: Wed Oct 29, 2008 3:37 am    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

You can enter fsctl loglevel 7 for debug output in the CLI.


It looks like your configuration for the loglevel of CLI output is set too low.

http://wiki.freeswitch.org/wiki/Troubleshooting_Freeswitch#Increase_Debug_Output


m


On Wed, 29 Oct 2008, mszlazak@aol.com wrote:

Quote:

I changed console_log("Hello World!\n") to console_log("debug", "Hello World!\n") and that didn't work either. Finally, I got console_log("notice", "Hello World!\n") to output to the CLI.
Where is the output with "debug" going?







-----Original Message-----
From: mszlazak@aol.com
To: freeswitch-users@lists.freeswitch.org
Sent: Tue, 28 Oct 2008 11:14 pm
Subject: [Freeswitch-users] Help! No output to CLI with console_log() from script









I'm trying to get output to my CLI in Windows XP when running this script by dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.

What's wrong with console_log("Hello World!\n") ? Where has the output gone?





console_log("Hello World!\n");



var languageCode = "en";

var soundDir = "sound/";



function playFile(fileName, callBack, callBackArgs)

{

??? session.streamFile(soundDir + languageCode +? "/" + fileName);

}



session.answer();

playFile("HelloWorld.wav");

exit();





McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!









_______________________________________________
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
mszlazak at aol.com
Guest





PostPosted: Wed Oct 29, 2008 4:08 am    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

Thanks for the pointer. The fsctl loglevel 7 didn't seem to work but console loglevel 7 did.




-----Original Message-----
From: Matt Klein <mklein@nmedia.net>
To: freeswitch-users@lists.freeswitch.org
Sent: Wed, 29 Oct 2008 1:28 am
Subject: Re: [Freeswitch-users] Help! No output to CLI with console_log() from script

Quote:

You can enter fsctl loglevel 7 for debug output in the CLI.


It looks like your configuration for the loglevel of CLI output is set too low.

http://wiki.freeswitch.org/wiki/Troubleshooting_Freeswitch#Increase_Debug_Output


m


On Wed, 29 Oct 2008, mszlazak@aol.com (mszlazak@aol.com) wrote:

Quote:

I changed console_log("Hello World!\n") to console_log("debug", "Hello
World!\n") and that didn't work either. Finally, I got console_log("notice",
"Hello World!\n") to output to the CLI.
Quote:
Where is the output with "debug" going?







-----Original Message-----
From: mszlazak@aol.com (mszlazak@aol.com)
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Sent: Tue, 28 Oct 2008 11:14 pm
Subject: [Freeswitch-users] Help! No output to CLI with console_log() from
script
Quote:









I'm trying to get output to my CLI in Windows XP when running this script by
dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.
Quote:

What's wrong with console_log("Hello World!\n") ? Where has the output gone?





console_log("Hello World!\n");



var languageCode = "en";

var soundDir = "sound/";



function playFile(fileName, callBack, callBackArgs)

{

??? session.streamFile(soundDir + languageCode +? "/" + fileName);

}



session.answer();

playFile("HelloWorld.wav");

exit();





McCain or Obama? Stay updated on coverage of the Presidential race while you
browse - Download Now!
Quote:









_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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

McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!
Back to top
anthony.minessale at g...
Guest





PostPosted: Wed Oct 29, 2008 8:16 am    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

fsctl loglevel is the global loglevel meaning when you change it it will effect all logger modules it's a system level command.
console loglevel is mod_console's log level. mod_console is a logger module that sits on the console and filters which lines will
print on the screen based on level and some string matching params found in its config.


On Wed, Oct 29, 2008 at 3:57 AM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:

Thanks for the pointer. The fsctl loglevel 7 didn't seem to work but console loglevel 7 did.




-----Original Message-----
From: Matt Klein <mklein@nmedia.net (mklein@nmedia.net)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Wed, 29 Oct 2008 1:28 am
Subject: Re: [Freeswitch-users] Help! No output to CLI with console_log() from script

Quote:

You can enter fsctl loglevel 7 for debug output in the CLI.


It looks like your configuration for the loglevel of CLI output is set too low.

http://wiki.freeswitch.org/wiki/Troubleshooting_Freeswitch#Increase_Debug_Output


m


On Wed, 29 Oct 2008, mszlazak@aol.com (mszlazak@aol.com) wrote:

Quote:

I changed console_log("Hello World!\n") to console_log("debug", "Hello
World!\n") and that didn't work either. Finally, I got console_log("notice",
"Hello World!\n") to output to the CLI.
Quote:
Where is the output with "debug" going?







-----Original Message-----
From: mszlazak@aol.com (mszlazak@aol.com)
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Sent: Tue, 28 Oct 2008 11:14 pm
Subject: [Freeswitch-users] Help! No output to CLI with console_log() from
script
Quote:









I'm trying to get output to my CLI in Windows XP when running this script by
dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.
Quote:

What's wrong with console_log("Hello World!\n") ? Where has the output gone?





console_log("Hello World!\n");



var languageCode = "en";

var soundDir = "sound/";



function playFile(fileName, callBack, callBackArgs)

{

??? session.streamFile(soundDir + languageCode +? "/" + fileName);

}



session.answer();

playFile("HelloWorld.wav");

exit();





McCain or Obama? Stay updated on coverage of the Presidential race while you
browse - Download Now!
Quote:









_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 (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




McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
mszlazak at aol.com
Guest





PostPosted: Wed Oct 29, 2008 12:29 pm    Post subject: [Freeswitch-users] Help! No output to CLI with console_log() Reply with quote

Hi Anthony,

Thanks for pointing out the distinction between the two.

I don't need to use "debug" now since any of the other levels work ("info", "notice", "warning", "err", "crit", "alert") but probably will later. What is the default setting? I changed it to loglevel 6 afterwards.

In any case, I not getting output with console_log() having no level specified??

Also, could you look at this post. The very last lines indicate a problem with hearing a lot of static on my .wav file. The static isn't there on any of the standard (non-FreeSWITCH) players.
The stuff prior is just my perspective as a newbie to FreeSWITCH (amoung other things) on the JavaScript Quickstart.



http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg05193.html

Cheers.

-----Original Message-----
From: Anthony Minessale <anthony.minessale@gmail.com>
To: freeswitch-users@lists.freeswitch.org
Sent: Wed, 29 Oct 2008 6:07 am
Subject: Re: [Freeswitch-users] Help! No output to CLI with console_log() from script

fsctl loglevel is the global loglevel meaning when you change it it will effect all logger modules it's a system level command.
console loglevel is mod_console's log level. mod_console is a logger module that sits on the console and filters which lines will
print on the screen based on level and some string matching params found in its config.


On Wed, Oct 29, 2008 at 3:57 AM, <mszlazak@aol.com (mszlazak@aol.com)> wrote:
Quote:

Thanks for the pointer. The fsctl loglevel 7 didn't seem to work but console loglevel 7 did.




-----Original Message-----
From: Matt Klein <mklein@nmedia.net (mklein@nmedia.net)>
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)


Sent: Wed, 29 Oct 2008 1:28 am
Subject: Re: [Freeswitch-users] Help! No output to CLI with console_log() from script

Quote:


You can enter fsctl loglevel 7 for debug output in the CLI.





It looks like your configuration for the loglevel of CLI output is set too low.



http://wiki.freeswitch.org/wiki/Troubleshooting_Freeswitch#Increase_Debug_Output





m





On Wed, 29 Oct 2008, mszlazak@aol.com (mszlazak@aol.com) wrote:




Quote:
I changed console_log("Hello World!\n") to console_log("debug", "Hello

World!\n") and that didn't work either. Finally, I got console_log("notice",

"Hello World!\n") to output to the CLI.

Quote:
Where is the output with "debug" going?








Quote:
-----Original Message-----

Quote:
From: mszlazak@aol.com (mszlazak@aol.com)

Quote:
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)

Quote:
Sent: Tue, 28 Oct 2008 11:14 pm

Quote:
Subject: [Freeswitch-users] Help! No output to CLI with console_log() from

script










Quote:
I'm trying to get output to my CLI in Windows XP when running this script by

dialing 8337 but the output "Hello World!" doesn't show up. The rest works fine.


Quote:
What's wrong with console_log("Hello World!\n") ? Where has the output gone?






Quote:
console_log("Hello World!\n");




Quote:
var languageCode = "en";


Quote:
var soundDir = "sound/";




Quote:
function playFile(fileName, callBack, callBackArgs)


Quote:
{


Quote:
??? session.streamFile(soundDir + languageCode +? "/" + fileName);


Quote:
}




Quote:
session.answer();


Quote:
playFile("HelloWorld.wav");


Quote:
exit();






Quote:
McCain or Obama? Stay updated on coverage of the Presidential race while you

browse - Download Now!










Quote:
_______________________________________________

Quote:
Freeswitch-users mailing list

Quote:
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)

Quote:
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

Quote:
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

Quote:
http://www.freeswitch.org









_______________________________________________

Freeswitch-users mailing list

Freeswitch-users@lists.freeswitch.org (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





McCain or Obama? Stay updated on coverage of the Presidential race while you browse - Download Now!


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400

Quote:
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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

McCain or Obama? Stay up to date on the latest from the campaign trail with AOL News.
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