10 Replies Last post: Sep 11, 2008 12:00 PM by joegen  
Click to view xbipin's profile   26 posts since
Sep 9, 2008

Sep 9, 2008 9:29 AM

openSBC giving compile error on win2k3 and win xp

just today i downloaded the latest CVS, thats on 9th sept and tried to compile using visual studio 2005 (8) sp1 and i get the following errors:

2>Generating Code...

2>Linking...

2>Main.obj : error LNK2019: unresolved external symbol \\\"public: __thiscall OpenSBCDaemon::OpenSBCDaemon(void)\\\" (??0OpenSBCDaemon@@QAE@XZ) referenced in function _WinMain@16

2>Main.obj : error LNK2019: unresolved external symbol \\\"public: virtual __thiscall OpenSBCDaemon::~OpenSBCDaemon(void)\\\" (??1OpenSBCDaemon@@UAE@XZ) referenced in function \\\"protected: static ?? :: ?? ::YAXXZ:: ?? `WinMain\\\'::`2\\\'::`dynamic atexit destructor for \\\'instance\\\'\\\'\\\" (??__Finstance@?1??WinMain@@9@16@YAXXZ)

2>SBCTrunk.obj : error LNK2019: unresolved external symbol \\\"public: class SBCTrunk * __thiscall OpenSBCDaemon::OnCreateTrunk(class SBCTrunkProcess *)\\\" (?OnCreateTrunk@OpenSBCDaemon@@QAEPAVSBCTrunk@@PAVSBCTrunkProcess@@@Z) referenced in function \\\"public: virtual class SBCTrunk * __thiscall SBCTrunkManager::OnCreateTrunk(class SBCTrunkProcess *)\\\" (?OnCreateTrunk@SBCTrunkManager@@UAEPAVSBCTrunk@@PAVSBCTrunkProcess@@@Z)

2>Registrar.obj : error LNK2019: unresolved external symbol \\\"public: __thiscall REGISTRAR::UpperRegistrar::UpperRegistrar(class SIP::SIPUserAgent &,class REGISTRAR::Registrar *)\\\" (??0UpperRegistrar@REGISTRAR@@QAE@AAVSIPUserAgent@SIP@@PAVRegistrar@1@@Z) referenced in function \\\"public: __thiscall REGISTRAR::Registrar::Registrar(class SIP::SIPUserAgent &,int)\\\" (??0Registrar@REGISTRAR@@QAE@AAVSIPUserAgent@SIP@@H@Z)

2>Release/OpenSBC.exe : fatal error LNK1120: 4 unresolved externals

2>Build log was saved at \\\"file://d:\\\\New Folder\\\\opensbc\\\\Release\\\\BuildLog.htm\\\"

2>OpenSBC - 5 error(s), 0 warning(s)

========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

opensipstack compiles fine

Guest
1. Sep 9, 2008 9:41 AM in response to: xbipin
RE: [OpenSIPStack] opensip stack giving compile error on win2k3

.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}

 
Just add OpenSBCDaemon.h, OpenSBCDaemon.cxx, UpperRegistrar.h, UpperRegistration.h, UpperRegistrar.cxx and UpperRegistration.cxx to the SBC project or use the OpenSBC.vcproj attached.
 


> Date: Tue, 9 Sep 2008 09:27:37 -0400
> From: opensipstack-devel@opensourcesip.org
> To: opensipstack-devel@lists.sourceforge.net
> Subject: OpenSIPStack opensip stack giving compile error on win2k3
>
> just today i downloaded the latest CVS, thats on 9th sept and tried to compile using visual studio 2005 (8) sp1 and i get the following errors:
>
> 2>Generating Code...
> 2>Linking...
> 2>Main.obj : error LNK2019: unresolved external symbol \"public: __thiscall OpenSBCDaemon::OpenSBCDaemon(void)\" (??0OpenSBCDaemon@@QAE@XZ) referenced in function _WinMain@16
> 2>Main.obj : error LNK2019: unresolved external symbol \"public: virtual __thiscall OpenSBCDaemon::~OpenSBCDaemon(void)\" (??1OpenSBCDaemon@@UAE@XZ) referenced in function \"protected: static ?? :: ?? ::YAXXZ:: ?? `WinMain\'::`2\'::`dynamic atexit destructor for \'instance\'\'\" (??__Finstance@?1??WinMain@@9@16@YAXXZ)
> 2>SBCTrunk.obj : error LNK2019: unresolved external symbol \"public: class SBCTrunk * __thiscall OpenSBCDaemon::OnCreateTrunk(class SBCTrunkProcess *)\" (?OnCreateTrunk@OpenSBCDaemon@@QAEPAVSBCTrunk@@PAVSBCTrunkProcess@@@Z) referenced in function \"public: virtual class SBCTrunk * __thiscall SBCTrunkManager::OnCreateTrunk(class SBCTrunkProcess *)\" (?OnCreateTrunk@SBCTrunkManager@@UAEPAVSBCTrunk@@PAVSBCTrunkProcess@@@Z)
> 2>Registrar.obj : error LNK2019: unresolved external symbol \"public: __thiscall REGISTRAR::UpperRegistrar::UpperRegistrar(class SIP::SIPUserAgent &,class REGISTRAR::Registrar *)\" (??0UpperRegistrar@REGISTRAR@@QAE@AAVSIPUserAgent@SIP@@PAVRegistrar@1@@Z) referenced in function \"public: __thiscall REGISTRAR::Registrar::Registrar(class SIP::SIPUserAgent &,int)\" (??0Registrar@REGISTRAR@@QAE@AAVSIPUserAgent@SIP@@H@Z)
> 2>Release/OpenSBC.exe : fatal error LNK1120: 4 unresolved externals
> 2>Build log was saved at \"file://d:
New Folder\\opensbc\\Release\\BuildLog.htm\"
> 2>OpenSBC - 5 error(s), 0 warning(s)
> ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
>
>
> opensipstack compiles fine
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> opensipstack-devel mailing list
> opensipstack-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel


