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 at 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 at 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 at 10.0.0.230> > Call-ID: 42610000000123482900 > CSeq: 41913 REGISTER > Contact: <sip:202 at 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 at 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 at 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 at 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 at 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 at 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 at 10.0.0.230 > Contact: <sip:202 at 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 at 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 at 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 at 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 at 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 at 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 at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >