[Freeswitch-users] FS compile error under Windows: error LNK2019

大泥人 qinglan_zeng at hotmail.com
Sun Nov 22 20:51:55 PST 2009


All,
 
I tried to compile FS source code under Windows while there are lots of errors:
 
Error LNK2019, external _imp_sleep at 4 can not be resolved, this function was referred by _tMCRTStartup.
 
Some other more similiar errors detail information attached.
 
Any ideas?
 
Thanks
Daniel Zeng
 
From: freeswitch-users-request at lists.freeswitch.org
Subject: FreeSWITCH-users Digest, Vol 41, Issue 146
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 22 Nov 2009 11:37:32 -0800

Send FreeSWITCH-users mailing list submissions to
	freeswitch-users at lists.freeswitch.org
 
To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
or, via email, send a message with subject or body 'help' to
	freeswitch-users-request at lists.freeswitch.org
 
You can reach the person managing the list at
	freeswitch-users-owner at lists.freeswitch.org
 
When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-users digest..."


--附转发的邮件--
From: mattdfong at gmail.com
To: freeswitch-users at lists.freeswitch.org
Date: Mon, 23 Nov 2009 01:48:50 +0700
Subject: [Freeswitch-users] Recording with Native File PCMU

I'm trying to conserve processor power by recording in native file format, PCMU in my case. It works great with the following line 


session:execute("record", "/tmp/my_recording."..session:getVariable("read_codec"));



however it fails to work with


session:execute("record_session", "/tmp/my_recording."..session:getVariable("read_codec"));
or 

record = api:execute("sched_api", '+1 none uuid_record '..session:getVariable("uuid")..' start /tmp/my_recording.'..session:getVariable("read_codec"));



Why is it that it works with record, but not with record_session or uuid_record? Is there something I'm over looking? In the latter two the consul reports


2009-11-22 18:39:04.265284 [INFO] mod_native_file.c:82 Opening File [/tmp/my_recording.PCMU] 8000hz



as if it's recording, but /tmp/my_recording.PCMU never shows up. However if I change it to .wav instead of .PCMU it works. Any ideas?


--matt


--附转发的邮件--
From: achaloyan at yahoo.com
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 22 Nov 2009 11:03:36 -0800
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP







Mike,

>Jira is the best, otherwise just mail me the patch and I'll take a look.
I've uploaded the patch against svn trunk to 
http://jira.freeswitch.org/browse/MODUNIMRCP-6

it's made for win32 debug only yet.

>Can you take a look at my last patch to the module to make it build please.
I see. I've not noticed this change introduces API change, makes no sense to me now. I'll provide more convenient solution soon.

Arsen.




From:
Michael Jerris <mike at jerris.com>
To: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org>
Sent: Sun, November 22, 2009 10:20:17 PM
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP



Jira is the best, otherwise just mail me the patch and I'll take a look.  Also, I just synced lib up to current trunk.  Can you take a look at my last patch to the module to make it build please.


Mike

On Nov 22, 2009, at 1:02 PM, Arsen Chaloyan <achaloyan at yahoo.com> wrote:






We discussed build integration related issues a few months ago with Mike and seemed to find a solution which would work for both UniMRCP and FreeSWITCH source trees.

Now I've just got a chance to look into this a bit closer trying to further complete VS2008 build integration in FreeSWITCH. So I've got it working, the module is not only being built, but also is getting loaded. Current build
integration is not as seamless as I want it to be, but probably we can start with what we have now and then discuss and identify what can be done in the future. This concerns not only build integration but overall integrity.

So would you be interested in the patch? Where should I upload it? 
I thought I had a Jira account, but not sure it exists any more.

-- 
Arsen Chaloyan
The author of
UniMRCP 
http://www.unimrcp.org






From: Jeff Lenk <jlenk at frontiernet.net>
To: freeswitch-users at lists.freeswitch.org
Sent: Fri,
November 20, 2009 7:59:28 PM
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP



That module is not currently being built for Windows. Also the library
unimrcp needs build integration work with FS to make that happen under
windows.


