[Freeswitch-dev] FreeSWITCH-dev Digest, Vol 64, Issue 19

Peter Olsson peter.olsson at visionutveckling.se
Mon Oct 24 08:56:17 MSD 2011


I build FS on Windows every day, I rarely have problems with it, and if a problem occurs it's mostly because of a change in the code that works on Linux, but not Windows - but these kind of problems are usually fixed later the same day (or i just submit a patch, and it will be applied soon enough).

Last time I did a complete rebuild of FS (with no libs downloaded) I also found some problems with openssl (but this has only happened once), but I just removed the openssl-folder and rebuilt, and everything worked, the rest of the things you mention here I've never heard of before. My guess is you have problems related to antivirus or UAC on your machine, but I will try to do a complete new rebuild today, and see how it looks for me - I'll get back to you after that.

Also, please don't hijack other threads, send a new mail the next time, instead of replying to a digest mail.

/Peter
________________________________________
Från: freeswitch-dev-bounces at lists.freeswitch.org [freeswitch-dev-bounces at lists.freeswitch.org] för marco blaisou [blaisounou at gmail.com]
Skickat: den 23 oktober 2011 17:13
Till: freeswitch-dev at lists.freeswitch.org
Ämne: Re: [Freeswitch-dev] FreeSWITCH-dev Digest, Vol 64, Issue 19

COMPILING FREESWITCH ON WINDOWS 7 FROM THE GIT
-----------------------------------------------------------------------------------------

Hi guys, just to give you some update from the trenches and give you some update on
compiling FreeSwitch on Windows from the git.(what a journey!!!)

I can tell you that so far, it appeared to be one of the most frustrating experience in
building a system from a git: files are missing or are not loaded properly as they should...

So after a few nights of sctatching my head, here is the status:


Building on Windows from a git repository
-------------------------------------------------------------

After git cloning the repository, open vs2008 solution then:

Stop Comodo or any firewall and virus detection
(if not this screws up download scripts giving: util.vbs(184, 2) msxml3.dll errors)

0) launch build

1) insure all the supposed dowloaded directories are present. (!!!!!!!!!!!!! VITAL !!!!!!!!)
Actually there are some problems:

-> issue with opensssl download
-------------------------------------------------
for a strange reason after autodownload  the untar is not complete, resulting in missing subdirectory
So make sure to do it by hand if necessary

-> issue with CELT download
-------------------------------------------
MUST change prebuilt instructions to :
if not exist "$(ProjectDir)..\celt-0.10.0" cscript /nologo "$(ProjectDir)util.vbs" GetUnzip http://files.freeswitch.org/downloads/libs/celt-0.10.0.tar.gz "$(ProjectDir).."
xcopy "$(ProjectDir)\celt\config.h" "$(ProjectDir)..\celt-0.10.0\libcelt\" /C /D /Y /S /I
xcopy "$(ProjectDir)\celt\float_cast.h" "$(ProjectDir)..\celt-0.10.0\libcelt\" /C /D /Y /S /I


2) if you uses Windows sdk 7.1

edit fake-rfc2533.h and comment out :

#ifdef nodef // *****add this
#ifndef HAVE_STRUCT_ADDRINFO

struct addrinfo {
int    ai_flags;    /* AI_PASSIVE, AI_CANONNAME */
int    ai_family;    /* PF_xxx */
int    ai_socktype;    /* SOCK_xxx */
int    ai_protocol;    /* 0 or IPPROTO_xxx for IPv4 and IPv6 */
size_t    ai_addrlen;    /* length of ai_addr */
char    *ai_canonname;    /* canonical name for hostname */
struct sockaddr *ai_addr;    /* binary address */
struct addrinfo *ai_next;    /* next structure in linked list */
};
#endif /* !HAVE_STRUCT_ADDRINFO */

#endif      // *****add this


3) if issue with folder: sofia-sip
cannot include file sip-extra.h ???????????????????????????????????????

(I'm fed up with this so I just decided to get it from a tar)

4) pb on compile : libsndfile

