Getting Started Help Needed (Newbie)

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

 



On 1/21/08, Tzury Bar Yochay <tzury.by at gmail.com> wrote:
>
> I checked out the latest from the svn.
> I successfully built pjsua_wince and deploy it on my smartphone (mobile
> 5.0).
>
> here I have an asterisk @ 10.0.0.199 with few accounts.
> For some reason I can't get my pjsua_wince registered with the sip
> proxy (asterisk).
>
> In the smartPhone's log i see that its trying to reach 169.254.2.1
> address (which I cannot see where it is defined)
> And as for my server's IP (10.0.0.199) I see  resolving error:


This is just a guess, as I currently can't use the WM devtools. Do you have
networking up and running on the device? Someone mentioned that if you put
the device on the cradle, the network connection to the device will be
replaced by some kind of private network to the PC.

cheers,
 -benny



sip_resolve.c Failed to resolve '10.0.0.199'. Err=70018
> (gethostbyname() has returned error (PJ_ERESOLVE))
>
> would be happy if aomeone can help me getting over that hello world phase.
>
> ;-)
>
> PS
>
> here are the configuration part of pjsua_wince.cpp
> ( with ip, user, passwd, proxy.
> nor stun neither dns.)
> and the smartPhone's log file (pjsua.txt)
> ____________________________________________________
> // Basic config.
> #define SIP_PORT        5060
>
> // Destination URI (to make call, or to subscribe presence)
> #define SIP_DST_URI     "sip:10.0.0.199:5061"
>
> // Account
> #define HAS_SIP_ACCOUNT 1       // 0 to disable registration
> #define SIP_DOMAIN      "10.0.0.199"
> #define SIP_REALM       "10.0.0.199"
> #define SIP_USER        "502"
> #define SIP_PASSWD      "support"
>
> // Outbound proxy for all accounts
> //#define SIP_PROXY     NULL
> #define SIP_PROXY       "sip:10.0.0.199;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    "80.74.96.3"
>
> // 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
> ____________________________________________________________
>
> 05:46:08.000 sip_endpoint.c Module "mod-pjsua-log" registered
> 05:46:08.000 sip_endpoint.c Module "mod-tsx-layer" registered
> 05:46:08.000 sip_endpoint.c Module "mod-stateful-util" registered
> 05:46:08.000 sip_endpoint.c Module "mod-ua" registered
> 05:46:08.000 sip_endpoint.c Module "mod-100rel" registered
> 05:46:08.000 sip_endpoint.c Module "mod-pjsua" registered
> 05:46:08.000 sip_endpoint.c Module "mod-invite" registered
> 05:46:08.000      pasound.c PortAudio sound library initialized, status=0
> 05:46:08.000      pasound.c PortAudio host api count=2
> 05:46:08.000      pasound.c Sound device count=5
> 05:46:08.000          pjlib select() I/O Queue created (0022B574)
> 05:46:08.000  speex_codec.c Adjusting quality to 5 for uwb
> 05:46:08.000   conference.c Creating conference bridge with 254 ports
> 05:46:08.000   conference.c Sound device successfully created for port 0
> 05:46:08.000 sip_endpoint.c Module "mod-evsub" registered
> 05:46:08.000 sip_endpoint.c Module "mod-presence" registered
> 05:46:08.000        evsub.c Event pkg "presence" registered by
> mod-presence
> 05:46:08.000 sip_endpoint.c Module "mod-refer" registered
> 05:46:08.000        evsub.c Event pkg "refer" registered by mod-refer
> 05:46:08.000 sip_endpoint.c Module "mod-pjsua-pres" registered
> 05:46:08.000 sip_endpoint.c Module "mod-pjsua-im" registered
> 05:46:08.000 sip_endpoint.c Module "mod-pjsua-options" registered
> 05:46:08.000   pjsua_core.c 1 SIP worker threads created
> 05:46:08.000   pjsua_core.c pjsua version 0.8.0-trunk for win32-wince
> initialized
> 05:46:08.000   pjsua_core.c SIP UDP socket reachable at 169.254.2.1:5060
> 05:46:08.000    udp002DA720 SIP UDP transport started, published
> address is 169.254.2.1:5060
> 05:46:08.000    pjsua_acc.c Account <sip:169.254.2.1:5060> added with id 0
> 05:46:08.000    pjsua_acc.c Account sip:502 at 10.0.0.199 added with id 1
> 05:46:08.000       endpoint Request msg REGISTER/cseq=41912
> (tdta002E9070) created.
> 05:46:08.000    tsx002EA0E4 Transaction created for Request msg
> REGISTER/cseq=41913 (tdta002E9070)
> 05:46:08.000    tsx002EA0E4 Sending Request msg REGISTER/cseq=41913
> (tdta002E9070) in state Null
> 05:46:11.000  sip_resolve.c Failed to resolve '10.0.0.199'. Err=70018
> (gethostbyname() has returned error (PJ_ERESOLVE))
> 05:46:11.000    tsx002EA0E4 Failed to send Request msg
> REGISTER/cseq=41913 (tdta002E9070)! err=70018 (gethostbyname() has
> returned error (PJ_ERESOLVE))
> 05:46:11.000    tsx002EA0E4 State changed from Null to Terminated,
> event=TRANSPORT_ERROR
> 05:46:11.000    pjsua_acc.c SIP registration failed, status=503
> (Service Unavailable)
> 05:46:11.000      sip_reg.c Error sending request, status=70018
> 05:46:11.000    pjsua_acc.c Unable to create/send REGISTER:
> gethostbyname() has returned error (PJ_ERESOLVE) [status=70018]
> 05:46:11.000        icetp00 ICE stream transport created
> 05:46:11.000        icetp00 Candidate 169.254.2.1:4000 (type=Host)
> added to component 1
> 05:46:11.000        icetp00 Candidate 169.254.2.1:4001 (type=Host)
> added to component 2
> 05:46:11.000        icetp01 ICE stream transport created
> 05:46:11.000        icetp01 Candidate 169.254.2.1:4002 (type=Host)
> added to component 1
> 05:46:11.000        icetp01 Candidate 169.254.2.1:4003 (type=Host)
> added to component 2
> 05:46:11.000        icetp02 ICE stream transport created
> 05:46:11.000        icetp02 Candidate 169.254.2.1:4004 (type=Host)
> added to component 1
> 05:46:11.000    tsx002EA0E4 Timeout timer event
> 05:46:11.000    tsx002EA0E4 State changed from Terminated to
> Destroyed, event=TIMER
> 05:46:11.000   tdta002E9070 Destroying txdata Request msg
> REGISTER/cseq=41913 (tdta002E9070)
> 05:46:11.000    tsx002EA0E4 Transaction destroyed!
> 05:46:11.000        icetp02 Candidate 169.254.2.1:4005 (type=Host)
> added to component 2
> 05:46:11.000        icetp03 ICE stream transport created
> 05:46:11.000        icetp03 Candidate 169.254.2.1:4006 (type=Host)
> added to component 1
> 05:46:11.000        icetp03 Candidate 169.254.2.1:4007 (type=Host)
> added to component 2
> 05:46:11.000  pjsua_media.c pjsua_set_snd_dev(): attempting to open
> devices @8000 Hz
> 05:46:11.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
> 05:46:11.000      pasound.c Starting M - Input stream..
> 05:46:11.000      pasound.c Player thread started
> 05:46:12.000      pasound.c Done, status=0
> 05:46:12.000      pasound.c Recorder thread started
> 05:46:15.000   ecsu002D61F8 Vad cur_threshold updated 4-->3. Signal lo=-1
> 05:46:17.000   sound_port.c EC suspended because of inactivity
> 05:47:20.000          pjsua Thread stack max usage=2636 by
> ..\..\src\pj\string.c:133
> 05:47:20.000   pjsua_core.c Shutting down...
> 05:47:21.000  pjsua_media.c Closing (null) sound playback device and
> (null) sound capture device
> 05:47:21.000      pasound.c Stopping stream..
> 05:47:21.000      pasound.c Done, status=0
> 05:47:21.000      pasound.c Closing M - Input: 6 underflow, 0 overflow
> 05:47:21.000        icetp00 ICE stream transport shutting down
> 05:47:21.000        icetp00 ICE stream transport destroyed
> 05:47:21.000        icetp01 ICE stream transport shutting down
> 05:47:21.000        icetp01 ICE stream transport destroyed
> 05:47:21.000        icetp02 ICE stream transport shutting down
> 05:47:21.000        icetp02 ICE stream transport destroyed
> 05:47:21.000        icetp03 ICE stream transport shutting down
> 05:47:21.000        icetp03 ICE stream transport destroyed
> 05:47:22.000          media Thread stack max usage=1176 by
> ..\..\src\pj\os_core_win32.c:848
> 05:47:22.000      pasound.c PortAudio sound library shutting down..
> 05:47:22.000 sip_endpoint.c Destroying endpoing instance..
> 05:47:22.000 sip_endpoint.c Module "mod-pjsua-options" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-pjsua-im" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-pjsua-pres" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-pjsua" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-stateful-util" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-refer" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-presence" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-evsub" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-invite" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-100rel" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-ua" unregistered
> 05:47:22.000 sip_transactio Stopping transaction layer module
> 05:47:22.000 sip_transactio Transaction layer module destroyed
> 05:47:22.000 sip_endpoint.c Module "mod-tsx-layer" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-msg-print" unregistered
> 05:47:22.000 sip_endpoint.c Module "mod-pjsua-log" unregistered
> 05:47:22.000 sip_transport. Destroying transport manager
> 05:47:22.000 sip_endpoint.c Endpoint 00202214 destroyed
> 05:47:22.000          pjsua Pool is not released by application, releasing
> now
> 05:47:22.000   pjsua_core.c PJSUA destroyed...
>
> _______________________________________________
> 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/20080121/7cdf53da/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