Descargá ya gratis y viví la experiencia Windows Live. Descubre Windows Live

http://OpenSBC.vcproj
Attachments:
Click to view joegen's profile   136 posts since
Apr 28, 2007
3. Sep 9, 2008 8:55 PM in response to: xbipin
Re: RE: [OpenSIPStack] opensip stack giving compile error on win2k3
Were you able to run prior versions OpenSBC on this box in the past? Just wanted to eliminate whehter this is a general problem or a problem in this particular version.

Joegen

xbipin wrote:
thanks for the help, it compiles now but after installing it as service and then running it, it gives the web UI for a while then hangs and shutsdown and then if i manually start the service then it wont start again for some reason.
in the external opensipstack folder i have manually copied the libjingle, voiceage g729 source. during compile it says php sapi and python sapi as disabled

what i noticed was the following
i am using opensipstack 1.1.7
opensbc 1.1.5-10

if i run the opensbc.exe using debug parameter then everything works fine but if i install it as service and then try to start it then it wont, even doing so manually from the service manager and in debug mode, when u close it, it causes he VS debugger to start so basically it crashes at that time.
Click to view joegen's profile   136 posts since
Apr 28, 2007
4. Sep 10, 2008 12:02 AM in response to: joegen
Re: RE: [OpenSIPStack] opensip stack giving compile error on win2k3
Hi,

I've replicated this issue locally. This should now be fixed in CVS (update both opensbc and opensipstack). You must also take note that OpenSBC now stores its configuration and logs in

C:\Documents and Settings\LocalService\Application Data\OpenSIPStack\OpenSBC_data

for windows services. The LocalService folder is a special folder allotted by windows for services. You will not see it even if you set show hidden files in explorer options. You must key in the location manually in the address bar.

Joegen

joegen wrote:
Were you able to run prior versions OpenSBC on this box in the past? Just wanted to eliminate whehter this is a general problem or a problem in this particular version.

Joegen

xbipin wrote:
thanks for the help, it compiles now but after installing it as service and then running it, it gives the web UI for a while then hangs and shutsdown and then if i manually start the service then it wont start again for some reason.
in the external opensipstack folder i have manually copied the libjingle, voiceage g729 source. during compile it says php sapi and python sapi as disabled

what i noticed was the following
i am using opensipstack 1.1.7
opensbc 1.1.5-10

if i run the opensbc.exe using debug parameter then everything works fine but if i install it as service and then try to start it then it wont, even doing so manually from the service manager and in debug mode, when u close it, it causes he VS debugger to start so basically it crashes at that time.
Click to view joegen's profile   136 posts since
Apr 28, 2007
7. Sep 10, 2008 11:00 PM in response to: xbipin
Re: RE: [OpenSIPStack] opensip stack giving compile error on win2k3
This time to the correct thread:

Good find. It turns out that SetPrivateProfileString() function
truncates string with CRLF and TAB characters. I modified PConfig so
it escapes these characters before feeding it to
SetPrivateProfileString(). Please report more bugs as you find them.
I appreciate it.


xbipin wrote:
i tried it and it works fine without errors but i was trying to configure the sip trunk but the xml i paste in the sip trunk box in the web gui and click save then even after i restart opensbc, the box shows empty with just root and nothing else, it doesnt save the sip trunk config. is this part of the upper registration not working.

one more thing, while compiling the source, the 2 xml files are copied into the release folder but the prompts etc r not copied so basically they need to be added to the project so that they get copied to the release folder.

in the b2b route config, how to configure such as to dial sipbroker network as all their nubmers start with a * (asterisk) now if i use that in dial plan then its considered as wild card?
Click to view joegen's profile   136 posts since
Apr 28, 2007
10. Sep 11, 2008 12:00 PM in response to: xbipin
Re: RE: [OpenSIPStack] opensip stack giving compile error on win2k3
xbipin wrote:
how to make that ivr etc thingy work so cant figure it out nor can manage to run those php files in the solegy folder

This question is a potential red herring and has nothing to do with the subject of this thread. Please create a separate post for a different subject.

Anyway, the HTTP IVR code is not in user land yet. Please wait until I've announced it in the list. I promise to blog about it.

Joegen