the way to debug wince demo app on emulator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI vishesh,

is your ip address correct ? is it 192.168.55 range ? i see your dns is in
10 range .... may be the device hasn't taken a ip address properly.
if its correct you mi8 need to use "asterisk" as realm with asterisk server
.

lakmal

On Feb 1, 2008 3:55 PM, Vishesh Sharma <Vishesh_Sharma at infosys.com> wrote:

>
> An addendum,
> The error:
> 15:28:54.000 sip_auth_clien Unable to set auth for tdta002E89B0: can not
> find credential for ad.infosys.com/Digest
>
> This happens only when I use settings as suggested by Lakmal. Now,
> ad.infosys.com is my primary DNS suffix but is nowhere mentioned in
> pjsua_wince.cpp.
>
> Otherwise what I do is - Use "Cradle" from device manager and specify a
> proxy server to be used in device settings (and to check the connection I am
> able access a webapp running on the server). The output file (generated on
> device fs) after running with options specified in previous message is
> inline.
>
> Thanks,
> Vishesh
>
> //----pjsua.txt on mobile fs
>
> 15:48:14.000 sip_endpoint.c Module "mod-pjsua-log" registered
>  15:48:14.000 sip_endpoint.c Module "mod-tsx-layer" registered
>  15:48:14.000 sip_endpoint.c Module "mod-stateful-util" registered
>  15:48:14.000 sip_endpoint.c Module "mod-ua" registered
>  15:48:14.000 sip_endpoint.c Module "mod-100rel" registered
>  15:48:14.000 sip_endpoint.c Module "mod-pjsua" registered
>  15:48:14.000 sip_endpoint.c Module "mod-invite" registered
>  15:48:15.000      pasound.c PortAudio sound library initialized, status=0
>  15:48:15.000      pasound.c PortAudio host api count=2
>  15:48:15.000      pasound.c Sound device count=4
>  15:48:15.000          pjlib select() I/O Queue created (0022B504)
>  15:48:15.000  speex_codec.c Adjusting quality to 5 for uwb
>  15:48:15.000   conference.c Creating conference bridge with 254 ports
>  15:48:15.000   conference.c Sound device successfully created for port 0
>  15:48:15.000 sip_endpoint.c Module "mod-evsub" registered
>  15:48:15.000 sip_endpoint.c Module "mod-presence" registered
>  15:48:16.000        evsub.c Event pkg "presence" registered by
> mod-presence
>  15:48:16.000 sip_endpoint.c Module "mod-refer" registered
>  15:48:16.000        evsub.c Event pkg "refer" registered by mod-refer
>  15:48:16.000 sip_endpoint.c Module "mod-pjsua-pres" registered
>  15:48:16.000 sip_endpoint.c Module "mod-pjsua-im" registered
>  15:48:16.000 sip_endpoint.c Module "mod-pjsua-options" registered
>  15:48:16.000   pjsua_core.c 1 SIP worker threads created
>  15:48:16.000   pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
> initialized
>  15:48:18.000   pjsua_core.c SIP UDP socket reachable at
> 192.168.55.101:5060
>  15:48:18.000    udp002D9590 SIP UDP transport started, published address
> is 192.168.55.101:5060
>  15:48:18.000    pjsua_acc.c Account <sip:192.168.55.101:5060> added with
> id 0
>  15:48:18.000    pjsua_acc.c Account sip:2000 at 10.152.65.67 added with id 1
>  15:48:19.000       endpoint Request msg REGISTER/cseq=41912
> (tdta002E89B0) created.
>  15:48:19.000    tsx002E9A24 Transaction created for Request msg
> REGISTER/cseq=41913 (tdta002E89B0)
>  15:48:19.000    tsx002E9A24 Sending Request msg REGISTER/cseq=41913
> (tdta002E89B0) in state Null
>  15:48:19.000  sip_resolve.c Target '10.152.65.67:0' type=Unspecified
> resolved to '10.152.65.67:5060' type=UDP (UDP transport)
>  15:48:19.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:19.000    tsx002E9A24 State changed from Null to Calling,
> event=TX_MSG
>  15:48:19.000    pjsua_acc.c Registration sent
>  15:48:19.000        icetp00 ICE stream transport created
>  15:48:19.000        icetp00 Candidate 192.168.55.101:4000 (type=Host)
> added to component 1
>  15:48:19.000        icetp00 Candidate 192.168.55.101:4001 (type=Host)
> added to component 2
>  15:48:19.000        icetp01 ICE stream transport created
>  15:48:19.000        icetp01 Candidate 192.168.55.101:4002 (type=Host)
> added to component 1
>  15:48:19.000        icetp01 Candidate 192.168.55.101:4003 (type=Host)
> added to component 2
>  15:48:19.000        icetp02 ICE stream transport created
>  15:48:20.000        icetp02 Candidate 192.168.55.101:4004 (type=Host)
> added to component 1
>  15:48:20.000        icetp02 Candidate 192.168.55.101:4005 (type=Host)
> added to component 2
>  15:48:20.000        icetp03 ICE stream transport created
>  15:48:20.000    tsx002E9A24 Retransmit timer event
>  15:48:20.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=0, restart?=1
>  15:48:20.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:20.000        icetp03 Candidate 192.168.55.101:4006 (type=Host)
> added to component 1
>  15:48:20.000        icetp03 Candidate 192.168.55.101:4007 (type=Host)
> added to component 2
>  15:48:20.000  pjsua_media.c pjsua_set_snd_dev(): attempting to open
> devices @8000 Hz
>  15:48:20.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
>  15:48:20.000      pasound.c Starting M - Input stream..
>  15:48:20.000      pasound.c Done, status=0
>  15:48:20.000      pasound.c Recorder thread started
>  15:48:20.000      pasound.c Player thread started
>  15:48:21.000    tsx002E9A24 Retransmit timer event
>  15:48:21.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=1, restart?=1
>  15:48:21.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:23.000    tsx002E9A24 Retransmit timer event
>  15:48:23.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=2, restart?=1
>  15:48:23.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:24.000   ecsu002D503C Vad cur_threshold updated 4-->3. Signal lo=-1
>  15:48:26.000   sound_port.c EC suspended because of inactivity
>  15:48:27.000    tsx002E9A24 Retransmit timer event
>  15:48:27.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=3, restart?=1
>  15:48:27.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:31.000    tsx002E9A24 Retransmit timer event
>  15:48:31.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=4, restart?=1
>  15:48:31.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:35.000    tsx002E9A24 Retransmit timer event
>  15:48:35.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=5, restart?=1
>  15:48:35.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:39.000    tsx002E9A24 Retransmit timer event
>  15:48:39.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=6, restart?=1
>  15:48:39.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:43.000    tsx002E9A24 Retransmit timer event
>  15:48:43.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=7, restart?=1
>  15:48:43.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:47.000    tsx002E9A24 Retransmit timer event
>  15:48:47.000    tsx002E9A24 Retransmiting Request msg REGISTER/cseq=41913
> (tdta002E89B0), count=8, restart?=1
>  15:48:47.000   pjsua_core.c TX 349 bytes Request msg REGISTER/cseq=41913
> (tdta002E89B0) to UDP 10.152.65.67:5060:
> REGISTER sip:10.152.65.67 SIP/2.0
> Via: SIP/2.0/UDP 192.168.55.101:5060
> ;rport;branch=z9hG4bKPj17a50000000323482900
> Max-Forwards: 70
> From: <sip:2000@10.152.65.67>;tag=17a50000000223482900
> To: <sip:2000 at 10.152.65.67>
> Call-ID: 17a50000000123482900
> CSeq: 41913 REGISTER
> Contact: <sip:2000 at 192.168.55.101:5060>
> Expires: 300
> Content-Length:  0
>
>
> --end msg--
>  15:48:51.000    tsx002E9A24 Timeout timer event
>  15:48:51.000    tsx002E9A24 State changed from Calling to Terminated,
> event=TIMER
>  15:48:51.000    pjsua_acc.c SIP registration failed, status=408 (Request
> Timeout)
>  15:48:51.000    tsx002E9A24 Timeout timer event
>  15:48:51.000    tsx002E9A24 State changed from Terminated to Destroyed,
> event=TIMER
>  15:48:51.000   tdta002E89B0 Destroying txdata Request msg
> REGISTER/cseq=41913 (tdta002E89B0)
>  15:48:51.000    tsx002E9A24 Transaction destroyed!
> -----Original Message-----
> From: Vishesh Sharma
> Sent: Friday, February 01, 2008 3:32 PM
> To: 'pjsip list'
> Subject: RE: the way to debug wince demo app on emulator
>
> Hello Benny,
>
> Im still the black sheep :(. Though, I was connecting in a way different
> to what Lakmal said (and also tried the way he suggested)
> Unable to get my WinMob 5.0 UA registered with sipXpbx, AsteriskWin32 or
> SIPoint Presence Server.
> Server on 10.152.65.67; Able to connect through other softphones but not
> pjsua_wince.
> I get this message as well --- 15:28:54.000 sip_auth_clien Unable to set
> auth for tdta002E89B0: can not find credential for ad.infosys.com/Digest
> [Vishesh Sharma]  ad.infosys.com is my primary DNS suffix[Vishesh Sharma]
>  This happens only when I use settings as suggested by Lakmal. Otherwise, I
> cradle the emulator and specify a proxy server to be used (and can access a
> webapp on the server as well)
>
> Does anyone have any more suggestions that may help me get this working?
>
> Inline are my settings in pjsua_wince.cpp
>
> Thanks,
> Vishesh
>
> //-----------------------------------------------------------------------------------------------------
> #define HAS_SIP_ACCOUNT 1       // 0 to disable registration
> #define SIP_DOMAIN      "10.152.65.67"
> #define SIP_REALM       "10.152.65.57"
> // Tried with next line as well
> //#define SIP_REALM     "*"
>
> #define SIP_USER        "2000"
> #define SIP_PASSWD      "2000"
>
> //
> // Outbound proxy for all accounts
> //
> #define SIP_PROXY       NULL
> // Tried with next line as well
> //#define SIP_PROXY     "sip:10.152.65.57;lr"
>
>
> //
> // Configure nameserver if DNS SRV is to be used with both SIP
> // or STUN (for STUN see other settings below)
> //
> #define NAMESERVER      NULL
> //#define NAMESERVER    "62.241.163.201"
>
> //
> // STUN server
> #if 0
>        // Use this to have the STUN server resolved normally
> #   define STUN_DOMAIN  NULL
> #   define STUN_SERVER  "stun.fwdnet.net"
> #elif 0
>        // Use this to have the STUN server resolved with DNS SRV
> #   define STUN_DOMAIN  "iptel.org"
> #   define STUN_SERVER  NULL
> #else
>        // Use this to disable STUN
> #   define STUN_DOMAIN  NULL
> #   define STUN_SERVER  NULL
> #endif
>
> //
> // Use ICE?
> //
> #define USE_ICE         1
>
> //---------------
>
>
> -----Original Message-----
> From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org]
> On Behalf Of Benny Prijono
> Sent: Friday, February 01, 2008 3:08 PM
> To: pjsip list
> Subject: Re: the way to debug wince demo app on emulator
>
> I'm glad that finally you resolved the problem. And thanks for the
> tip; I've added link to this post in PJSIP FAQ about PJ_ERESOLVE
> problem: http://trac.pjsip.org/repos/wiki/FAQ#wm-resolve
>
> So does anybody else still having unresolved problem with Windows Mobile?
>
> cheers,
>  -benny
>
> On 2/1/08, Lakmal Molligoda <mlakmal at gmail.com> wrote:
> > Hi All,
> >
> > I have seen lot of ppl asking how to run wince demo application on
> pocket pc
> > emulator. so i thought of giving a heads up for all of them. sorry not
> > sending this before to the list ... i was busy with other work all this
> > time.
> >
> > ill describe each step as follows.
> >
> > 1. first make sure that you have emulator manager 1.0/2.0 installed with
> > pocket pc 2003 or wm5 pocket pc sdk/emulator images.
> > 2. i assume all of you haven't installed vpc network driver. to install
> this
> > goto following site and get the installation
> >
> >
> http://www.microsoft.com/Downloads/details.aspx?familyid=DC8332D6-565F-4A57-BE8C-1D4718D3AF65&displaylang=en
> >
> > 3 after you get this installed start the emulator manager and connect to
> > pocket pc emulator image. then goto the file->configuration->netwok tab
> >  there you would be able to select Enable NE2000 PCMCIA netowrk adapter
> and
> > bind to option. select that and go out from configuration window.
> >  then goto device OS and goto settings from start menu. then goto
> connection
> > tab and network cards. select my network card connection to as Work.
> then
> > select the NE2000 compatible ethernet driver. and select dhcp and enter
> dns
> > values appropriately and save and exit from it.
> >  and then go back to connection tab and select connections. in thr u
> need to
> > goto advanced tab and need to select select networks. in thr u need to
> > change all the drop down values to "My Work Network". apply everything
> and
> > go back to desktop.
> >  finally give a soft boot. when the device boots up it should have
> > connection established to your network.
> >
> > to check if the networks ok you could browse to any site through IE.
> >
> > if all this goes well your wince demo app should be running ok and you
> would
> > be able to debug application easily through emulator.
> >
> >
> > Have Fun ;)
> >
> > lakmal
> >
> >
> > _______________________________________________
> > 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
> >
> >
> >
>
> _______________________________________________
> 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
>
> **************** 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***
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080201/e51ea7da/attachment-0001.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux