Hi, I couldn't register PJSUA with IMS. The SIP REGISTER lacks an allow header,and nonce and response in the Authorization header is null,as fallows: Authorization: Digest username="88880014 at huawei.com", realm="huawei.com",* * *nonce=""*, uri="sip:huawei.com",* response=""* And also it always gets the error:SIP registration failed, status=408 (Request Timeout) But I can connect the server using the command ping. Am I missing an config parameter when running the PJSUA? I already have config_site.h set. I checked the mailing list archive for possible solution but it was futile. :::::::::::MY CONFIG_SITE.H FILE:::::::::: #define PJSIP_HAS_TLS_TRANSPORT 1 :::::::::::MY CONFIG_FILE:::::::::: # This is a comment in the config file. --auto-play-hangup --rec-file=rec.wav --auto-rec --play-file=123.wav --use-ims --id=sip:88880014 at huawei.com <sip%3A88880014 at huawei.com> --registrar=sip:huawei.com --realm=huawei.com --username=88880014 at huawei.com --password=huawei ::::::::::RUNNING PJSUA::::::::::::: pjsua-i386-Win32-vc8-Debug.exe --use-ims then,I want to register a new account using the command +a as follows: >>>+a Your SIP URL:<empty to cancel>:sip:88880014 at huawei.com<sip%3A88880014 at huawei.com> URL of the register:<empty to cancel>:sip:huawei.com Auth Realm:<empty to cancel>:huawei.com Auth Username:<empty to cancel>:88480014 at huawei.com Auth Password:<empty to cancel>:huawei ::::::PJSUA LOG:::::::::::::: 16:55:31.921 sip_endpoint.c Module "mod-pjsua-log" registered 16:55:31.921 sip_endpoint.c Module "mod-tsx-layer" registered 16:55:31.921 sip_endpoint.c Module "mod-stateful-util" registered 16:55:31.921 sip_endpoint.c Module "mod-ua" registered 16:55:31.921 sip_endpoint.c Module "mod-100rel" registered 16:55:31.921 sip_endpoint.c Module "mod-pjsua" registered 16:55:31.921 sip_endpoint.c Module "mod-invite" registered 16:55:31.921 pa_dev.c PA message: before paHostApiInitializers[0]. 16:55:31.968 pa_dev.c PA message: Pa_GetDeviceInfo: Num input channels reported as 65535! Changed to 2. 16:55:31.968 pa_dev.c PA message: Pa_GetDeviceInfo: Num output channels reported as 65535! Changed to 2. 16:55:31.968 pa_dev.c PA message: after paHostApiInitializers[0]. 16:55:31.968 pa_dev.c PA message: before paHostApiInitializers[1]. 16:55:32.156 pa_dev.c PA message: after paHostApiInitializers[1]. 16:55:32.156 pa_dev.c PA message: before paHostApiInitializers[2]. 16:55:32.156 pa_dev.c PA message: after paHostApiInitializers[2]. 16:55:32.156 pa_dev.c PortAudio sound library initialized, status=0 16:55:32.156 pa_dev.c PortAudio host api count=3 16:55:32.156 pa_dev.c Sound device count=8 16:55:32.156 wmme_dev.c WMME initialized, found 3 devices: 16:55:32.156 wmme_dev.c dev_id 0: Wave mapper (in=2, out=2) 16:55:32.156 wmme_dev.c dev_id 1: Realtek HD Audio Input (in=2, out=0) 16:55:32.156 wmme_dev.c dev_id 2: Realtek HD Audio output (in=0, out=2) 16:55:32.171 pjlib select() I/O Queue created (00E74C0C) 16:55:32.171 conference.c Creating conference bridge with 254 ports 16:55:32.171 sip_endpoint.c Module "mod-evsub" registered 16:55:32.171 sip_endpoint.c Module "mod-presence" registered 16:55:32.171 evsub.c Event pkg "presence" registered by mod-presence 16:55:32.171 sip_endpoint.c Module "mod-refer" registered 16:55:32.171 evsub.c Event pkg "refer" registered by mod-refer 16:55:32.171 sip_endpoint.c Module "mod-pjsua-pres" registered 16:55:32.187 sip_endpoint.c Module "mod-pjsua-im" registered 16:55:32.187 sip_endpoint.c Module "mod-pjsua-options" registered 16:55:32.187 pjsua_core.c 1 SIP worker threads created 16:55:32.187 pjsua_core.c pjsua version 1.3 for win32 initialized 16:55:32.187 sip_endpoint.c Module "mod-default-handler" registered 16:55:32.187 wav_player.c File player '123.wav' created: samp.rate=8000, ch=1, bufsize=4KB, filesize=93KB 16:55:32.187 resample.c resample created: high qualiy, large filter, in/out rate=8000/16000 16:55:32.187 resample.c resample created: high qualiy, large filter, in/out rate=16000/8000 16:55:32.187 wav_player.c File player '123.wav' created: samp.rate=8000, ch=1, bufsize=4KB, filesize=93KB 16:55:32.187 resample.c resample created: high qualiy, large filter, in/out rate=8000/16000 16:55:32.187 resample.c resample created: high qualiy, large filter, in/out rate=16000/8000 16:55:32.187 wav_player.c File player '456.wav' created: samp.rate=16000, ch=1, bufsize=4KB, filesize=4259KB 16:55:32.187 wav_writer.c File writer 'rec.wav' created: samp.rate=16000, bufsize=4KB 16:55:32.218 pjsua_core.c SIP UDP socket reachable at 192.168.9.111:5060 16:55:32.218 udp00E8F640 SIP UDP transport started, published address is 192.168.9.111:5060 16:55:32.218 pjsua_acc.c Account <sip:192.168.9.111:5060> added with id 0 16:55:32.234 tcplis:5060 SIP TCP listener ready for incoming connections at 192.168.9.111:5060 16:55:32.234 pjsua_acc.c Account <sip:192.168.9.111:5060;transport=TCP> added with id 1 16:55:32.234 pjsua_acc.c Account sip:88880014 at huawei.com<sip%3A88880014 at huawei.com>added with id 2 16:55:32.234 endpoint Request msg REGISTER/cseq=51716 (tdta00E92050) created. 16:55:32.234 tsx00E930E4 Transaction created for Request msg REGISTER/cseq=51717 (tdta00E92050) 16:55:32.234 tsx00E930E4 Sending Request msg REGISTER/cseq=51717 (tdta00E92050) in state Null 16:55:32.234 sip_resolve.c DNS resolver not available, target ' huawei.com:0' type=Unspecified will be resolved with gethostbyname() 16:55:32.234 sip_resolve.c Target 'huawei.com:0' type=Unspecified resolved to '119.145.14.118:5060' type=UDP (UDP transport) 16:55:32.234 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:32.234 tsx00E930E4 State changed from Null to Calling, event=TX_MSG 16:55:32.234 pjsua_acc.c Registration sent 16:55:32.250 pjsua_media.c RTP socket reachable at 192.168.9.111:4014 16:55:32.250 pjsua_media.c RTCP socket reachable at 192.168.9.111:4015 16:55:32.265 pjsua_media.c RTP socket reachable at 192.168.9.111:4016 16:55:32.265 pjsua_media.c RTCP socket reachable at 192.168.9.111:4017 16:55:32.296 pjsua_media.c RTP socket reachable at 192.168.9.111:4018 16:55:32.312 pjsua_media.c RTCP socket reachable at 192.168.9.111:4019 16:55:32.312 pjsua_media.c RTP socket reachable at 192.168.9.111:4020 16:55:32.312 pjsua_media.c RTCP socket reachable at 192.168.9.111:4021 16:55:32.734 tsx00E930E4 Retransmit timer event 16:55:32.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=0, restart?=1 16:55:32.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:33.734 tsx00E930E4 Retransmit timer event 16:55:33.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=1, restart?=1 16:55:33.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:35.734 tsx00E930E4 Retransmit timer event 16:55:35.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=2, restart?=1 16:55:35.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:39.734 tsx00E930E4 Retransmit timer event 16:55:39.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=3, restart?=1 16:55:39.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:43.734 tsx00E930E4 Retransmit timer event 16:55:43.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=4, restart?=1 16:55:43.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:47.734 tsx00E930E4 Retransmit timer event 16:55:47.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=5, restart?=1 16:55:47.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:51.734 tsx00E930E4 Retransmit timer event 16:55:51.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=6, restart?=1 16:55:51.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:55.734 tsx00E930E4 Retransmit timer event 16:55:55.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=7, restart?=1 16:55:55.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:55:59.734 tsx00E930E4 Retransmit timer event 16:55:59.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=8, restart?=1 16:55:59.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:56:03.734 tsx00E930E4 Retransmit timer event 16:56:03.734 tsx00E930E4 Retransmiting Request msg REGISTER/cseq=51717 (tdta00E92050), count=9, restart?=1 16:56:03.734 pjsua_core.c TX 538 bytes Request msg REGISTER/cseq=51717 (tdta00E92050) to UDP 119.145.14.118:5060: REGISTER sip:huawei.com SIP/2.0 Via: SIP/2.0/UDP 192.168.9.111:5060 ;rport;branch=z9hG4bKPj678ebea36542425a9defd78f6f30df7a Max-Forwards: 70 From: <sip:88880014@xxxxxxxxxx <sip%3A88880014 at huawei.com> >;tag=0ed29de6da6247349de2baeeec7af434 To: <sip:88880014 at huawei.com <sip%3A88880014 at huawei.com>> Call-ID: 70e74e3af7db4bba9536588d8e0fe53c CSeq: 51717 REGISTER Authorization: Digest username="88880014 at huawei.com", realm="huawei.com", nonce="", uri="sip:huawei.com", response="" User-Agent: PJSUA v1.3/win32 Contact: <sip:88880014 at 192.168.9.111:5060> Expires: 300 Content-Length: 0 --end msg-- 16:56:04.234 tsx00E930E4 Timeout timer event 16:56:04.234 tsx00E930E4 State changed from Calling to Terminated, event=TIMER *16:56:04.234 pjsua_acc.c SIP registration failed, status=408 (Request Timeout)* 16:56:04.234 tsx00E930E4 Timeout timer event 16:56:04.234 tsx00E930E4 State changed from Terminated to Destroyed, event=TIMER 16:56:04.234 tdta00E92050 Destroying txdata Request msg REGISTER/cseq=51717 (tdta00E92050) 16:56:04.234 tsx00E930E4 Transaction destroyed! Thanks a lot. FOX -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091021/678e8222/attachment-0001.html>