Hi Benny, I keep getting this error gethostbyname() even though this address is resolved on the same device by other applications (such as ie). dumping here the settings (from pjsua_wince.cpp) and the log (pjsua.txt on the device) kindly see if anything is wrong with the global variables. many thanks, Tzury _____ #define SIP_PORT 5060 #define SIP_DST_URI "sip:200 at 10.0.0.206:5060" #define HAS_SIP_ACCOUNT 1 // 0 to disable registration #define SIP_DOMAIN "10.0.0.206" #define SIP_REALM "asterisk" #define SIP_USER "202" #define SIP_PASSWD "202" #define SIP_PROXY "sip:10.0.0.206;lr" #define NAMESERVER "80.74.96.3" _____ 08:34:42.000 sip_endpoint.c Module "mod-pjsua-log" registered 08:34:42.000 pjsua_core.c Nameserver 80.74.96.3 added 08:34:42.000 sip_endpoint.c Module "mod-tsx-layer" registered 08:34:42.000 sip_endpoint.c Module "mod-stateful-util" registered 08:34:42.000 sip_endpoint.c Module "mod-ua" registered 08:34:42.000 sip_endpoint.c Module "mod-100rel" registered 08:34:42.000 sip_endpoint.c Module "mod-pjsua" registered 08:34:42.000 sip_endpoint.c Module "mod-invite" registered 08:34:42.000 pasound.c PortAudio sound library initialized, status=0 08:34:42.000 pasound.c PortAudio host api count=2 08:34:42.000 pasound.c Sound device count=4 08:34:42.000 pjlib select() I/O Queue created (0022D004) 08:34:42.000 speex_codec.c Adjusting quality to 5 for uwb 08:34:42.000 conference.c Creating conference bridge with 254 ports 08:34:42.000 conference.c Sound device successfully created for port 0 08:34:42.000 sip_endpoint.c Module "mod-evsub" registered 08:34:42.000 sip_endpoint.c Module "mod-presence" registered 08:34:42.000 evsub.c Event pkg "presence" registered by mod-presence 08:34:42.000 sip_endpoint.c Module "mod-refer" registered 08:34:42.000 evsub.c Event pkg "refer" registered by mod-refer 08:34:42.000 sip_endpoint.c Module "mod-pjsua-pres" registered 08:34:42.000 sip_endpoint.c Module "mod-pjsua-im" registered 08:34:42.000 sip_endpoint.c Module "mod-pjsua-options" registered 08:34:42.000 pjsua_core.c 1 SIP worker threads created 08:34:42.000 pjsua_core.c pjsua version 0.8.0-trunk for win32-wince initialized 08:34:42.000 pjsua_core.c SIP UDP socket reachable at 10.0.0.207:5060 08:34:42.000 udp002EB090 SIP UDP transport started, published address is 10.0.0.207:5060 08:34:42.000 pjsua_acc.c Account <sip:10.0.0.207:5060> added with id 0 08:34:42.000 pjsua_acc.c Account sip:202 at 10.0.0.206 added with id 1 08:34:42.000 endpoint Request msg REGISTER/cseq=41912 (tdta002ED840) created. 08:34:42.000 tsx002EB514 Transaction created for Request msg REGISTER/cseq=41913 (tdta002ED840) 08:34:42.000 tsx002EB514 Sending Request msg REGISTER/cseq=41913 (tdta002ED840) in state Null 08:35:10.000 sip_resolve.c Failed to resolve '10.0.0.206'. Err=70018 (gethostbyname() has returned error (PJ_ERESOLVE)) 08:35:10.000 tsx002EB514 Failed to send Request msg REGISTER/cseq=41913 (tdta002ED840)! err=70018 (gethostbyname() has returned error (PJ_ERESOLVE)) 08:35:10.000 tsx002EB514 State changed from Null to Terminated, event=TRANSPORT_ERROR 08:35:10.000 pjsua_acc.c SIP registration failed, status=503 (Service Unavailable) 08:35:10.000 sip_reg.c Error sending request, status=70018 08:35:10.000 pjsua_acc.c Unable to create/send REGISTER: gethostbyname() has returned error (PJ_ERESOLVE) [status=70018] 08:35:10.000 pjsua_media.c RTP socket reachable at 10.0.0.207:4000:673181996 08:35:10.000 pjsua_media.c RTCP socket reachable at 10.0.0.207:4001:673181996 08:35:10.000 pjsua_media.c RTP socket reachable at 10.0.0.207:4002:673181996 08:35:10.000 pjsua_media.c RTCP socket reachable at 10.0.0.207:4003:673181996 08:35:10.000 pjsua_media.c RTP socket reachable at 10.0.0.207:4004:673181996 08:35:10.000 pjsua_media.c RTCP socket reachable at 10.0.0.207:4005:673181996 08:35:10.000 pjsua_media.c RTP socket reachable at 10.0.0.207:4006:673181996 08:35:10.000 pjsua_media.c RTCP socket reachable at 10.0.0.207:4007:673181996