[Freeswitch-users] FreeSwitch on WinXP

Brian Young ARA/CFD byoung at ara.com
Sun Feb 17 16:36:33 EST 2008


Runtime goes a little further with a release build. Little help with the
XML include errors or the crash?

---
Here is the runtime output:
Error including
d:\projects\emst\voip\freeswitch\trunk\release\conf\dialplan\extensions/
*.xml
Error including
d:\projects\emst\voip\freeswitch\trunk\release\conf\lang/*/*.xml
WARNING: no real random source present!
2008-02-17 16:30:00 [CONSOLE] switch_core.c:904
switch_core_init_and_modload() Bringing up environment.
2008-02-17 16:30:00 [CONSOLE] switch_core.c:905
switch_core_init_and_modload() Loading Modules.
2008-02-17 16:30:00 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [softtimer]
2008-02-17 16:30:00 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_console]
2008-02-17 16:30:00 [NOTICE] switch_loadable_module.c:245
switch_loadable_module_process() Adding API Function 'console'
2008-02-17 16:30:00 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_logfile]
2008-02-17 16:30:01 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_enum]
2008-02-17 16:30:01 [NOTICE] switch_loadable_module.c:189
switch_loadable_module_process() Adding Dialplan 'enum'
2008-02-17 16:30:01 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_cdr_csv]
2008-02-17 16:30:01 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded
[mod_event_socket]
2008-02-17 16:30:01 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_commands]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_conference]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_dptools]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_expr]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_fifo]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_voicemail]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_limit]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_esf]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded
[mod_dialplan_xml]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded
[mod_dialplan_asterisk]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_g711]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_g723_1]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_g729]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_g722]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_g726]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_gsm]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_amr]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_ilbc]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_l16]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_speex]
2008-02-17 16:30:02 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [mod_sndfile]
Press any key to continue . . . 


-Brian Young

-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Brian Young ARA/CFD
Sent: Wednesday, February 13, 2008 10:50 PM
To: freeswitch-users at lists.freeswitch.org
Subject: [Freeswitch-users] FreeSwitch on WinXP

I am running WinXP SP2, built latest trunk (rev 7602) with VS2005. I get
a very similar error to a post I found from October 2007
([Freeswitch-users] FeeSwitch doesn't start on windows 2003   Hassan
Firouzbakht). The thread indicates that issue was resolved though.

This is my first time using FreeSwitch (or any voip app for that matter)
so it may be I am missing something. I am using the default config
(havent yet modified anything from conf/*). I simply built the
FreeSwitchConsole project. Pls advise if there are required setup steps.
This page (http://wiki.freeswitch.org/wiki/Getting_Started_Guide) has a
section labelled "Preprocessor Variables" which says to update the sip
profile, but best I can gather that is now autodetected. Pls verify.

------------
Here is my stdout:
D:\Projects\EMST\VOIP\Freeswitch\trunk\debug>FreeSwitch.exe
Error including
D:\Projects\EMST\VOIP\Freeswitch\trunk\debug\conf\dialplan\extensions/*.
xml
Error including
D:\Projects\EMST\VOIP\Freeswitch\trunk\debug\conf\lang/*/*.xml
WARNING: no real random source present!
2008-02-13 22:23:50 [CONSOLE] switch_core.c:904
switch_core_init_and_modload() Bringing up environment.
2008-02-13 22:23:50 [CONSOLE] switch_core.c:905
switch_core_init_and_modload() Loading Modules.
2008-02-13 22:23:50 [CONSOLE] switch_loadable_module.c:749
switch_loadable_module_load_file() Successfully Loaded [softtimer]
------------
Here is stacktrace from the debugger:
>	FreeSwitch.dll!switch_hash_this(HashElem * hi=0xf2200000, const
void * * key=0x00000000, int * klen=0x00000000, void * * val=0x0012f48c)
Line 148 + 0x6 bytes	C
 	FreeSwitch.dll!switch_loadable_module_runtime()  Line 114 C
 	FreeSwitch.dll!switch_loadable_module_init()  Line 1058	C
 	FreeSwitch.dll!switch_core_init_and_modload(switch_core_flag_t
flags=SCF_USE_SQL, switch_bool_t console=SWITCH_TRUE, const char * *
err=0x0012fe20)  Line 906 + 0x5 bytes	C
 	FreeSwitch.exe!main(int argc=1, char * * argv=0x008f8fa0)  Line
475 + 0x23 bytes	C
 	FreeSwitch.exe!__tmainCRTStartup()  Line 597 + 0x19 bytes C
 	FreeSwitch.exe!mainCRTStartup()  Line 414	C
 	kernel32.dll!7c816fd7() 	
 	[Frames below may be incorrect and/or missing, no symbols loaded
for kernel32.dll]	
------------
I have noticed a very strange phenomena. You'll notice "hi" in the trace
above looks suspicious (0xf2200000). It is the value returned from
switch_hash_first(). But if you look at the value that hi should receive
(as far as I can gather) from the debugger "quick watch" below, which is
loadable_modules.module_hash.table.first (0x00e1f220) you'll see 2 bytes
(f220) match.
------------
-		loadable_modules.module_hash	0x00b00fa0 {table={...}
}	switch_hash *
-		table	{keyClass='' copyKey='' count=1 ...}	Hash
		keyClass	3 '?'	char
		copyKey	1 '?'	char
		count	1	int
+		first	0x00e1f220 {next=0x00000000 prev=0x00000000
data=0x00b016f0 ...}	HashElem *
		xMalloc	0x10081240 sqlite3MallocX(int)	void * (int)*
		xFree	0x10081220 sqlite3FreeX(void *)	void (void *)*
		htsize	8	int
+		ht	0x00afaee0 {count=0 chain=0x00000000 }	_ht *
------------
Almost appears to be some byte alignment issue... Any help getting
FreeSwitch up and running would be greatly appreciated.

-Brian



More information about the Freeswitch-users mailing list