in sofia_presence.c
    if (mod_sofia_globals.debug_presence > 1) {
        int i;                    // to be added
        for (i = 0; i < argc; i++) {

//----------------------------------------------------------------------------------

That's it for the time being, most of the stuff (but not ALL) now compile
and I'll try to focus on other pending issues.

OBVIOUSLY ANY ADVICE IS MORE THEN WELCOME !!!!

2011/10/23 <freeswitch-dev-request at lists.freeswitch.org<mailto:freeswitch-dev-request at lists.freeswitch.org>>
Send FreeSWITCH-dev mailing list submissions to
       freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
or, via email, send a message with subject or body 'help' to
       freeswitch-dev-request at lists.freeswitch.org<mailto:freeswitch-dev-request at lists.freeswitch.org>

You can reach the person managing the list at
       freeswitch-dev-owner at lists.freeswitch.org<mailto:freeswitch-dev-owner at lists.freeswitch.org>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of FreeSWITCH-dev digest..."

Today's Topics:

  1. == ISSUE building FreeSwitch on Windows (marco blaisou)
  2. Re: Strange behaviour in SOFIA SIP (Visciano Giovanni)
  3. Re: == ISSUE building FreeSwitch on Windows (Peter Olsson)


---------- Message transféré ----------
From: marco blaisou <blaisounou at gmail.com<mailto:blaisounou at gmail.com>>
To: freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>
Date: Sat, 22 Oct 2011 16:59:56 +0200
Subject: [Freeswitch-dev] == ISSUE building FreeSwitch on Windows
Hi guys,
For the few days I've been unsuccesfull in building FreeSwith on Windows 7

I did follow the Wiki line per line, but some thing is really going wrong:
> apparently the files in /libs directory are not loaded from the net (ie the util.vbs does seem to load and unpack the libs)
error is : freeswitch\libs\win32\util.vbs(184, 2) msxml3.dll: Le système ne trouve pas la ressource spécifiée (ie system doesn't find specified resource)

> then obviously the compiler starts complaining about missing stuff such as:
c:\users\jc\desktop\voip\freeswitch\freeswitch\src\mod\endpoints\mod_sofia\mod_sofia.h(47) : fatal error C1083: Cannot open include file: 'switch_version.h': No such file or directory

To summarize:
I loaded the FreeSwitch git repository with TortoiseGit

My config is :
Windows 7/64bits
VSC2008 sp1
Windows SDK 7.1

My firewall is desactivated as suggested

I did follow the recommendation to clear some files:
del libs\apr\include\apr.h
del libs\js\config.h
del libs\js\src\jsautocfg.h
del libs\js\nsprpub\pr\include\prcpucfg.h
del libs\iksemel\include\config.h
del libs\xmlrpc-c\xmlrpc_config.h
del libs\libsndfile\src\sfconfig.h
del libs\sofia-sip\libsofia-sip-ua\su\sofia-sip\su_configure.h
del libs\js\nsprpub\pr\include\prcpucfg.h

cd libs\win32\libsndfile
rename config.h sfconfig.h

Could a guru provide some hints on how to solve this???
Thanks




---------- Message transféré ----------
From: "Visciano Giovanni" <Giovanni.Visciano at italtel.it<mailto:Giovanni.Visciano at italtel.it>>
To: <freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>>
Date: Sat, 22 Oct 2011 20:30:06 +0200
Subject: Re: [Freeswitch-dev] Strange behaviour in SOFIA SIP
Now I understand.
If both legs use the same codec, the codec ("fake") will be used in a pass-through way,
so no additional transcoding is applied, as in PROXY PASS-THROUGH condition.

So let me reason in a default media scenario (no proxy-media).

Now, as I explained in the first mail, sofia build "ep_codec_string" (SWITCH_
ORIGINATOR_CODEC_VARIABLE) as the intersection between the codec list received
in SDP offer and the codec loaded in the core.
So if the offered SDP codec list is NOT a subset of the loaded core codecs the other
legs will miss some codecs proposed by the calling endpoint.
That said, if I want to be sure every codecs my endpoint support won't be filtered I
have to register a "fake" pass-through codec for each one.

... you did not answer to my last question :).
I haven't found any other endpoint module the can interwork in PROXY mode with
sofia (even h323 doesn't support this). My question: is there a standard/
recommended way to exchange capability between endpoint of different nature in FS
proxy mode? Maybe using SDP o/a as done in sofia sip?

Thank you again for you help.
Giovanni


-----Original Message-----
From: freeswitch-dev-bounces at lists.freeswitch.org<mailto:freeswitch-dev-bounces at lists.freeswitch.org> on behalf of Anthony Minessale
Sent: Sat 10/22/2011 4:48 PM
To: freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>
Subject: Re: [Freeswitch-dev] Strange behaviour in SOFIA SIP

that's what I was trying to explain.
PROXY mode does not let you manipulate anything, it's pure
pass-through negotiation between the endpoints.

All the stuff with ep_codec_string are relevant only when you are not
trying to use proxy mode.
This is a common mistake people make assuming not using proxy mode
means somehow doing more work but it's not the case, any time both
legs of a call use the same codec it's equally efficient to what you
end up with in proxy mode.  proxy mode simply means take the inbound
SDP and offer it AS IS to the far end and vice-versa and use a fake
codec in the middle that is agnostic.



On Fri, Oct 21, 2011 at 10:36 AM, Visciano Giovanni
<Giovanni.Visciano at italtel.it<mailto:Giovanni.Visciano at italtel.it>> wrote:
> Hello Anthony.
> Maybe I want not so clear, let me explain.
>
> I do not want to apply any codec manipulation, I'm working on a prototype endpoint module that has "proxy media capabilty" and wants to interoperate with other endpoints.
> What I saw is that in a sofia vs sofia call (proxy mode+late negotiation) they exchange through FS calling/called endpoint capability looking at SDP session carried by channel variables, so internally they use SDP O/A scheme.
> I thought that "ep_codec_string"->SWITCH_ORIGINATOR_CODEC_VARIABLE could be used to exchange capability without using a protocol specific format (SDP).
> If this is not the case, what's the right way to negotiate capability between endpoints in proxy mode?
>
> Than you.
> Giovanni
>
> PS: I did not find any existing endpoint except sofia that support this. Am I right?
>
> -----Original Message-----
> From: freeswitch-dev-bounces at lists.freeswitch.org<mailto:freeswitch-dev-bounces at lists.freeswitch.org> on behalf of Anthony Minessale
> Sent: Fri 10/21/2011 5:06 PM
> To: freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>
> Subject: Re: [Freeswitch-dev] Strange behaviour in SOFIA SIP
>
> any codec manipulation techniques and proxy media mode are not
> compatible.  Proxy media mode means stay completely out of the codec
> negotiation process.
>
> On Thu, Oct 20, 2011 at 3:11 PM, Visciano Giovanni
> <Giovanni.Visciano at italtel.it<mailto:Giovanni.Visciano at italtel.it>> wrote:
>> Preconditions on sip profile
>> ----------------------------
>> inbound-codec-prefs NOT set
>> outbound-codec-prefs NOT set
>> inbound-proxy-media=TRUE
>> inbound-bypass-media=FALSE
>> inbound-late-negotiation=TRUE + inherit_codec=TRUE
>>
>> TEST scenario
>> -------------
>> SIP phone send INVITE with SDP to FS
>>
>> INVITE
>> SDP[codelist=PCMA, PCMU, G722, G729] --> FS
>>
>> FS has just the CORE_PC_MODULE [PCMA, PCMU, PASS-THR, VIDEO-PASS-THR, L16]
>>
>> The "ep_codec_string" channel variable is loaded with [PCMA, PCMU]
>>
>> EXPECTED
>> --------
>> In "proxy-media + late-negotiation" scenario:
>> ep_codec_string=[PCMA,PCMU,G722,G729]
>>
>> PROBLEM
>> -------
>> According to the documentation
>> (http://wiki.freeswitch.org/wiki/Codec_negotiation):
>>
>> "ep_codec_string: This variable is only available if late negotiation is
>> enabled on the profile. It's a readable string containing all the codecs
>> proposed by the calling endpoint."
>> and
>> "inherit_codec=true (only applicable when late-negotiation is enabled) will
>> take the codec negotiated when the B leg answers and pass it to the A leg so
>> it also uses the same codec (if the A leg supports it); otherwise, it will
>> use whatever it can from its own list"
>>
>> The variable ep_codec_string doesn't contain ALL the codecs proposed by the
>> calling endpoint. It contains the intersection between the codecs proposed
>> by the calling and the codecs loaded in FS.
>> In proxy-media / no-media configuration the called endpoint doesn't have the
>> calling codec list so he can't negotiate using all the capabilities
>> available.
>> (I'm working on a test endpoint module that should work in proxy and
>> no-media configuration ... mod_sofia vs mod_sofia works because they look at
>> the remote sdp variable)
>>
>> Source reference - sofia_glue.c->sofia_glue_set_r_sdp_codec_string()
>>
>>
>> Regards,
>> Giovanni
>>
>>
>>
>> Internet Email Confidentiality Footer
>>
>> ********************************************************************************************************************************************
>>
>> La presente comunicazione, con le informazioni in essa contenute e ogni
>> documento o file allegato, e' rivolta unicamente alla/e persona/e cui e'
>> indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete
>> i destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
>> comunicazione, divulgazione o simili basate sul contenuto di tali
>> informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P.,
>> D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se
>> avete ricevuto questa comunicazione per errore, vi preghiamo di darne
>> immediata notizia al mittente e di distruggere il messaggio originale e ogni
>> file allegato senza farne copia alcuna o riprodurne in alcun modo il
>> contenuto.
>>
>> This e-mail and its attachments are intended for the addressee(s) only and
>> are confidential and/or may contain legally privileged information. If you
>> have received this message by mistake or are not one of the addressees
>> above, you may take no action based on it, and you may not copy or show it
>> to anyone; please reply to this e-mail and point out the error which has
>> occurred.
>> ********************************************************************************************************************************************
>>
>> _______________________________________________
>> Join us at ClueCon 2011, Aug 9-11, Chicago
>> http://www.cluecon.com 877-7-4ACLUE
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>>
>
>
>
> --
> Anthony Minessale II
>
> FreeSWITCH http://www.freeswitch.org/
> ClueCon http://www.cluecon.com/
> Twitter: http://twitter.com/FreeSWITCH_wire
>
> AIM: anthm
> MSN:anthony_minessale at hotmail.com<mailto:MSN%3Aanthony_minessale at hotmail.com>
> GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
> IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch
>
> FreeSWITCH Developer Conference
> sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>
> googletalk:conf+888 at conference.freeswitch.org<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
> pstn:+19193869900<tel:%2B19193869900>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
>
> _______________________________________________
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net<http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>
googletalk:conf+888 at conference.freeswitch.org<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:+19193869900<tel:%2B19193869900>

_______________________________________________
Join us at ClueCon 2011, Aug 9-11, Chicago
http://www.cluecon.com 877-7-4ACLUE

FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org




---------- Message transféré ----------
From: Peter Olsson <peter.olsson at visionutveckling.se<mailto:peter.olsson at visionutveckling.se>>
To: "freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>" <freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>>
Date: Sun, 23 Oct 2011 08:42:42 +0200
Subject: Re: [Freeswitch-dev] == ISSUE building FreeSwitch on Windows
I believe that you might be missing some system dll's on your machine.

msxml3.dll is something that should exist on your computer, and I think the download script is depending on it.

/Peter
________________________________________
Från: freeswitch-dev-bounces at lists.freeswitch.org<mailto:freeswitch-dev-bounces at lists.freeswitch.org> [freeswitch-dev-bounces at lists.freeswitch.org<mailto:freeswitch-dev-bounces at lists.freeswitch.org>] f&#246;r marco blaisou [blaisounou at gmail.com<mailto:blaisounou at gmail.com>]
Skickat: den 22 oktober 2011 16:59
Till: freeswitch-dev at lists.freeswitch.org<mailto:freeswitch-dev at lists.freeswitch.org>
Ämne: [Freeswitch-dev] == ISSUE building FreeSwitch on Windows

Hi guys,
For the few days I've been unsuccesfull in building FreeSwith on Windows 7

I did follow the Wiki line per line, but some thing is really going wrong:
> apparently the files in /libs directory are not loaded from the net (ie the util.vbs does seem to load and unpack the libs)
error is : freeswitch\libs\win32\util.vbs(184, 2) msxml3.dll: Le système ne trouve pas la ressource spécifiée (ie system doesn't find specified resource)

> then obviously the compiler starts complaining about missing stuff such as:
c:\users\jc\desktop\voip\freeswitch\freeswitch\src\mod\endpoints\mod_sofia\mod_sofia.h(47) : fatal error C1083: Cannot open include file: 'switch_version.h': No such file or directory

To summarize:
I loaded the FreeSwitch git repository with TortoiseGit

My config is :
Windows 7/64bits
VSC2008 sp1
Windows SDK 7.1

My firewall is desactivated as suggested

I did follow the recommendation to clear some files:
del libs\apr\include\apr.h
del libs\js\config.h
del libs\js\src\jsautocfg.h
del libs\js\nsprpub\pr\include\prcpucfg.h
del libs\iksemel\include\config.h
del libs\xmlrpc-c\xmlrpc_config.h
del libs\libsndfile\src\sfconfig.h
del libs\sofia-sip\libsofia-sip-ua\su\sofia-sip\su_configure.h
del libs\js\nsprpub\pr\include\prcpucfg.h

cd libs\win32\libsndfile
rename config.h sfconfig.h

Could a guru provide some hints on how to solve this???
Thanks






_______________________________________________
FreeSWITCH-dev mailing list
FreeSWITCH-dev at lists.freeswitch.org<mailto:FreeSWITCH-dev at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org


!DSPAM:4ea488b232761113570065!



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list