Hi Everybody, working on an iOS4 App with SIP capabilities I am struggling to receive incoming_call notifications while being in background mode. I believe, my current problem has to do with the configuration of TCP as the transport (which is a prerequisite for this functionality). - I basically followed the pjsua-reference-implementation for UDP and TCP transport configuration and also appended "transport=tcp;" to the registrar-uri when adding an account. The following is what I see in the debugger console (iPhone-device - not simulator) once the App launched: ====================================================================================================================== 01:26:29.855 os_core_unix.c pjlib 1.8.5 for POSIX initialized 01:26:30.006 sip_endpoint.c Creating endpoint instance... 01:26:30.010 pjlib select() I/O Queue created (0x835f30) 01:26:30.011 sip_endpoint.c Module "mod-msg-print" registered 01:26:30.011 sip_transport. Transport manager created. 01:26:30.026 sip_endpoint.c Module "mod-pjsua-log" registered 01:26:30.027 sip_endpoint.c Module "mod-tsx-layer" registered 01:26:30.028 sip_endpoint.c Module "mod-stateful-util" registered 01:26:30.029 sip_endpoint.c Module "mod-ua" registered 01:26:30.030 sip_endpoint.c Module "mod-100rel" registered 01:26:30.030 sip_endpoint.c Module "mod-pjsua" registered 01:26:30.032 sip_endpoint.c Module "mod-invite" registered 01:26:30.038 coreaudio_dev. core audio initialized 01:26:30.040 pjlib select() I/O Queue created (0x83dc14) 01:26:30.076 sip_endpoint.c Module "mod-evsub" registered 01:26:30.078 sip_endpoint.c Module "mod-presence" registered 01:26:30.079 sip_endpoint.c Module "mod-mwi" registered 01:26:30.079 sip_endpoint.c Module "mod-refer" registered 01:26:30.079 sip_endpoint.c Module "mod-pjsua-pres" registered 01:26:30.080 sip_endpoint.c Module "mod-pjsua-im" registered 01:26:30.080 sip_endpoint.c Module "mod-pjsua-options" registered 01:26:30.080 pjsua_core.c 1 SIP worker threads created 01:26:30.080 pjsua_core.c pjsua version 1.8.5 for arm-apple-darwin9 initialized 01:26:30.083 pjsua_core.c SIP UDP socket reachable at 192.168.1.102:55796 01:26:30.085 udp0x844800 SIP UDP transport started, published address is 192.168.1.102:55796 01:26:30.087 pjsua_acc.c Account <sip:192.168.1.102:55796> added with id 0 01:26:30.089 tcplis:55796 SIP TCP listener ready for incoming connections at 192.168.1.102:55796 01:26:30.090 pjsua_acc.c Account <sip:192.168.1.102:55796;transport=TCP> added with id 1 01:26:30.093 pjsua_media.c RTP socket reachable at 192.168.1.102:4000 01:26:30.093 pjsua_media.c RTCP socket reachable at 192.168.1.102:4001 01:26:30.096 pjsua_media.c RTP socket reachable at 192.168.1.102:4002 01:26:30.096 pjsua_media.c RTCP socket reachable at 192.168.1.102:4003 01:26:30.098 pjsua_media.c RTP socket reachable at 192.168.1.102:4004 01:26:30.098 pjsua_media.c RTCP socket reachable at 192.168.1.102:4005 01:26:30.101 pjsua_media.c RTP socket reachable at 192.168.1.102:4006 01:26:30.101 pjsua_media.c RTCP socket reachable at 192.168.1.102:4007 01:26:30.102 sip_endpoint.c Module "mod-unsolicited-mwi" registered 01:26:47.518 pjsua_acc.c Account sip:abcdefg at sipgate.de added with id 2 01:26:47.529 tcpc0x89da14 TCP client transport created 01:26:47.530 tcpc0x89da14 TCP transport 192.168.1.102:49774 is connecting to 217.10.79.9:5060... 01:26:47.530 pjsua_core.c TX 575 bytes Request msg REGISTER/cseq=15489 (tdta0x89ca00) to tcp 217.10.79.9:5060: REGISTER sip:sipgate.de;transport=tcp SIP/2.0 Via: SIP/2.0/TCP 192.168.1.102:49774;rport;branch=z9hG4bKPjtxO7dXv3Agj8FtQQBEuJw6Io7fMZrlui Route: <sip:sipgate.de;transport=tcp;lr> Max-Forwards: 70 From: <sip:abcdefg@xxxxxxxxxx>;tag=WnuqiBOF4NQDbj5VyO.jf9x9jCP2LbZi To: <sip:abcdefg at sipgate.de> Call-ID: F8QztBfWuoR2DzFOmfiM2WUNhhaE.B-b CSeq: 15489 REGISTER User-Agent: SIP01 Contact: <sip:abcdefg at 192.168.1.102:55796;transport=TCP> Expires: 300 Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Content-Length: 0 --end msg-- 01:26:47.531 pjsua_acc.c Registration sent 01:26:47.781 tcpc0x89da14 TCP connect() error: Connection refused [code=120061] 01:26:47.782 tsx0x872064 Failed to send Request msg REGISTER/cseq=15489 (tdta0x89ca00)! err=120061 (Connection refused) 01:26:47.782 pjsua_acc.c SIP registration failed, status=503 (Connection refused) Service Unavailable Statuscode -1 AccountID2 01:26:47.791 pjsua_acc.c Account id 2 deleted 01:26:47.791 tcpc0x89da14 TCP transport destroyed with reason 120061: Connection refused ===================================================================================================================== When I do NOT append "transport=tcp;" to the registrar-uri (hence, TCP is not used) the account registration is successful - in this case, no notifications are received, though, while in backgroundmode. - I have tried different SIP services (e.g. netvoip.ch, VoipBuster) yielding the same result. Any hints are greatly appreciated!! Cheers, Thomas