ss1 wrote:
> 
> Hi Everyone,
> 
> Please help freeswitch experts... !!!
> 
> i have been working on freeswitch from last 2 days. i have downloaded
> freeswitch and unimrcp (server + client) for windows.
> I tested the unimrcp client and server, which is running fine with the
> command: run synth and run recog. I got both synth.pcm & recog.pcm files.
> 
> But my objective is to call Freeswitch through x-lite, where freeswitch
> should call unimrcp client and return the PCM files.
> 
> I tried it alot, but unable to do it. after lots of reading i found that i
> do not have mod_unimrcp. i do not know from where to download it and how
> to merge it into freeswitch.
> 
> I would
be very thankful if you may help.
> 
> Thanks,
> ss
> 
> 

-- 
View this message in context: http://n2.nabble.com/need-help-Problem-with-freeswitch-uniMRCP-tp4031590p4038514.html
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--附转发的邮件--
From: Prometheus001 at gmx.net
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 22 Nov 2009 20:27:20 +0100
Subject: Re: [Freeswitch-users] Problems with Voicemail

I now created a file inbox.PCMA and get the following:
 
    * inbox.PCMA is played
    * the recorded voive mail file is not played (FS does not even try
      to do that)
    * then I hear
          o "to listen to the recording press 1"
          o "to save the recording press 2"
          o ...
 
Here's the debug output
2009-11-22 20:17:43.701098 [DEBUG] switch_core_io.c:660
sofia/internal/200 at sip1.mydomain.com receive message [TRANSCODING_NECESSARY]
2009-11-22 20:17:44.278600 [DEBUG] switch_ivr_play_say.c:1428 done
playing file
2009-11-22 20:17:44.386776 [INFO] mod_native_file.c:82 Opening File
[/usr/local/freeswitch/sounds/en/us/callie/inbox.PCMA] 8000hz
2009-11-22 20:17:45.201099 [DEBUG] switch_ivr_play_say.c:1428 done
playing file
2009-11-22 20:17:45.201099 [DEBUG] switch_ivr_play_say.c:118 No language
specified - Using [en]
2009-11-22 20:17:45.201099 [DEBUG] switch_ivr_play_say.c:273 Handle
play-file:[voicemail/vm-listen_to_recording.wav] (en:en)
2009-11-22 20:17:45.201099 [DEBUG] switch_ivr_play_say.c:1136 Codec
Activated L16 at 8000hz 1 channels 20ms
2009-11-22 20:17:45.201099 [DEBUG] switch_core_io.c:660
sofia/internal/200 at sip1.mydomain.com receive message [TRANSCODING_NECESSARY]
2009-11-22 20:17:46.419933 [DEBUG] switch_ivr_play_say.c:1428 done
playing file
 
nGrepping port 3306 I can see that the correct filenames are retrieved
from the mysql/odbc database:
1258894746.0.200.sip1.mydomain.com$d11c2a74-d766-11de-997b-bd7aecdc2a16.Gor
Nico.061035013113.inboxq/usr/local/freeswitch/storage/voicemail/default/sip1.mydomain.com/200/msg_c57a5e84-d766-11de-997b-bd7aecdc2a16.wav.4..B_NORMAL.....47
1258897120.0.200.sip1.mydomain.com$580dafee-d76c-11de-84d4-a1cd7fa320b3.Gor
Nico.061035013113.inboxq/usr/local/freeswitch/storage/voicemail/default/sip1.mydomain.com/200/msg_4d484a7e-d76c-11de-84d4-a1cd7fa320b3.wav.5..B_NORMAL.........
Both filenames can be read.
 
Best regards
Peter
 
Peter P GMX schrieb:
> I installed all sounds from SVN, but
>
> usr/local/freeswitch/sounds/en/us/callie/inbox.PCMA
>
> isn't there. I checked another, older installation and couldn't this
> file either.
>
> I think that freeswitch tries to build a sound path for the file to be
> played, and some parts of the path are missing.
> I expect it would play a recorded message at that time in
> /usr/local/freeswitch/storage/voicemail/default/${domain} and the
> defined format is "wav" not pcma.
>
> I also set "storage_dir" explicitely in the voicemail configs,but this
> also didn't help.
>
> Best regards
> Peter
>
>
> Brian West schrieb:
>   
>> I'm going to venture to guess maybe the file was recorded in a  
>> different codec and NOT pcma?
>>
>> /b
>>
>> On Nov 20, 2009, at 6:56 PM, Peter P GMX wrote:
>>
>>   
>>     
>>> 2009-11-20 23:16:53.592349 [ERR] mod_native_file.c:68 Error opening / 
>>> usr/local/freeswitch/sounds/en/us/callie/inbox.PCMA
>>>     
>>>       
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>   
 
 


