TB
Tzury Bar Yochay
Tue, Jan 29, 2008 5:38 AM
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and
experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure
out what is wrong with the dependencies and build order and couldn't figure
out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to
know how.
Thanks,
Tzury
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and
experienced Link error such as below while compiling *pjsua_wince*.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure
out what is wrong with the dependencies and build order and couldn't figure
out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to
know how.
Thanks,
Tzury
VS
Vishesh Sharma
Tue, Jan 29, 2008 5:55 AM
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
- Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
- Make a config_site.h
- Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
- Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Tzury Bar Yochay
Sent: Tuesday, January 29, 2008 11:08 AM
To: pjsip@lists.pjsip.org
Subject: [pjsip] (still) struggling with Visual Studio 2005 And LinkageErrors
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
INFOSYS***** End of Disclaimer *****INFOSYS
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
2. Make a config_site.h
3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
________________________________
From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Tzury Bar Yochay
Sent: Tuesday, January 29, 2008 11:08 AM
To: pjsip@lists.pjsip.org
Subject: [pjsip] (still) struggling with Visual Studio 2005 And LinkageErrors
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling *pjsua_wince*.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
TB
Tzury Bar Yochay
Tue, Jan 29, 2008 6:16 AM
I recreate the whole thing from svn, followed the steps you described below
and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
- Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
- Make a config_site.h
- Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
- Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and
experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure
out what is wrong with the dependencies and build order and couldn't figure
out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to
know how.
Thanks,
Tzury
I recreate the whole thing from svn, followed the steps you described below
and it works!
you saved my life. thanks a billion.
> Hello Tzury,
>
> I synched with latest from SVN and encountered no such issues.
> I hope you're following the following 4 steps before compiling:
>
> 1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
> 2. Make a config_site.h
> 3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
> 4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
>
> Should you still face these problems feel free to contact me :)
>
> Thanks,
> Vishesh
>
>
On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> Hi All,
>
> I would like to know if anybody uses pjsip with visual studio 2005 and
> experienced Link error such as below while compiling *pjsua_wince*.
>
> errors:
> error LNK2019: unresolved external symbol
> error LNK2001: unresolved external symbol
>
> regarding:
> pjmedia_codec_wince.lib(gsm.obj)
> pjmedia_codec_wince.lib(speex_codec.obj)
> pjmedia_wince.lib(transport_srtp.obj)
> pjmedia_wince.lib(echo_speex.obj)
> and more...
>
>
> I have wasted already a whole day (and part of the night) trying to figure
> out what is wrong with the dependencies and build order and couldn't figure
> out.
> I assume this is a result of the conversion (vcp's to vcproj's).
>
> If you experienced such or alike and managed to solve them I would like to
> know how.
>
> Thanks,
> Tzury
>
VS
Vishesh Sharma
Tue, Jan 29, 2008 7:03 AM
Tzury,
You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
Benny,
On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
Correct me if I'm wrong
Thanks,
Vishesh
From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Tzury Bar Yochay
Sent: Tuesday, January 29, 2008 11:46 AM
To: pjsip@lists.pjsip.org; Vishesh Sharma
Subject: Re: [pjsip] (still) struggling with Visual Studio 2005 And LinkageErrors
I recreate the whole thing from svn, followed the steps you described below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
-
Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
-
Make a config_site.h
-
Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
-
Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.commailto:tzury.by@gmail.com> wrote:
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
INFOSYS***** End of Disclaimer *****INFOSYS
Tzury,
You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
Benny,
On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
Correct me if I'm wrong
Thanks,
Vishesh
________________________________
From: pjsip-bounces@lists.pjsip.org [mailto:pjsip-bounces@lists.pjsip.org] On Behalf Of Tzury Bar Yochay
Sent: Tuesday, January 29, 2008 11:46 AM
To: pjsip@lists.pjsip.org; Vishesh Sharma
Subject: Re: [pjsip] (still) struggling with Visual Studio 2005 And LinkageErrors
I recreate the whole thing from svn, followed the steps you described below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
2. Make a config_site.h
3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com<mailto:tzury.by@gmail.com>> wrote:
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling *pjsua_wince*.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
TB
Tzury Bar Yochay
Tue, Jan 29, 2008 9:01 AM
That's right,
network layout:
asterisk : 10.0.0.230
mobile device : 10.0.0.224
uid:202
pwd:202
extension:202
dumping here pjsua.txt (the log from the windows mobile 5 device).
10:13:02.000 sip_endpoint.c Module "mod-pjsua-log" registered
10:13:02.000 pjsua_core.c Nameserver 80.74.96.3 added
10:13:02.000 sip_endpoint.c Module "mod-tsx-layer" registered
10:13:02.000 sip_endpoint.c Module "mod-stateful-util" registered
10:13:02.000 sip_endpoint.c Module "mod-ua" registered
10:13:02.000 sip_endpoint.c Module "mod-100rel" registered
10:13:02.000 sip_endpoint.c Module "mod-pjsua" registered
10:13:02.000 sip_endpoint.c Module "mod-invite" registered
10:13:02.000 pasound.c PortAudio sound library initialized, status=0
10:13:02.000 pasound.c PortAudio host api count=2
10:13:02.000 pasound.c Sound device count=5
10:13:02.000 pjlib select() I/O Queue created (0023D004)
10:13:02.000 speex_codec.c Adjusting quality to 5 for uwb
10:13:03.000 conference.c Creating conference bridge with 254 ports
10:13:03.000 conference.c Sound device successfully created for port 0
10:13:03.000 sip_endpoint.c Module "mod-evsub" registered
10:13:03.000 sip_endpoint.c Module "mod-presence" registered
10:13:03.000 evsub.c Event pkg "presence" registered by mod-presence
10:13:03.000 sip_endpoint.c Module "mod-refer" registered
10:13:03.000 evsub.c Event pkg "refer" registered by mod-refer
10:13:03.000 sip_endpoint.c Module "mod-pjsua-pres" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-im" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-options" registered
10:13:03.000 pjsua_core.c 1 SIP worker threads created
10:13:03.000 pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
initialized
10:13:03.000 pjsua_core.c SIP UDP socket reachable at 10.0.0.224:5060
10:13:03.000 udp002FA7E0 SIP UDP transport started, published
address is 10.0.0.224:5060
10:13:03.000 pjsua_acc.c Account sip:10.0.0.224:5060 added with id 0
10:13:03.000 pjsua_acc.c Account sip:202@10.0.0.230 added with id 1
10:13:03.000 endpoint Request msg REGISTER/cseq=41912
(tdta002FD1D0) created.
10:13:03.000 tsx002FE244 Transaction created for Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:03.000 tsx002FE244 Sending Request msg REGISTER/cseq=41913
(tdta002FD1D0) in state Null
10:13:03.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:03.000 pjsua_core.c TX 360 bytes Request msg
REGISTER/cseq=41913 (tdta002FD1D0) to UDP 10.0.0.230:5060:
REGISTER sip:10.0.0.230 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000323482900
Route: sip:10.0.0.230;lr
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
Contact: sip:202@10.0.0.224:5060
Expires: 300
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 State changed from Null to Calling, event=TX_MSG
10:13:03.000 pjsua_acc.c Registration sent
10:13:03.000 icetp00 ICE stream transport created
10:13:03.000 icetp00 Candidate 10.0.0.224:4000 (type=Host)
added to component 1
10:13:03.000 icetp00 Candidate 10.0.0.224:4001 (type=Host)
added to component 2
10:13:03.000 icetp01 ICE stream transport created
10:13:03.000 icetp01 Candidate 10.0.0.224:4002 (type=Host)
added to component 1
10:13:03.000 icetp01 Candidate 10.0.0.224:4003 (type=Host)
added to component 2
10:13:03.000 icetp02 ICE stream transport created
10:13:03.000 icetp02 Candidate 10.0.0.224:4004 (type=Host)
added to component 1
10:13:03.000 icetp02 Candidate 10.0.0.224:4005 (type=Host)
added to component 2
10:13:03.000 icetp03 ICE stream transport created
10:13:03.000 icetp03 Candidate 10.0.0.224:4006 (type=Host)
added to component 1
10:13:03.000 icetp03 Candidate 10.0.0.224:4007 (type=Host)
added to component 2
10:13:03.000 pjsua_media.c pjsua_set_snd_dev(): attempting to open
devices @8000 Hz
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
100/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 421 bytes Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: sip:202@10.0.0.230
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) in state Calling
10:13:03.000 tsx002FE244 State changed from Calling to Proceeding,
event=RX_MSG
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
401/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 487 bytes Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230;tag=as3bc7d8fa
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5e4dddc2"
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) in state Proceeding
10:13:03.000 tsx002FE244 State changed from Proceeding to
Completed, event=RX_MSG
10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
not find credential for asterisk/Digest
10:13:03.000 pjsua_acc.c SIP registration error: No suitable
credential (PJSIP_ENOCREDENTIAL) [status=171101]
10:13:03.000 pasound.c Opened device M - Input(MME)/M -
Output(MME) for recording and playback, sample rate=8000, ch=1,
bits=16, 80 samples per frame, input latency=120 ms, output
latency=120 ms
10:13:03.000 pasound.c Starting M - Input stream..
10:13:03.000 pasound.c Player thread started
10:13:03.000 pasound.c Done, status=0
10:13:03.000 pasound.c Recorder thread started
10:13:05.000 pjsua_call.c Making call with acc #1 to sip:200@10.0.0.230:5060
10:13:05.000 dlg00380094 UAC dialog created
10:13:05.000 icetp00 ICE session created, comp_cnt=2, role is
Controlling agent
10:13:05.000 icetp00 Candidate 0 added: comp_id=1, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4000, base=10.0.0.224:4000,
prio=0x7effffff (2130706431)
10:13:05.000 icetp00 Candidate 1 added: comp_id=2, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4001, base=10.0.0.224:4001,
prio=0x7efffffe (2130706430)
10:13:05.000 dlg00380094 Module mod-invite added as dialog usage,
data=00383E54
10:13:05.000 dlg00380094 Session count inc to 2 by mod-invite
10:13:05.000 dlg00380094 Module mod-100rel added as dialog usage,
data=00384D50
10:13:05.000 dlg00380094 100rel module attached
10:13:05.000 inv00380094 UAC invite session created for dialog dlg00380094
10:13:05.000 endpoint Request msg INVITE/cseq=23806
(tdta00384EA0) created.
10:13:05.000 inv00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 dlg00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 tsx00386494 Transaction created for Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:05.000 tsx00386494 Sending Request msg INVITE/cseq=23805
(tdta00384EA0) in state Null
10:13:05.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:05.000 pjsua_core.c TX 1092 bytes Request msg
INVITE/cseq=23805 (tdta00384EA0) to UDP 10.0.0.230:5060:
INVITE sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230
Contact: sip:202@10.0.0.224:5060
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
Route: sip:10.0.0.230;lr
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
PUBLISH, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
Content-Type: application/sdp
Content-Length: 569
v=0
o=- 3410503985 3410503985 IN IP4 10.0.0.224
s=pjmedia
c=IN IP4 10.0.0.224
t=0 0
a=X-nat:0
a=ice-ufrag:2ae84828
a=ice-pwd:34a229f2
m=audio 4000 RTP/AVP 0 8 102 117 103 3 101
a=rtcp:4001 IN IP4 10.0.0.224
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:102 speex/8000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:103 speex/16000
a=rtpmap:3 GSM/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=candidate:Ha0000e0 1 UDP 2130706431 10.0.0.224 4000 typ host
a=candidate:Ha0000e0 2 UDP 2130706430 10.0.0.224 4001 typ host
--end msg--
10:13:05.000 tsx00386494 State changed from Null to Calling, event=TX_MSG
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Calling
10:13:05.000 sip_endpoint.c Processing incoming message: Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 pjsua_core.c RX 500 bytes Response msg
407/INVITE/cseq=23805 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000623482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="77ddcdc4"
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 Incoming Response msg
407/INVITE/cseq=23805 (rdata002FAC64) in state Calling
10:13:05.000 endpoint Request msg ACK/cseq=23805 (tdta00387BF0) created.
10:13:05.000 pjsua_core.c TX 320 bytes Request msg ACK/cseq=23805
(tdta00387BF0) to UDP 10.0.0.230:5060:
ACK sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 ACK
Route: sip:10.0.0.230;lr
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 State changed from Calling to Completed,
event=RX_MSG
10:13:05.000 dlg00380094 Received Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Completed
10:13:05.000 sip_auth_clien Unable to set auth for tdta00384EA0: can
not find credential for asterisk/Digest
10:13:05.000 icetp00 Destroying ICE session
10:13:05.000 dlg00380094 Session count dec to 1 by mod-invite
10:13:05.000 tdta00384EA0 Destroying txdata Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:06.000 ecsu002F867C Vad cur_threshold updated 4-->3. Signal lo=-1
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Completed to
Terminated, event=TIMER
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Terminated to
Destroyed, event=TIMER
10:13:08.000 tdta002FD1D0 Destroying txdata Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:08.000 tsx002FE244 Transaction destroyed!
10:13:08.000 sound_port.c EC suspended because of inactivity
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Completed to
Terminated, event=TIMER
10:13:37.000 dlg00380094 Transaction tsx00386494 state changed to Terminated
10:13:37.000 dlg00380094 Dialog destroyed
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Terminated to
Destroyed, event=TIMER
10:13:37.000 tdta00387BF0 Destroying txdata Request msg
ACK/cseq=23805 (tdta00387BF0)
10:13:37.000 tsx00386494 Transaction destroyed!
Tzury,
You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
Benny,
On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
Correct me if I'm wrong
Thanks,
Vishesh
On Jan 29, 2008 8:16 AM, Tzury Bar Yochay tzury.by@gmail.com wrote:
I recreate the whole thing from svn, followed the steps you described below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
-
Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
-
Make a config_site.h
-
Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
-
Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
That's right,
network layout:
asterisk : 10.0.0.230
mobile device : 10.0.0.224
uid:202
pwd:202
extension:202
dumping here pjsua.txt (the log from the windows mobile 5 device).
10:13:02.000 sip_endpoint.c Module "mod-pjsua-log" registered
10:13:02.000 pjsua_core.c Nameserver 80.74.96.3 added
10:13:02.000 sip_endpoint.c Module "mod-tsx-layer" registered
10:13:02.000 sip_endpoint.c Module "mod-stateful-util" registered
10:13:02.000 sip_endpoint.c Module "mod-ua" registered
10:13:02.000 sip_endpoint.c Module "mod-100rel" registered
10:13:02.000 sip_endpoint.c Module "mod-pjsua" registered
10:13:02.000 sip_endpoint.c Module "mod-invite" registered
10:13:02.000 pasound.c PortAudio sound library initialized, status=0
10:13:02.000 pasound.c PortAudio host api count=2
10:13:02.000 pasound.c Sound device count=5
10:13:02.000 pjlib select() I/O Queue created (0023D004)
10:13:02.000 speex_codec.c Adjusting quality to 5 for uwb
10:13:03.000 conference.c Creating conference bridge with 254 ports
10:13:03.000 conference.c Sound device successfully created for port 0
10:13:03.000 sip_endpoint.c Module "mod-evsub" registered
10:13:03.000 sip_endpoint.c Module "mod-presence" registered
10:13:03.000 evsub.c Event pkg "presence" registered by mod-presence
10:13:03.000 sip_endpoint.c Module "mod-refer" registered
10:13:03.000 evsub.c Event pkg "refer" registered by mod-refer
10:13:03.000 sip_endpoint.c Module "mod-pjsua-pres" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-im" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-options" registered
10:13:03.000 pjsua_core.c 1 SIP worker threads created
10:13:03.000 pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
initialized
10:13:03.000 pjsua_core.c SIP UDP socket reachable at 10.0.0.224:5060
10:13:03.000 udp002FA7E0 SIP UDP transport started, published
address is 10.0.0.224:5060
10:13:03.000 pjsua_acc.c Account <sip:10.0.0.224:5060> added with id 0
10:13:03.000 pjsua_acc.c Account sip:202@10.0.0.230 added with id 1
10:13:03.000 endpoint Request msg REGISTER/cseq=41912
(tdta002FD1D0) created.
10:13:03.000 tsx002FE244 Transaction created for Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:03.000 tsx002FE244 Sending Request msg REGISTER/cseq=41913
(tdta002FD1D0) in state Null
10:13:03.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:03.000 pjsua_core.c TX 360 bytes Request msg
REGISTER/cseq=41913 (tdta002FD1D0) to UDP 10.0.0.230:5060:
REGISTER sip:10.0.0.230 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000323482900
Route: <sip:10.0.0.230;lr>
Max-Forwards: 70
From: <sip:202@10.0.0.230>;tag=42610000000223482900
To: <sip:202@10.0.0.230>
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
Contact: <sip:202@10.0.0.224:5060>
Expires: 300
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 State changed from Null to Calling, event=TX_MSG
10:13:03.000 pjsua_acc.c Registration sent
10:13:03.000 icetp00 ICE stream transport created
10:13:03.000 icetp00 Candidate 10.0.0.224:4000 (type=Host)
added to component 1
10:13:03.000 icetp00 Candidate 10.0.0.224:4001 (type=Host)
added to component 2
10:13:03.000 icetp01 ICE stream transport created
10:13:03.000 icetp01 Candidate 10.0.0.224:4002 (type=Host)
added to component 1
10:13:03.000 icetp01 Candidate 10.0.0.224:4003 (type=Host)
added to component 2
10:13:03.000 icetp02 ICE stream transport created
10:13:03.000 icetp02 Candidate 10.0.0.224:4004 (type=Host)
added to component 1
10:13:03.000 icetp02 Candidate 10.0.0.224:4005 (type=Host)
added to component 2
10:13:03.000 icetp03 ICE stream transport created
10:13:03.000 icetp03 Candidate 10.0.0.224:4006 (type=Host)
added to component 1
10:13:03.000 icetp03 Candidate 10.0.0.224:4007 (type=Host)
added to component 2
10:13:03.000 pjsua_media.c pjsua_set_snd_dev(): attempting to open
devices @8000 Hz
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
100/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 421 bytes Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: <sip:202@10.0.0.230>;tag=42610000000223482900
To: <sip:202@10.0.0.230>
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: <sip:202@10.0.0.230>
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) in state Calling
10:13:03.000 tsx002FE244 State changed from Calling to Proceeding,
event=RX_MSG
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
401/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 487 bytes Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: <sip:202@10.0.0.230>;tag=42610000000223482900
To: <sip:202@10.0.0.230>;tag=as3bc7d8fa
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5e4dddc2"
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) in state Proceeding
10:13:03.000 tsx002FE244 State changed from Proceeding to
Completed, event=RX_MSG
10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
not find credential for asterisk/Digest
10:13:03.000 pjsua_acc.c SIP registration error: No suitable
credential (PJSIP_ENOCREDENTIAL) [status=171101]
10:13:03.000 pasound.c Opened device M - Input(MME)/M -
Output(MME) for recording and playback, sample rate=8000, ch=1,
bits=16, 80 samples per frame, input latency=120 ms, output
latency=120 ms
10:13:03.000 pasound.c Starting M - Input stream..
10:13:03.000 pasound.c Player thread started
10:13:03.000 pasound.c Done, status=0
10:13:03.000 pasound.c Recorder thread started
10:13:05.000 pjsua_call.c Making call with acc #1 to sip:200@10.0.0.230:5060
10:13:05.000 dlg00380094 UAC dialog created
10:13:05.000 icetp00 ICE session created, comp_cnt=2, role is
Controlling agent
10:13:05.000 icetp00 Candidate 0 added: comp_id=1, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4000, base=10.0.0.224:4000,
prio=0x7effffff (2130706431)
10:13:05.000 icetp00 Candidate 1 added: comp_id=2, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4001, base=10.0.0.224:4001,
prio=0x7efffffe (2130706430)
10:13:05.000 dlg00380094 Module mod-invite added as dialog usage,
data=00383E54
10:13:05.000 dlg00380094 Session count inc to 2 by mod-invite
10:13:05.000 dlg00380094 Module mod-100rel added as dialog usage,
data=00384D50
10:13:05.000 dlg00380094 100rel module attached
10:13:05.000 inv00380094 UAC invite session created for dialog dlg00380094
10:13:05.000 endpoint Request msg INVITE/cseq=23806
(tdta00384EA0) created.
10:13:05.000 inv00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 dlg00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 tsx00386494 Transaction created for Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:05.000 tsx00386494 Sending Request msg INVITE/cseq=23805
(tdta00384EA0) in state Null
10:13:05.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:05.000 pjsua_core.c TX 1092 bytes Request msg
INVITE/cseq=23805 (tdta00384EA0) to UDP 10.0.0.230:5060:
INVITE sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230
Contact: <sip:202@10.0.0.224:5060>
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
Route: <sip:10.0.0.230;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
PUBLISH, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
Content-Type: application/sdp
Content-Length: 569
v=0
o=- 3410503985 3410503985 IN IP4 10.0.0.224
s=pjmedia
c=IN IP4 10.0.0.224
t=0 0
a=X-nat:0
a=ice-ufrag:2ae84828
a=ice-pwd:34a229f2
m=audio 4000 RTP/AVP 0 8 102 117 103 3 101
a=rtcp:4001 IN IP4 10.0.0.224
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:102 speex/8000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:103 speex/16000
a=rtpmap:3 GSM/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=candidate:Ha0000e0 1 UDP 2130706431 10.0.0.224 4000 typ host
a=candidate:Ha0000e0 2 UDP 2130706430 10.0.0.224 4001 typ host
--end msg--
10:13:05.000 tsx00386494 State changed from Null to Calling, event=TX_MSG
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Calling
10:13:05.000 sip_endpoint.c Processing incoming message: Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 pjsua_core.c RX 500 bytes Response msg
407/INVITE/cseq=23805 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000623482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="77ddcdc4"
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 Incoming Response msg
407/INVITE/cseq=23805 (rdata002FAC64) in state Calling
10:13:05.000 endpoint Request msg ACK/cseq=23805 (tdta00387BF0) created.
10:13:05.000 pjsua_core.c TX 320 bytes Request msg ACK/cseq=23805
(tdta00387BF0) to UDP 10.0.0.230:5060:
ACK sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 ACK
Route: <sip:10.0.0.230;lr>
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 State changed from Calling to Completed,
event=RX_MSG
10:13:05.000 dlg00380094 Received Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Completed
10:13:05.000 sip_auth_clien Unable to set auth for tdta00384EA0: can
not find credential for asterisk/Digest
10:13:05.000 icetp00 Destroying ICE session
10:13:05.000 dlg00380094 Session count dec to 1 by mod-invite
10:13:05.000 tdta00384EA0 Destroying txdata Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:06.000 ecsu002F867C Vad cur_threshold updated 4-->3. Signal lo=-1
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Completed to
Terminated, event=TIMER
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Terminated to
Destroyed, event=TIMER
10:13:08.000 tdta002FD1D0 Destroying txdata Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:08.000 tsx002FE244 Transaction destroyed!
10:13:08.000 sound_port.c EC suspended because of inactivity
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Completed to
Terminated, event=TIMER
10:13:37.000 dlg00380094 Transaction tsx00386494 state changed to Terminated
10:13:37.000 dlg00380094 Dialog destroyed
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Terminated to
Destroyed, event=TIMER
10:13:37.000 tdta00387BF0 Destroying txdata Request msg
ACK/cseq=23805 (tdta00387BF0)
10:13:37.000 tsx00386494 Transaction destroyed!
> Tzury,
> You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
>
> Benny,
> On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
> I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
> Correct me if I'm wrong
>
> Thanks,
> Vishesh
>
>
>
> On Jan 29, 2008 8:16 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
>
> >
> > I recreate the whole thing from svn, followed the steps you described below and it works!
> > you saved my life. thanks a billion.
> >
> > > Hello Tzury,
> > >
> > > I synched with latest from SVN and encountered no such issues.
> > > I hope you're following the following 4 steps before compiling:
> > >
> > > 1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
> > >
> > > 2. Make a config_site.h
> > > 3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
> > > 4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
> > >
> > >
> > > Should you still face these problems feel free to contact me :)
> > >
> > > Thanks,
> > > Vishesh
> > >
> >
> >
> >
> >
> >
> > On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> >
> > > Hi All,
> > >
> > > I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling *pjsua_wince*.
> > >
> > > errors:
> > > error LNK2019: unresolved external symbol
> > > error LNK2001: unresolved external symbol
> > >
> > > regarding:
> > > pjmedia_codec_wince.lib(gsm.obj)
> > > pjmedia_codec_wince.lib(speex_codec.obj)
> > > pjmedia_wince.lib(transport_srtp.obj)
> > > pjmedia_wince.lib(echo_speex.obj)
> > > and more...
> > >
> > >
> > > I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
> > > I assume this is a result of the conversion (vcp's to vcproj's).
> > >
> > > If you experienced such or alike and managed to solve them I would like to know how.
> > >
> > > Thanks,
> > > Tzury
> > >
> >
> >
>
>
NI
Nanang Izzuddin
Tue, Jan 29, 2008 2:27 PM
It seems the registrar was responding,
and the actual problem was here:
10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
not find credential for asterisk/Digest
You can try to set realm to either wildcard '*' or 'asterisk' for the account.
nanang
On 29/01/2008, Tzury Bar Yochay tzury.by@gmail.com wrote:
That's right,
network layout:
asterisk : 10.0.0.230
mobile device : 10.0.0.224
uid:202
pwd:202
extension:202
dumping here pjsua.txt (the log from the windows mobile 5 device).
10:13:02.000 sip_endpoint.c Module "mod-pjsua-log" registered
10:13:02.000 pjsua_core.c Nameserver 80.74.96.3 added
10:13:02.000 sip_endpoint.c Module "mod-tsx-layer" registered
10:13:02.000 sip_endpoint.c Module "mod-stateful-util" registered
10:13:02.000 sip_endpoint.c Module "mod-ua" registered
10:13:02.000 sip_endpoint.c Module "mod-100rel" registered
10:13:02.000 sip_endpoint.c Module "mod-pjsua" registered
10:13:02.000 sip_endpoint.c Module "mod-invite" registered
10:13:02.000 pasound.c PortAudio sound library initialized, status=0
10:13:02.000 pasound.c PortAudio host api count=2
10:13:02.000 pasound.c Sound device count=5
10:13:02.000 pjlib select() I/O Queue created (0023D004)
10:13:02.000 speex_codec.c Adjusting quality to 5 for uwb
10:13:03.000 conference.c Creating conference bridge with 254 ports
10:13:03.000 conference.c Sound device successfully created for port 0
10:13:03.000 sip_endpoint.c Module "mod-evsub" registered
10:13:03.000 sip_endpoint.c Module "mod-presence" registered
10:13:03.000 evsub.c Event pkg "presence" registered by mod-presence
10:13:03.000 sip_endpoint.c Module "mod-refer" registered
10:13:03.000 evsub.c Event pkg "refer" registered by mod-refer
10:13:03.000 sip_endpoint.c Module "mod-pjsua-pres" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-im" registered
10:13:03.000 sip_endpoint.c Module "mod-pjsua-options" registered
10:13:03.000 pjsua_core.c 1 SIP worker threads created
10:13:03.000 pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
initialized
10:13:03.000 pjsua_core.c SIP UDP socket reachable at 10.0.0.224:5060
10:13:03.000 udp002FA7E0 SIP UDP transport started, published
address is 10.0.0.224:5060
10:13:03.000 pjsua_acc.c Account sip:10.0.0.224:5060 added with id 0
10:13:03.000 pjsua_acc.c Account sip:202@10.0.0.230 added with id 1
10:13:03.000 endpoint Request msg REGISTER/cseq=41912
(tdta002FD1D0) created.
10:13:03.000 tsx002FE244 Transaction created for Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:03.000 tsx002FE244 Sending Request msg REGISTER/cseq=41913
(tdta002FD1D0) in state Null
10:13:03.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:03.000 pjsua_core.c TX 360 bytes Request msg
REGISTER/cseq=41913 (tdta002FD1D0) to UDP 10.0.0.230:5060:
REGISTER sip:10.0.0.230 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000323482900
Route: sip:10.0.0.230;lr
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
Contact: sip:202@10.0.0.224:5060
Expires: 300
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 State changed from Null to Calling, event=TX_MSG
10:13:03.000 pjsua_acc.c Registration sent
10:13:03.000 icetp00 ICE stream transport created
10:13:03.000 icetp00 Candidate 10.0.0.224:4000 (type=Host)
added to component 1
10:13:03.000 icetp00 Candidate 10.0.0.224:4001 (type=Host)
added to component 2
10:13:03.000 icetp01 ICE stream transport created
10:13:03.000 icetp01 Candidate 10.0.0.224:4002 (type=Host)
added to component 1
10:13:03.000 icetp01 Candidate 10.0.0.224:4003 (type=Host)
added to component 2
10:13:03.000 icetp02 ICE stream transport created
10:13:03.000 icetp02 Candidate 10.0.0.224:4004 (type=Host)
added to component 1
10:13:03.000 icetp02 Candidate 10.0.0.224:4005 (type=Host)
added to component 2
10:13:03.000 icetp03 ICE stream transport created
10:13:03.000 icetp03 Candidate 10.0.0.224:4006 (type=Host)
added to component 1
10:13:03.000 icetp03 Candidate 10.0.0.224:4007 (type=Host)
added to component 2
10:13:03.000 pjsua_media.c pjsua_set_snd_dev(): attempting to open
devices @8000 Hz
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
100/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 421 bytes Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Contact: sip:202@10.0.0.230
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
100/REGISTER/cseq=41913 (rdata002FAC64) in state Calling
10:13:03.000 tsx002FE244 State changed from Calling to Proceeding,
event=RX_MSG
10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
401/REGISTER/cseq=41913 (rdata002FAC64)
10:13:03.000 pjsua_core.c RX 487 bytes Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000223482900
To: sip:202@10.0.0.230;tag=as3bc7d8fa
Call-ID: 42610000000123482900
CSeq: 41913 REGISTER
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5e4dddc2"
Content-Length: 0
--end msg--
10:13:03.000 tsx002FE244 Incoming Response msg
401/REGISTER/cseq=41913 (rdata002FAC64) in state Proceeding
10:13:03.000 tsx002FE244 State changed from Proceeding to
Completed, event=RX_MSG
10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
not find credential for asterisk/Digest
10:13:03.000 pjsua_acc.c SIP registration error: No suitable
credential (PJSIP_ENOCREDENTIAL) [status=171101]
10:13:03.000 pasound.c Opened device M - Input(MME)/M -
Output(MME) for recording and playback, sample rate=8000, ch=1,
bits=16, 80 samples per frame, input latency=120 ms, output
latency=120 ms
10:13:03.000 pasound.c Starting M - Input stream..
10:13:03.000 pasound.c Player thread started
10:13:03.000 pasound.c Done, status=0
10:13:03.000 pasound.c Recorder thread started
10:13:05.000 pjsua_call.c Making call with acc #1 to sip:200@10.0.0.230:5060
10:13:05.000 dlg00380094 UAC dialog created
10:13:05.000 icetp00 ICE session created, comp_cnt=2, role is
Controlling agent
10:13:05.000 icetp00 Candidate 0 added: comp_id=1, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4000, base=10.0.0.224:4000,
prio=0x7effffff (2130706431)
10:13:05.000 icetp00 Candidate 1 added: comp_id=2, type=Host,
foundation=Ha0000e0, addr=10.0.0.224:4001, base=10.0.0.224:4001,
prio=0x7efffffe (2130706430)
10:13:05.000 dlg00380094 Module mod-invite added as dialog usage,
data=00383E54
10:13:05.000 dlg00380094 Session count inc to 2 by mod-invite
10:13:05.000 dlg00380094 Module mod-100rel added as dialog usage,
data=00384D50
10:13:05.000 dlg00380094 100rel module attached
10:13:05.000 inv00380094 UAC invite session created for dialog dlg00380094
10:13:05.000 endpoint Request msg INVITE/cseq=23806
(tdta00384EA0) created.
10:13:05.000 inv00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 dlg00380094 Sending Request msg INVITE/cseq=23806
(tdta00384EA0)
10:13:05.000 tsx00386494 Transaction created for Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:05.000 tsx00386494 Sending Request msg INVITE/cseq=23805
(tdta00384EA0) in state Null
10:13:05.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
resolved to '10.0.0.230:5060' type=UDP (UDP transport)
10:13:05.000 pjsua_core.c TX 1092 bytes Request msg
INVITE/cseq=23805 (tdta00384EA0) to UDP 10.0.0.230:5060:
INVITE sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230
Contact: sip:202@10.0.0.224:5060
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
Route: sip:10.0.0.230;lr
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
PUBLISH, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
Content-Type: application/sdp
Content-Length: 569
v=0
o=- 3410503985 3410503985 IN IP4 10.0.0.224
s=pjmedia
c=IN IP4 10.0.0.224
t=0 0
a=X-nat:0
a=ice-ufrag:2ae84828
a=ice-pwd:34a229f2
m=audio 4000 RTP/AVP 0 8 102 117 103 3 101
a=rtcp:4001 IN IP4 10.0.0.224
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:102 speex/8000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=30
a=rtpmap:103 speex/16000
a=rtpmap:3 GSM/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=candidate:Ha0000e0 1 UDP 2130706431 10.0.0.224 4000 typ host
a=candidate:Ha0000e0 2 UDP 2130706430 10.0.0.224 4001 typ host
--end msg--
10:13:05.000 tsx00386494 State changed from Null to Calling, event=TX_MSG
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Calling
10:13:05.000 sip_endpoint.c Processing incoming message: Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 pjsua_core.c RX 500 bytes Response msg
407/INVITE/cseq=23805 (rdata002FAC64) from UDP 10.0.0.230:5060:
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
10.0.0.224:5060;branch=z9hG4bKPj42610000000623482900;received=10.0.0.224;rport=5060
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 INVITE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Supported: replaces
Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="77ddcdc4"
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 Incoming Response msg
407/INVITE/cseq=23805 (rdata002FAC64) in state Calling
10:13:05.000 endpoint Request msg ACK/cseq=23805 (tdta00387BF0) created.
10:13:05.000 pjsua_core.c TX 320 bytes Request msg ACK/cseq=23805
(tdta00387BF0) to UDP 10.0.0.230:5060:
ACK sip:200@10.0.0.230:5060 SIP/2.0
Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
Max-Forwards: 70
From: sip:202@10.0.0.230;tag=42610000000423482900
To: sip:200@10.0.0.230;tag=as16e09420
Call-ID: 42610000000523482900
CSeq: 23805 ACK
Route: sip:10.0.0.230;lr
Content-Length: 0
--end msg--
10:13:05.000 tsx00386494 State changed from Calling to Completed,
event=RX_MSG
10:13:05.000 dlg00380094 Received Response msg
407/INVITE/cseq=23805 (rdata002FAC64)
10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Completed
10:13:05.000 sip_auth_clien Unable to set auth for tdta00384EA0: can
not find credential for asterisk/Digest
10:13:05.000 icetp00 Destroying ICE session
10:13:05.000 dlg00380094 Session count dec to 1 by mod-invite
10:13:05.000 tdta00384EA0 Destroying txdata Request msg
INVITE/cseq=23805 (tdta00384EA0)
10:13:06.000 ecsu002F867C Vad cur_threshold updated 4-->3. Signal lo=-1
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Completed to
Terminated, event=TIMER
10:13:08.000 tsx002FE244 Timeout timer event
10:13:08.000 tsx002FE244 State changed from Terminated to
Destroyed, event=TIMER
10:13:08.000 tdta002FD1D0 Destroying txdata Request msg
REGISTER/cseq=41913 (tdta002FD1D0)
10:13:08.000 tsx002FE244 Transaction destroyed!
10:13:08.000 sound_port.c EC suspended because of inactivity
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Completed to
Terminated, event=TIMER
10:13:37.000 dlg00380094 Transaction tsx00386494 state changed to Terminated
10:13:37.000 dlg00380094 Dialog destroyed
10:13:37.000 tsx00386494 Timeout timer event
10:13:37.000 tsx00386494 State changed from Terminated to
Destroyed, event=TIMER
10:13:37.000 tdta00387BF0 Destroying txdata Request msg
ACK/cseq=23805 (tdta00387BF0)
10:13:37.000 tsx00386494 Transaction destroyed!
Tzury,
You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
Benny,
On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
Correct me if I'm wrong
I recreate the whole thing from svn, followed the steps you described below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
-
Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
-
Make a config_site.h
-
Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
-
Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like to know how.
Thanks,
Tzury
It seems the registrar was responding,
and the actual problem was here:
10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
not find credential for asterisk/Digest
You can try to set realm to either wildcard '*' or 'asterisk' for the account.
nanang
On 29/01/2008, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> That's right,
>
> network layout:
> asterisk : 10.0.0.230
> mobile device : 10.0.0.224
> uid:202
> pwd:202
> extension:202
>
> dumping here pjsua.txt (the log from the windows mobile 5 device).
> 10:13:02.000 sip_endpoint.c Module "mod-pjsua-log" registered
> 10:13:02.000 pjsua_core.c Nameserver 80.74.96.3 added
> 10:13:02.000 sip_endpoint.c Module "mod-tsx-layer" registered
> 10:13:02.000 sip_endpoint.c Module "mod-stateful-util" registered
> 10:13:02.000 sip_endpoint.c Module "mod-ua" registered
> 10:13:02.000 sip_endpoint.c Module "mod-100rel" registered
> 10:13:02.000 sip_endpoint.c Module "mod-pjsua" registered
> 10:13:02.000 sip_endpoint.c Module "mod-invite" registered
> 10:13:02.000 pasound.c PortAudio sound library initialized, status=0
> 10:13:02.000 pasound.c PortAudio host api count=2
> 10:13:02.000 pasound.c Sound device count=5
> 10:13:02.000 pjlib select() I/O Queue created (0023D004)
> 10:13:02.000 speex_codec.c Adjusting quality to 5 for uwb
> 10:13:03.000 conference.c Creating conference bridge with 254 ports
> 10:13:03.000 conference.c Sound device successfully created for port 0
> 10:13:03.000 sip_endpoint.c Module "mod-evsub" registered
> 10:13:03.000 sip_endpoint.c Module "mod-presence" registered
> 10:13:03.000 evsub.c Event pkg "presence" registered by mod-presence
> 10:13:03.000 sip_endpoint.c Module "mod-refer" registered
> 10:13:03.000 evsub.c Event pkg "refer" registered by mod-refer
> 10:13:03.000 sip_endpoint.c Module "mod-pjsua-pres" registered
> 10:13:03.000 sip_endpoint.c Module "mod-pjsua-im" registered
> 10:13:03.000 sip_endpoint.c Module "mod-pjsua-options" registered
> 10:13:03.000 pjsua_core.c 1 SIP worker threads created
> 10:13:03.000 pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
> initialized
> 10:13:03.000 pjsua_core.c SIP UDP socket reachable at 10.0.0.224:5060
> 10:13:03.000 udp002FA7E0 SIP UDP transport started, published
> address is 10.0.0.224:5060
> 10:13:03.000 pjsua_acc.c Account <sip:10.0.0.224:5060> added with id 0
> 10:13:03.000 pjsua_acc.c Account sip:202@10.0.0.230 added with id 1
> 10:13:03.000 endpoint Request msg REGISTER/cseq=41912
> (tdta002FD1D0) created.
> 10:13:03.000 tsx002FE244 Transaction created for Request msg
> REGISTER/cseq=41913 (tdta002FD1D0)
> 10:13:03.000 tsx002FE244 Sending Request msg REGISTER/cseq=41913
> (tdta002FD1D0) in state Null
> 10:13:03.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
> resolved to '10.0.0.230:5060' type=UDP (UDP transport)
> 10:13:03.000 pjsua_core.c TX 360 bytes Request msg
> REGISTER/cseq=41913 (tdta002FD1D0) to UDP 10.0.0.230:5060:
> REGISTER sip:10.0.0.230 SIP/2.0
> Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000323482900
> Route: <sip:10.0.0.230;lr>
> Max-Forwards: 70
> From: <sip:202@10.0.0.230>;tag=42610000000223482900
> To: <sip:202@10.0.0.230>
> Call-ID: 42610000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:202@10.0.0.224:5060>
> Expires: 300
> Content-Length: 0
>
>
> --end msg--
> 10:13:03.000 tsx002FE244 State changed from Null to Calling, event=TX_MSG
> 10:13:03.000 pjsua_acc.c Registration sent
> 10:13:03.000 icetp00 ICE stream transport created
> 10:13:03.000 icetp00 Candidate 10.0.0.224:4000 (type=Host)
> added to component 1
> 10:13:03.000 icetp00 Candidate 10.0.0.224:4001 (type=Host)
> added to component 2
> 10:13:03.000 icetp01 ICE stream transport created
> 10:13:03.000 icetp01 Candidate 10.0.0.224:4002 (type=Host)
> added to component 1
> 10:13:03.000 icetp01 Candidate 10.0.0.224:4003 (type=Host)
> added to component 2
> 10:13:03.000 icetp02 ICE stream transport created
> 10:13:03.000 icetp02 Candidate 10.0.0.224:4004 (type=Host)
> added to component 1
> 10:13:03.000 icetp02 Candidate 10.0.0.224:4005 (type=Host)
> added to component 2
> 10:13:03.000 icetp03 ICE stream transport created
> 10:13:03.000 icetp03 Candidate 10.0.0.224:4006 (type=Host)
> added to component 1
> 10:13:03.000 icetp03 Candidate 10.0.0.224:4007 (type=Host)
> added to component 2
> 10:13:03.000 pjsua_media.c pjsua_set_snd_dev(): attempting to open
> devices @8000 Hz
> 10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
> 100/REGISTER/cseq=41913 (rdata002FAC64)
> 10:13:03.000 pjsua_core.c RX 421 bytes Response msg
> 100/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
> SIP/2.0 100 Trying
> Via: SIP/2.0/UDP
> 10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
> From: <sip:202@10.0.0.230>;tag=42610000000223482900
> To: <sip:202@10.0.0.230>
> Call-ID: 42610000000123482900
> CSeq: 41913 REGISTER
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Contact: <sip:202@10.0.0.230>
> Content-Length: 0
>
>
> --end msg--
> 10:13:03.000 tsx002FE244 Incoming Response msg
> 100/REGISTER/cseq=41913 (rdata002FAC64) in state Calling
> 10:13:03.000 tsx002FE244 State changed from Calling to Proceeding,
> event=RX_MSG
> 10:13:03.000 sip_endpoint.c Processing incoming message: Response msg
> 401/REGISTER/cseq=41913 (rdata002FAC64)
> 10:13:03.000 pjsua_core.c RX 487 bytes Response msg
> 401/REGISTER/cseq=41913 (rdata002FAC64) from UDP 10.0.0.230:5060:
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP
> 10.0.0.224:5060;branch=z9hG4bKPj42610000000323482900;received=10.0.0.224;rport=5060
> From: <sip:202@10.0.0.230>;tag=42610000000223482900
> To: <sip:202@10.0.0.230>;tag=as3bc7d8fa
> Call-ID: 42610000000123482900
> CSeq: 41913 REGISTER
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="5e4dddc2"
> Content-Length: 0
>
>
> --end msg--
> 10:13:03.000 tsx002FE244 Incoming Response msg
> 401/REGISTER/cseq=41913 (rdata002FAC64) in state Proceeding
> 10:13:03.000 tsx002FE244 State changed from Proceeding to
> Completed, event=RX_MSG
> 10:13:03.000 sip_auth_clien Unable to set auth for tdta002FD1D0: can
> not find credential for asterisk/Digest
> 10:13:03.000 pjsua_acc.c SIP registration error: No suitable
> credential (PJSIP_ENOCREDENTIAL) [status=171101]
> 10:13:03.000 pasound.c Opened device M - Input(MME)/M -
> Output(MME) for recording and playback, sample rate=8000, ch=1,
> bits=16, 80 samples per frame, input latency=120 ms, output
> latency=120 ms
> 10:13:03.000 pasound.c Starting M - Input stream..
> 10:13:03.000 pasound.c Player thread started
> 10:13:03.000 pasound.c Done, status=0
> 10:13:03.000 pasound.c Recorder thread started
> 10:13:05.000 pjsua_call.c Making call with acc #1 to sip:200@10.0.0.230:5060
> 10:13:05.000 dlg00380094 UAC dialog created
> 10:13:05.000 icetp00 ICE session created, comp_cnt=2, role is
> Controlling agent
> 10:13:05.000 icetp00 Candidate 0 added: comp_id=1, type=Host,
> foundation=Ha0000e0, addr=10.0.0.224:4000, base=10.0.0.224:4000,
> prio=0x7effffff (2130706431)
> 10:13:05.000 icetp00 Candidate 1 added: comp_id=2, type=Host,
> foundation=Ha0000e0, addr=10.0.0.224:4001, base=10.0.0.224:4001,
> prio=0x7efffffe (2130706430)
> 10:13:05.000 dlg00380094 Module mod-invite added as dialog usage,
> data=00383E54
> 10:13:05.000 dlg00380094 Session count inc to 2 by mod-invite
> 10:13:05.000 dlg00380094 Module mod-100rel added as dialog usage,
> data=00384D50
> 10:13:05.000 dlg00380094 100rel module attached
> 10:13:05.000 inv00380094 UAC invite session created for dialog dlg00380094
> 10:13:05.000 endpoint Request msg INVITE/cseq=23806
> (tdta00384EA0) created.
> 10:13:05.000 inv00380094 Sending Request msg INVITE/cseq=23806
> (tdta00384EA0)
> 10:13:05.000 dlg00380094 Sending Request msg INVITE/cseq=23806
> (tdta00384EA0)
> 10:13:05.000 tsx00386494 Transaction created for Request msg
> INVITE/cseq=23805 (tdta00384EA0)
> 10:13:05.000 tsx00386494 Sending Request msg INVITE/cseq=23805
> (tdta00384EA0) in state Null
> 10:13:05.000 sip_resolve.c Target '10.0.0.230:0' type=Unspecified
> resolved to '10.0.0.230:5060' type=UDP (UDP transport)
> 10:13:05.000 pjsua_core.c TX 1092 bytes Request msg
> INVITE/cseq=23805 (tdta00384EA0) to UDP 10.0.0.230:5060:
> INVITE sip:200@10.0.0.230:5060 SIP/2.0
> Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
> Max-Forwards: 70
> From: sip:202@10.0.0.230;tag=42610000000423482900
> To: sip:200@10.0.0.230
> Contact: <sip:202@10.0.0.224:5060>
> Call-ID: 42610000000523482900
> CSeq: 23805 INVITE
> Route: <sip:10.0.0.230;lr>
> Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY,
> PUBLISH, REFER, MESSAGE, OPTIONS
> Supported: replaces, 100rel, norefersub
> Content-Type: application/sdp
> Content-Length: 569
>
> v=0
> o=- 3410503985 3410503985 IN IP4 10.0.0.224
> s=pjmedia
> c=IN IP4 10.0.0.224
> t=0 0
> a=X-nat:0
> a=ice-ufrag:2ae84828
> a=ice-pwd:34a229f2
> m=audio 4000 RTP/AVP 0 8 102 117 103 3 101
> a=rtcp:4001 IN IP4 10.0.0.224
> a=rtpmap:0 PCMU/8000
> a=rtpmap:8 PCMA/8000
> a=rtpmap:102 speex/8000
> a=rtpmap:117 iLBC/8000
> a=fmtp:117 mode=30
> a=rtpmap:103 speex/16000
> a=rtpmap:3 GSM/8000
> a=sendrecv
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-15
> a=candidate:Ha0000e0 1 UDP 2130706431 10.0.0.224 4000 typ host
> a=candidate:Ha0000e0 2 UDP 2130706430 10.0.0.224 4001 typ host
>
> --end msg--
> 10:13:05.000 tsx00386494 State changed from Null to Calling, event=TX_MSG
> 10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Calling
> 10:13:05.000 sip_endpoint.c Processing incoming message: Response msg
> 407/INVITE/cseq=23805 (rdata002FAC64)
> 10:13:05.000 pjsua_core.c RX 500 bytes Response msg
> 407/INVITE/cseq=23805 (rdata002FAC64) from UDP 10.0.0.230:5060:
> SIP/2.0 407 Proxy Authentication Required
> Via: SIP/2.0/UDP
> 10.0.0.224:5060;branch=z9hG4bKPj42610000000623482900;received=10.0.0.224;rport=5060
> From: sip:202@10.0.0.230;tag=42610000000423482900
> To: sip:200@10.0.0.230;tag=as16e09420
> Call-ID: 42610000000523482900
> CSeq: 23805 INVITE
> User-Agent: Asterisk PBX
> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
> Supported: replaces
> Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="77ddcdc4"
> Content-Length: 0
>
>
> --end msg--
> 10:13:05.000 tsx00386494 Incoming Response msg
> 407/INVITE/cseq=23805 (rdata002FAC64) in state Calling
> 10:13:05.000 endpoint Request msg ACK/cseq=23805 (tdta00387BF0) created.
> 10:13:05.000 pjsua_core.c TX 320 bytes Request msg ACK/cseq=23805
> (tdta00387BF0) to UDP 10.0.0.230:5060:
> ACK sip:200@10.0.0.230:5060 SIP/2.0
> Via: SIP/2.0/UDP 10.0.0.224:5060;rport;branch=z9hG4bKPj42610000000623482900
> Max-Forwards: 70
> From: sip:202@10.0.0.230;tag=42610000000423482900
> To: sip:200@10.0.0.230;tag=as16e09420
> Call-ID: 42610000000523482900
> CSeq: 23805 ACK
> Route: <sip:10.0.0.230;lr>
> Content-Length: 0
>
>
> --end msg--
> 10:13:05.000 tsx00386494 State changed from Calling to Completed,
> event=RX_MSG
> 10:13:05.000 dlg00380094 Received Response msg
> 407/INVITE/cseq=23805 (rdata002FAC64)
> 10:13:05.000 dlg00380094 Transaction tsx00386494 state changed to Completed
> 10:13:05.000 sip_auth_clien Unable to set auth for tdta00384EA0: can
> not find credential for asterisk/Digest
> 10:13:05.000 icetp00 Destroying ICE session
> 10:13:05.000 dlg00380094 Session count dec to 1 by mod-invite
> 10:13:05.000 tdta00384EA0 Destroying txdata Request msg
> INVITE/cseq=23805 (tdta00384EA0)
> 10:13:06.000 ecsu002F867C Vad cur_threshold updated 4-->3. Signal lo=-1
> 10:13:08.000 tsx002FE244 Timeout timer event
> 10:13:08.000 tsx002FE244 State changed from Completed to
> Terminated, event=TIMER
> 10:13:08.000 tsx002FE244 Timeout timer event
> 10:13:08.000 tsx002FE244 State changed from Terminated to
> Destroyed, event=TIMER
> 10:13:08.000 tdta002FD1D0 Destroying txdata Request msg
> REGISTER/cseq=41913 (tdta002FD1D0)
> 10:13:08.000 tsx002FE244 Transaction destroyed!
> 10:13:08.000 sound_port.c EC suspended because of inactivity
> 10:13:37.000 tsx00386494 Timeout timer event
> 10:13:37.000 tsx00386494 State changed from Completed to
> Terminated, event=TIMER
> 10:13:37.000 dlg00380094 Transaction tsx00386494 state changed to Terminated
> 10:13:37.000 dlg00380094 Dialog destroyed
> 10:13:37.000 tsx00386494 Timeout timer event
> 10:13:37.000 tsx00386494 State changed from Terminated to
> Destroyed, event=TIMER
> 10:13:37.000 tdta00387BF0 Destroying txdata Request msg
> ACK/cseq=23805 (tdta00387BF0)
> 10:13:37.000 tsx00386494 Transaction destroyed!
>
>
>
> > Tzury,
> > You're welcome :) ! But the joy would be short-lived, I'm afraid; Am pretty sure the SIP registration will fail again.
>
> >
> > Benny,
> > On my SIP server, the logs show that the packets which the server is receiving were not SIP message (which according to my understanding means the SIP message was malformed).
> > I am attaching the Ethereal traces as well, which say no SIP message goes from PJSIP to the SIP server (10.152.122.208). Although some information is going through, but it's definitely not a SIP message.
> > Correct me if I'm wrong
> >
>
> > Thanks,
> > Vishesh
>
> >
> >
> >
> > On Jan 29, 2008 8:16 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> >
> > >
> > > I recreate the whole thing from svn, followed the steps you described below and it works!
> > > you saved my life. thanks a billion.
> > >
> > > > Hello Tzury,
> > > >
> > > > I synched with latest from SVN and encountered no such issues.
> > > > I hope you're following the following 4 steps before compiling:
> > > >
> > > > 1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
> > > >
> > > > 2. Make a config_site.h
> > > > 3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
> > > > 4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
> > > >
> > > >
> > > > Should you still face these problems feel free to contact me :)
> > > >
> > > > Thanks,
> > > > Vishesh
> > > >
> > >
> > >
> > >
> > >
> > >
> > > On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> > >
> > > > Hi All,
> > > >
> > > > I would like to know if anybody uses pjsip with visual studio 2005 and experienced Link error such as below while compiling *pjsua_wince*.
> > > >
> > > > errors:
> > > > error LNK2019: unresolved external symbol
> > > > error LNK2001: unresolved external symbol
> > > >
> > > > regarding:
> > > > pjmedia_codec_wince.lib(gsm.obj)
> > > > pjmedia_codec_wince.lib(speex_codec.obj)
> > > > pjmedia_wince.lib(transport_srtp.obj)
> > > > pjmedia_wince.lib(echo_speex.obj)
> > > > and more...
> > > >
> > > >
> > > > I have wasted already a whole day (and part of the night) trying to figure out what is wrong with the dependencies and build order and couldn't figure out.
> > > > I assume this is a result of the conversion (vcp's to vcproj's).
> > > >
> > > > If you experienced such or alike and managed to solve them I would like to know how.
> > > >
> > > > Thanks,
> > > > Tzury
> > > >
> > >
> > >
> >
> >
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip@lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
RV
Rodrigo Vega
Wed, Jan 30, 2008 8:55 PM
Hello:
I followed those steps but I'm having the same problem
First of all, I have to buid each one of the libs (ex.libgsmcodec,
libilbccodec, lib*) because buidding just pjsua_wince make an error of not
finding those libs.
After having the lib*, I build all the others except pjsua_wince:
========== Rebuild All: 9 succeeded, 0 failed, 0 skipped ==========
so everything except pjsua_wince has been built. When I try to buid
pjsua_wince I got those errors of the linker....
the libs are have to be for i386 arquitecture?? this where generated in
C:\pjsua_windows\pjproject\third_party\lib:
60,742 libgsmcodec-i386-win32-vc8-release.lib
107,028 libilbccodec-i386-win32-vc8-release.lib
18,448 libmilenage-i386-win32-vc8-release.lib
181,062 libportaudio-i386-win32-vc8-release.lib
48,818 libresample-i386-win32-vc8-release.lib
350,438 libspeex-i386-win32-vc8-release.lib
757,930 libsrtp-i386-win32-vc8-release.lib
I've done the update thing:
C:\pjsua_windows\pjproject>svn update
Obteniendo ítem externo en 'third_party\speex'
Recurso externo en revisión 12832.
Obteniendo ítem externo en 'third_party\portaudio'
Recurso externo en revisión 1198.
En la revisión 1760.
Having installed WM5.0 SDK, Platform SDK and VS2005C++...
maybe my error is in included libraries. But still don't having a clue.
and, pj/confi_site.h has to have:
//#define PJ_CONFIG_MINIMAL_SIZE
// Uncomment to get maximum performance
//#define PJ_CONFIG_MAXIMUM_SPEED
#include <pj/config_site_sample.h
When I opened the project, I say say to everything, include libs and convert
to VS8....
so what's wrong!
please help!!!!, It's meant to work!!!
On Jan 29, 2008 12:16 AM, Tzury Bar Yochay tzury.by@gmail.com wrote:
I recreate the whole thing from svn, followed the steps you described
below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
-
Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
-
Make a config_site.h
-
Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
-
Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and
experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to
figure out what is wrong with the dependencies and build order and couldn't
figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would like
to know how.
Thanks,
Tzury
Hello:
I followed those steps but I'm having the same problem
First of all, I have to buid each one of the libs (ex.libgsmcodec,
libilbccodec, lib*) because buidding just pjsua_wince make an error of not
finding those libs.
After having the lib*, I build all the others except pjsua_wince:
========== Rebuild All: 9 succeeded, 0 failed, 0 skipped ==========
so everything except pjsua_wince has been built. When I try to buid
pjsua_wince I got those errors of the linker....
the libs are have to be for i386 arquitecture?? this where generated in
C:\pjsua_windows\pjproject\third_party\lib:
60,742 libgsmcodec-i386-win32-vc8-release.lib
107,028 libilbccodec-i386-win32-vc8-release.lib
18,448 libmilenage-i386-win32-vc8-release.lib
181,062 libportaudio-i386-win32-vc8-release.lib
48,818 libresample-i386-win32-vc8-release.lib
350,438 libspeex-i386-win32-vc8-release.lib
757,930 libsrtp-i386-win32-vc8-release.lib
I've done the update thing:
C:\pjsua_windows\pjproject>svn update
Obteniendo ítem externo en 'third_party\speex'
Recurso externo en revisión 12832.
Obteniendo ítem externo en 'third_party\portaudio'
Recurso externo en revisión 1198.
En la revisión 1760.
Having installed WM5.0 SDK, Platform SDK and VS2005C++...
maybe my error is in included libraries. But still don't having a clue.
and, pj/confi_site.h has to have:
//#define PJ_CONFIG_MINIMAL_SIZE
// Uncomment to get maximum performance
//#define PJ_CONFIG_MAXIMUM_SPEED
#include <pj/config_site_sample.h
When I opened the project, I say say to everything, include libs and convert
to VS8....
so what's wrong!
please help!!!!, It's meant to work!!!
On Jan 29, 2008 12:16 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> I recreate the whole thing from svn, followed the steps you described
> below and it works!
> you saved my life. thanks a billion.
>
> > Hello Tzury,
> >
> > I synched with latest from SVN and encountered no such issues.
> > I hope you're following the following 4 steps before compiling:
> >
> > 1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
> >
> > 2. Make a config_site.h
> > 3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
> > 4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
> >
> > Should you still face these problems feel free to contact me :)
> >
> > Thanks,
> > Vishesh
> >
> >
>
> On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
>
> > Hi All,
> >
> > I would like to know if anybody uses pjsip with visual studio 2005 and
> > experienced Link error such as below while compiling *pjsua_wince*.
> >
> > errors:
> > error LNK2019: unresolved external symbol
> > error LNK2001: unresolved external symbol
> >
> > regarding:
> > pjmedia_codec_wince.lib(gsm.obj)
> > pjmedia_codec_wince.lib(speex_codec.obj)
> > pjmedia_wince.lib(transport_srtp.obj)
> > pjmedia_wince.lib(echo_speex.obj)
> > and more...
> >
> >
> > I have wasted already a whole day (and part of the night) trying to
> > figure out what is wrong with the dependencies and build order and couldn't
> > figure out.
> > I assume this is a result of the conversion (vcp's to vcproj's).
> >
> > If you experienced such or alike and managed to solve them I would like
> > to know how.
> >
> > Thanks,
> > Tzury
> >
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip@lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
RV
Rodrigo Vega
Thu, Jan 31, 2008 12:14 AM
Hi:
Problem solved...
I reinstall practically every thing (VS2005, WM5.0 SDK) and worked at first
try with the 4 steps previously said.
Thank you!!!
On Jan 30, 2008 2:55 PM, Rodrigo Vega vegaroy13@gmail.com wrote:
Hello:
I followed those steps but I'm having the same problem
First of all, I have to buid each one of the libs (ex.libgsmcodec,
libilbccodec, lib*) because buidding just pjsua_wince make an error of not
finding those libs.
After having the lib*, I build all the others except pjsua_wince:
========== Rebuild All: 9 succeeded, 0 failed, 0 skipped ==========
so everything except pjsua_wince has been built. When I try to buid
pjsua_wince I got those errors of the linker....
the libs are have to be for i386 arquitecture?? this where generated in
C:\pjsua_windows\pjproject\third_party\lib:
60,742 libgsmcodec-i386-win32-vc8-release.lib
107,028 libilbccodec-i386-win32-vc8-release.lib
18,448 libmilenage-i386-win32-vc8-release.lib
181,062 libportaudio-i386-win32-vc8-release.lib
48,818 libresample-i386-win32-vc8-release.lib
350,438 libspeex-i386-win32-vc8-release.lib
757,930 libsrtp-i386-win32-vc8-release.lib
I've done the update thing:
C:\pjsua_windows\pjproject>svn update
Obteniendo ítem externo en 'third_party\speex'
Recurso externo en revisión 12832.
Obteniendo ítem externo en 'third_party\portaudio'
Recurso externo en revisión 1198.
En la revisión 1760.
Having installed WM5.0 SDK, Platform SDK and VS2005C++...
maybe my error is in included libraries. But still don't having a clue.
and, pj/confi_site.h has to have:
//#define PJ_CONFIG_MINIMAL_SIZE
// Uncomment to get maximum performance
//#define PJ_CONFIG_MAXIMUM_SPEED
#include <pj/config_site_sample.h
When I opened the project, I say say to everything, include libs and
convert to VS8....
so what's wrong!
please help!!!!, It's meant to work!!!
On Jan 29, 2008 12:16 AM, Tzury Bar Yochay tzury.by@gmail.com wrote:
I recreate the whole thing from svn, followed the steps you described
below and it works!
you saved my life. thanks a billion.
Hello Tzury,
I synched with latest from SVN and encountered no such issues.
I hope you're following the following 4 steps before compiling:
-
Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
-
Make a config_site.h
-
Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
-
Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
Should you still face these problems feel free to contact me :)
Thanks,
Vishesh
Hi All,
I would like to know if anybody uses pjsip with visual studio 2005 and
experienced Link error such as below while compiling pjsua_wince.
errors:
error LNK2019: unresolved external symbol
error LNK2001: unresolved external symbol
regarding:
pjmedia_codec_wince.lib(gsm.obj)
pjmedia_codec_wince.lib(speex_codec.obj)
pjmedia_wince.lib(transport_srtp.obj)
pjmedia_wince.lib(echo_speex.obj)
and more...
I have wasted already a whole day (and part of the night) trying to
figure out what is wrong with the dependencies and build order and couldn't
figure out.
I assume this is a result of the conversion (vcp's to vcproj's).
If you experienced such or alike and managed to solve them I would
like to know how.
Thanks,
Tzury
Hi:
Problem solved...
I reinstall practically every thing (VS2005, WM5.0 SDK) and worked at first
try with the 4 steps previously said.
Thank you!!!
On Jan 30, 2008 2:55 PM, Rodrigo Vega <vegaroy13@gmail.com> wrote:
> Hello:
>
> I followed those steps but I'm having the same problem
> First of all, I have to buid each one of the libs (ex.libgsmcodec,
> libilbccodec, lib*) because buidding just pjsua_wince make an error of not
> finding those libs.
>
> After having the lib*, I build all the others except pjsua_wince:
> ========== Rebuild All: 9 succeeded, 0 failed, 0 skipped ==========
>
>
> so everything except pjsua_wince has been built. When I try to buid
> pjsua_wince I got those errors of the linker....
>
> the libs are have to be for i386 arquitecture?? this where generated in
> C:\pjsua_windows\pjproject\third_party\lib:
> 60,742 libgsmcodec-i386-win32-vc8-release.lib
> 107,028 libilbccodec-i386-win32-vc8-release.lib
> 18,448 libmilenage-i386-win32-vc8-release.lib
> 181,062 libportaudio-i386-win32-vc8-release.lib
> 48,818 libresample-i386-win32-vc8-release.lib
> 350,438 libspeex-i386-win32-vc8-release.lib
> 757,930 libsrtp-i386-win32-vc8-release.lib
>
>
> I've done the update thing:
>
> C:\pjsua_windows\pjproject>svn update
>
> Obteniendo ítem externo en 'third_party\speex'
> Recurso externo en revisión 12832.
>
>
> Obteniendo ítem externo en 'third_party\portaudio'
> Recurso externo en revisión 1198.
>
> En la revisión 1760.
>
> Having installed WM5.0 SDK, Platform SDK and VS2005C++...
> maybe my error is in included libraries. But still don't having a clue.
>
> and, pj/confi_site.h has to have:
> //#define PJ_CONFIG_MINIMAL_SIZE
> // Uncomment to get maximum performance
> //#define PJ_CONFIG_MAXIMUM_SPEED
> #include <pj/config_site_sample.h
>
> When I opened the project, I say say to everything, include libs and
> convert to VS8....
>
> so what's wrong!
>
> please help!!!!, It's meant to work!!!
>
>
> On Jan 29, 2008 12:16 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
>
> > I recreate the whole thing from svn, followed the steps you described
> > below and it works!
> > you saved my life. thanks a billion.
> >
> > > Hello Tzury,
> > >
> > > I synched with latest from SVN and encountered no such issues.
> > > I hope you're following the following 4 steps before compiling:
> > >
> > > 1. Open <dir>\pjsip-apps\build\wince-evc4\wince_demos.vcw from Visual C++ (VS 2005)
> > >
> > >
> > > 2. Make a config_site.h
> > > 3. Change vsnprintf to vsprintf in <dir>\third_party\portaudio\src\common\pa_debugprint.c
> > > 4. Change target platform and SDK to one you want (e.g. Windows Mobile 5.0 PC emulator and Windows Mobile 5.0 SDK) and then compile
> > >
> > >
> > > Should you still face these problems feel free to contact me :)
> > >
> > > Thanks,
> > > Vishesh
> > >
> > >
> >
> > On Jan 29, 2008 7:38 AM, Tzury Bar Yochay <tzury.by@gmail.com> wrote:
> >
> > > Hi All,
> > >
> > > I would like to know if anybody uses pjsip with visual studio 2005 and
> > > experienced Link error such as below while compiling *pjsua_wince*.
> > >
> > > errors:
> > > error LNK2019: unresolved external symbol
> > > error LNK2001: unresolved external symbol
> > >
> > > regarding:
> > > pjmedia_codec_wince.lib(gsm.obj)
> > > pjmedia_codec_wince.lib(speex_codec.obj)
> > > pjmedia_wince.lib(transport_srtp.obj)
> > > pjmedia_wince.lib(echo_speex.obj)
> > > and more...
> > >
> > >
> > > I have wasted already a whole day (and part of the night) trying to
> > > figure out what is wrong with the dependencies and build order and couldn't
> > > figure out.
> > > I assume this is a result of the conversion (vcp's to vcproj's).
> > >
> > > If you experienced such or alike and managed to solve them I would
> > > like to know how.
> > >
> > > Thanks,
> > > Tzury
> > >
> >
> >
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip@lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
> >
> >
>