Hello, I tried to run simple_pjsua with the argument sip:102 at 192.168.16.51.<sip:102 at 192.168.16.51> 192.168.16.51 is the address of an Asterisk server 192.168.16.107 is my windows pc computer running xlite phone. Please see the attached log, any pointers as to why I cannot connect to the server? With the same setup Simpleua and pjsua_app work well and I can make a call. Thanks, Avital -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100916/88f83086/attachment-0001.html> -------------- next part -------------- 17:20:47.431 os_core_win32. pjlib 1.6 for win32 initialized 17:20:47.463 sip_endpoint.c Creating endpoint instance... 17:20:47.478 pjlib select() I/O Queue created (01D330C8) 17:20:47.478 sip_endpoint.c Module "mod-msg-print" registered 17:20:47.478 sip_transport. Transport manager created. 17:20:47.494 sip_endpoint.c Module "mod-pjsua-log" registered 17:20:47.494 sip_endpoint.c Module "mod-tsx-layer" registered 17:20:47.494 sip_endpoint.c Module "mod-stateful-util" registered 17:20:47.494 sip_endpoint.c Module "mod-ua" registered 17:20:47.494 sip_endpoint.c Module "mod-100rel" registered 17:20:47.494 sip_endpoint.c Module "mod-pjsua" registered 17:20:47.494 sip_endpoint.c Module "mod-invite" registered 17:20:47.588 wmme_dev.c WMME initialized, found 4 devices: 17:20:47.588 wmme_dev.c dev_id 0: Wave mapper (in=2, out=2) 17:20:47.588 wmme_dev.c dev_id 1: SoundMAX HD Audio (in=2, out=0) 17:20:47.588 wmme_dev.c dev_id 2: Dazzle DVC100 Audio Device (in=2, out=0) 17:20:47.588 wmme_dev.c dev_id 3: SoundMAX HD Audio (in=0, out=2) 17:20:47.603 pjlib select() I/O Queue created (01D370FC) 17:20:47.635 sip_endpoint.c Module "mod-evsub" registered 17:20:47.635 sip_endpoint.c Module "mod-presence" registered 17:20:47.635 sip_endpoint.c Module "mod-mwi" registered 17:20:47.635 sip_endpoint.c Module "mod-refer" registered 17:20:47.650 sip_endpoint.c Module "mod-pjsua-pres" registered 17:20:47.650 sip_endpoint.c Module "mod-pjsua-im" registered 17:20:47.650 sip_endpoint.c Module "mod-pjsua-options" registered 17:20:47.650 pjsua_core.c 1 SIP worker threads created 17:20:47.650 pjsua_core.c pjsua version 1.6 for win32 initialized 17:20:47.650 pjsua_core.c SIP UDP socket reachable at 192.168.16.107:5060 17:20:47.650 udp01D46058 SIP UDP transport started, published address is 192.168.16.107:5060 17:20:47.666 pjsua_media.c RTP socket reachable at 192.168.16.107:4000 17:20:47.666 pjsua_media.c RTCP socket reachable at 192.168.16.107:4001 17:20:47.666 pjsua_media.c RTP socket reachable at 192.168.16.107:4002 17:20:47.666 pjsua_media.c RTCP socket reachable at 192.168.16.107:4003 17:20:47.681 pjsua_media.c RTP socket reachable at 192.168.16.107:4004 17:20:47.681 pjsua_media.c RTCP socket reachable at 192.168.16.107:4005 17:20:47.681 pjsua_media.c RTP socket reachable at 192.168.16.107:4006 17:20:47.681 pjsua_media.c RTCP socket reachable at 192.168.16.107:4007 17:20:47.681 sip_endpoint.c Module "mod-unsolicited-mwi" registered 17:20:47.697 pjsua_acc.c Account sip:814 at 192.168.16.107 added with id 0 17:20:47.697 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:47.697 pjsua_acc.c Registration sent 17:20:47.697 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:47.697 pjsua_media.c Opening sound device PCM at 16000/1/20ms 17:20:47.713 wmme_dev.c WaveAPI Sound player "Wave mapper" initialized (format=PCM, clock_rate=16000, channel_cou nt=1, samples_per_frame=320 (20ms)) 17:20:47.728 wmme_dev.c WaveAPI Sound recorder "Wave mapper" initialized (format=PCM, clock_rate=16000, channel_c ount=1, samples_per_frame=320 (20ms)) 17:20:47.728 ec01D51CC8 AEC created, clock_rate=16000, channel=1, samples per frame=320, tail length=200 ms, laten cy=100 ms 17:20:47.744 wmme_dev.c WMME playback stream started 17:20:47.744 wmme_dev.c WMME capture stream started 17:20:47.744 pjsua_call.c Making call with acc #0 to sip:102 at 192.168.16.51 17:20:47.744 pjsua_media.c Media index 0 selected for call 0 17:20:47.760 pjsua_core.c TX 1042 bytes Request msg INVITE/cseq=27485 (tdta01D8BA30) to UDP 192.168.16.51:5060: INVITE sip:102 at 192.168.16.51 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj25146583c41641b69f8d4c7839fa0dc3 Max-Forwards: 70 From: sip:814@192.168.16.107;tag=d96cbba4f7b74e02926b9830bfa2a458 To: sip:102 at 192.168.16.51 Contact: <sip:814 at 192.168.16.107:5060> Call-ID: 56a92a9d31a54de695510fc97e5b4643 CSeq: 27485 INVITE Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Supported: replaces, 100rel, timer, norefersub Session-Expires: 1800 Min-SE: 90 Content-Type: application/sdp Content-Length: 465 v=0 o=- 3493646447 3493646447 IN IP4 192.168.16.107 s=pjmedia c=IN IP4 192.168.16.107 t=0 0 a=X-nat:0 m=audio 4000 RTP/AVP 103 102 104 109 3 0 8 9 101 a=rtcp:4001 IN IP4 192.168.16.107 a=rtpmap:103 speex/16000 a=rtpmap:102 speex/8000 a=rtpmap:104 speex/32000 a=rtpmap:109 iLBC/8000 a=fmtp:109 mode=30 a=rtpmap:3 GSM/8000 a=rtpmap:0 PCMU/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:9 G722/8000 a=sendrecv a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 --end msg-- 17:20:47.838 APP Call 0 state=CALLING Press 'h' to hangup all calls, 'q' to quit 17:20:47.838 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:20:47.853 pjsua_core.c RX 551 bytes Response msg 407/INVITE/cseq=27485 (rdata01D4651C) from UDP 192.168.16.51:506 0: SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.16.107:5060;branch=z9hG4bKPj25146583c41641b69f8d4c7839fa0dc3;received=192.168.16.107;rport=5060 From: sip:814@192.168.16.107;tag=d96cbba4f7b74e02926b9830bfa2a458 To: sip:102 at 192.168.16.51;tag=as7e01829a Call-ID: 56a92a9d31a54de695510fc97e5b4643 CSeq: 27485 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Supported: replaces Proxy-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="7549bdd2" Content-Length: 0 --end msg-- 17:20:47.885 pjsua_core.c TX 337 bytes Request msg ACK/cseq=27485 (tdta01D8F230) to UDP 192.168.16.51:5060: ACK sip:102 at 192.168.16.51 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj25146583c41641b69f8d4c7839fa0dc3 Max-Forwards: 70 From: sip:814@192.168.16.107;tag=d96cbba4f7b74e02926b9830bfa2a458 To: sip:102 at 192.168.16.51;tag=as7e01829a Call-ID: 56a92a9d31a54de695510fc97e5b4643 CSeq: 27485 ACK Content-Length: 0 --end msg-- 17:20:47.916 sip_auth_clien Unable to set auth for tdta01D8BA30: can not find credential for asterisk/Digest 17:20:47.916 APP Call 0 state=DISCONNCTD 17:20:48.197 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:48.228 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:48.260 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:20:48.916 pjsua_media.c Closing sound device after idle for 1 seconds 17:20:48.916 pjsua_media.c Closing Wave mapper sound playback device and Wave mapper sound capture device 17:20:48.916 wmme_dev.c Stopped WMME playback stream 17:20:48.916 wmme_dev.c Stopped WMME capture stream 17:20:48.916 wmme_dev.c Stopped WMME playback stream 17:20:48.916 wmme_dev.c Stopped WMME capture stream 17:20:49.197 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:49.213 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:49.244 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:20:51.197 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:51.213 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:20:51.244 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:20:55.197 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.725 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.757 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:23:12.772 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=45295 (tdta01D52328) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.804 pjsua_acc.c SIP registration failed, status=408 (Request Timeout) 17:23:12.804 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=45295 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPjb22dd854c8ab448ea3694d27c621a713 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=b43a397f67a545549f7a8cb1dde513ae To: <sip:814 at 192.168.16.107> Call-ID: c9a70d1b820a4361a3b6b4d05c9d9087 CSeq: 45295 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.835 sip_endpoint.c Message Request msg REGISTER/cseq=45295 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:23:12.835 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=32835 (tdta01D8D028) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.866 pjsua_acc.c Registration sent 17:23:12.866 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=32835 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:12.897 sip_endpoint.c Message Request msg REGISTER/cseq=32835 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:23:13.366 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=32835 (tdta01D8D028) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:13.397 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=32835 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:13.429 sip_endpoint.c Message Request msg REGISTER/cseq=32835 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules 17:23:14.366 pjsua_core.c TX 388 bytes Request msg REGISTER/cseq=32835 (tdta01D8D028) to UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:14.397 pjsua_core.c RX 388 bytes Request msg REGISTER/cseq=32835 (rdata01D4651C) from UDP 192.168.16.107:5060: REGISTER sip:192.168.16.107 SIP/2.0 Via: SIP/2.0/UDP 192.168.16.107:5060;rport;branch=z9hG4bKPj352347a27cd94c85b08277c7db260506 Max-Forwards: 70 From: <sip:814@192.168.16.107>;tag=cbf23127f9234fd8a94fa9e628ca7772 To: <sip:814 at 192.168.16.107> Call-ID: 2ed2157bf21448a8b2c195a3ed32bdaf CSeq: 32835 REGISTER Contact: <sip:814 at 192.168.16.107:5060> Expires: 300 Content-Length: 0 --end msg-- 17:23:14.429 sip_endpoint.c Message Request msg REGISTER/cseq=32835 (rdata01D4651C) from 192.168.16.107:5060 was dropp ed/unhandled by any modules