--附转发的邮件--
From: achaloyan at yahoo.com
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 22 Nov 2009 11:36:59 -0800
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP







Mike, 
upgrade UniMRCP to http://code.google.com/p/unimrcp/source/detail?r=1297

and remove that  #if from mod_unimrcp. API is backward compatible now

src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
===================================================================
--- src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c    (revision 15605)
+++ src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c    (working copy)
@@ -3510,11 +3510,7 @@
     }
 
     /* Set up the media engine that will be shared with all profiles */
-#if UNI_VERSION_AT_LEAST(0,8,0)
-    media_engine = mpf_engine_create(1,
pool);
-#else
     media_engine = mpf_engine_create(pool);
-#endif
     if (media_engine) {
         mrcp_client_media_engine_register(client, media_engine, "MediaEngine");
     }

Arsen





From: Arsen Chaloyan <achaloyan at yahoo.com>
To: freeswitch-users at lists.freeswitch.org
Sent: Sun, November 22, 2009 11:03:36 PM
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP




Mike,

>Jira is the best, otherwise just mail me the patch and I'll take a look.
I've uploaded the patch against svn trunk to 
http://jira.freeswitch.org/browse/MODUNIMRCP-6

it's made for win32 debug only yet.

>Can you take a look at my last patch to the module to make it build please.
I see. I've not noticed this change introduces API change, makes no sense to me now. I'll provide more convenient solution soon.

Arsen.




From:
Michael Jerris <mike at jerris.com>
To: "freeswitch-users at lists.freeswitch.org" <freeswitch-users at lists.freeswitch.org>
Sent: Sun, November 22, 2009 10:20:17 PM
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP



Jira is the best, otherwise just mail me the patch and I'll take a look.  Also, I just synced lib up to current trunk.  Can you take a look at my last patch to the module to make it build please.


Mike

On Nov 22, 2009, at 1:02 PM, Arsen Chaloyan <achaloyan at yahoo.com> wrote:






We discussed build integration related issues a few months ago with Mike and seemed to find a solution which would work for both UniMRCP and FreeSWITCH source trees.

Now I've just got a chance to look into this a bit closer trying to further complete VS2008 build integration in FreeSWITCH. So I've got it working, the module is not only being built, but also is getting loaded. Current build
integration is not as seamless as I want it to be, but probably we can start with what we have now and then discuss and identify what can be done in the future. This concerns not only build integration but overall integrity.

So would you be interested in the patch? Where should I upload it? 
I thought I had a Jira account, but not sure it exists any more.

-- 
Arsen Chaloyan
The author of
UniMRCP 
http://www.unimrcp.org






From: Jeff Lenk <jlenk at frontiernet.net>
To: freeswitch-users at lists.freeswitch.org
Sent: Fri,
November 20, 2009 7:59:28 PM
Subject: Re: [Freeswitch-users] need help !! Problem with freeswitch & uniMRCP



That module is not currently being built for Windows. Also the library
unimrcp needs build integration work with FS to make that happen under
windows.


ss1 wrote:
> 
> Hi Everyone,
> 
> Please help freeswitch experts... !!!
> 
> i have been working on freeswitch from last 2 days. i have downloaded
> freeswitch and unimrcp (server + client) for windows.
> I tested the unimrcp client and server, which is running fine with the
> command: run synth and run recog. I got both synth.pcm & recog.pcm files.
> 
> But my objective is to call Freeswitch through x-lite, where freeswitch
> should call unimrcp client and return the PCM files.
> 
> I tried it alot, but unable to do it. after lots of reading i found that i
> do not have mod_unimrcp. i do not know from where to download it and how
> to merge it into freeswitch.
> 
> I would
be very thankful if you may help.
> 
> Thanks,
> ss
> 
> 

-- 
View this message in context: http://n2.nabble.com/need-help-Problem-with-freeswitch-uniMRCP-tp4031590p4038514.html
Sent from the freeswitch-users mailing list archive at Nabble.com.

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users at 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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org







搜索本应是快乐的,不是么? 快乐搜索,有问必应!微软隆重推出! 立即试用! 		 	   		  
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091123/4fb7f97a/attachment-0002.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile_error-2.JPG
Type: image/pjpeg
Size: 115300 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091123/4fb7f97a/attachment-0002.bin 


More information about the FreeSWITCH-users mailing list