[pjsip] pjsua: Deactivation of STUN and ICE at lifetime

Helmut Wolf HelmutWolf1 at gmx.de
Wed May 28 09:34:38 EDT 2008


Hi Benny and all,

I am trying to deactivate STUN and ICE in pjsua (0.8.0) at lifetime but often it crashes. At startup STUN and ICE are always
activated. When NAT detection has finished (on_nat_detect() callback function in pjsua_app.c) depending on NAT type I want to
deactivate STUN and ICE and re-register the SIP account using an outbound proxy. How can I do this? I have tried to reconfigure
media as follows:

### pjsua_app.c ###

static void on_nat_detect(const pj_stun_nat_detect_result *res)
{
	pj_status_t status;

	if (res->status != PJ_SUCCESS) {
		pjsua_perror(THIS_FILE, "NAT detection failed", res->status);
	} else {
		PJ_LOG(3, (THIS_FILE, "NAT detected as %s", res->nat_type_name));
	}

	// Deactivating ICE
	app_config.media_cfg.enable_ice = PJ_FALSE;
	status = pjsua_media_reconfigure (&app_config.media_cfg);
	if (status != PJ_SUCCESS)
	{
		PJ_LOG (2,(THIS_FILE, "Error reconfiguring media. Status: %d", status));
		app_destroy();
	}
	else
	{	
		/* Add RTP transports */
		status = pjsua_media_transports_create(&app_config.rtp_cfg);
		if (status != PJ_SUCCESS)
		{
			PJ_LOG (2,(THIS_FILE, "Error creating media transports. Status: %d", status));
			app_destroy();
		}
	}
}


### pjsua_core.c ###

PJ_DEF(pj_status_t) pjsua_media_reconfigure (pjsua_media_config *media_cfg)
{
	pj_status_t status;

	status = pjsua_media_subsys_destroy ();
    	if (status != PJ_SUCCESS)
		goto on_error;

	PJ_LOG (3,(THIS_FILE, "### Deactivating STUN..."));
	status = pjsua_stun_deactivate();
	if (status != PJ_SUCCESS)
	{
		PJ_LOG (3,(THIS_FILE, "Error reconfiguring STUN. Status: %d", status));
		goto on_error;
	}
	
	status = pjsua_media_subsys_init(media_cfg);
	if (status != PJ_SUCCESS)
		goto on_error;

	status = pjsua_media_subsys_start();
	if (status != PJ_SUCCESS)
		goto on_error;

	return PJ_SUCCESS;

	on_error:
    	pjsua_destroy();
    	return status;
}

PJ_DEF(pj_status_t) pjsua_stun_deactivate()
{
	// Deactivate STUN
	pjsua_var.ua_cfg.stun_host = pj_str("");
	pjsua_var.ua_cfg.stun_domain = pj_str("");
	pjsua_var.ua_cfg.stun_relay_host = pj_str("");
	pj_memset (&pjsua_var.stun_srv, 0, sizeof(pjsua_var.stun_srv));
	pjsua_var.stun_status = PJ_SUCCESS;

	return PJ_SUCCESS;
}


### Logging when it crashes ###

'pjsua_vc6d.exe': 'C:\projects\https-tunnel\pjsip\pjproject\pjsip-apps\bin\pjsua_vc6d.exe' geladen, Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\ntdll.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\kernel32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\winmm.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\user32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\gdi32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\advapi32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\rpcrt4.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\secur32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\ws2_32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\msvcrt.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\ws2help.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\ole32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\imm32.dll' geladen, Keine Symbole geladen.
 15:27:33.857 os_core_win32. pjlib 0.8.0-trunk for win32 initialized
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\mswsock.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\dnsapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\winrnr.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wldap32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\hnetcfg.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wshtcpip.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\rasadhlp.dll' geladen, Keine Symbole geladen.
 15:27:33.873 sip_endpoint.c Creating endpoint instance...
 15:27:33.888          pjlib select() I/O Queue created (00B80858)
 15:27:33.888 sip_endpoint.c Module "mod-msg-print" registered
 15:27:33.888 sip_transport. Transport manager created.
 15:27:33.888 sip_endpoint.c Module "mod-pjsua-log" registered
 15:27:33.888 sip_endpoint.c Module "mod-tsx-layer" registered
 15:27:33.888 sip_endpoint.c Module "mod-stateful-util" registered
 15:27:33.888 sip_endpoint.c Module "mod-ua" registered
 15:27:33.888 sip_endpoint.c Module "mod-100rel" registered
 15:27:33.888 sip_endpoint.c Module "mod-pjsua" registered
 15:27:33.888 sip_endpoint.c Module "mod-invite" registered
 15:27:33.888   pjsua_core.c STUN server stun.voipways.de resolved, address is 62.206.25.123:3478
 15:27:33.888      pasound.c PA message: before paHostApiInitializers[0].

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wdmaud.drv' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wintrust.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\crypt32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\msasn1.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\imagehlp.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wdmaud.drv' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\wdmaud.drv' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\msacm32.drv' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\msacm32.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\midimap.dll' geladen, Keine Symbole geladen.
 15:27:33.982      pasound.c PA message: Pa_GetDeviceInfo: Num input channels reported as 65535! Changed to 2.

 15:27:33.982      pasound.c PA message: Pa_GetDeviceInfo: Num output channels reported as 65535! Changed to 2.

 15:27:33.982      pasound.c PA message: after paHostApiInitializers[0].

 15:27:33.982      pasound.c PA message: before paHostApiInitializers[1].

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\msctf.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\dsound.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\version.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0xda8) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0x1b0) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\ksuser.dll' geladen, Keine Symbole geladen.
Der Thread 'Win32 Thread' (0xdac) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0x210) hat mit Code 0 (0x0) geendet.
 15:27:34.107      pasound.c PA message: after paHostApiInitializers[1].

 15:27:34.107      pasound.c PA message: before paHostApiInitializers[2].

 15:27:34.123      pasound.c PA message: after paHostApiInitializers[2].

 15:27:34.123      pasound.c PortAudio sound library initialized, status=0
 15:27:34.123      pasound.c PortAudio host api count=3
 15:27:34.123      pasound.c Sound device count=8
 15:27:34.123          pjlib select() I/O Queue created (00AAA084)
 15:27:34.123   conference.c Creating conference bridge with 254 ports
 15:27:34.123   conference.c Sound device successfully created for port 0
 15:27:34.123  natck00AAFBF0 Local address is 192.168.16.168:2536
 15:27:34.123  natck00AAFBF0 Server set to 62.206.25.123:3478
 15:27:34.123  natck00AAFBF0 Performing Test I: Binding request to 62.206.25.123:3478
 15:27:34.123  natck00AAFBF0 TX 28 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=8, magic=2b9c3e22, tsx_id=1b6b08732866725b00000000
 Attributes:
  CHANGE-REQUEST: length=4, value=0 (0x0)
--- end of STUN message ---

 15:27:34.123 stuntsx00BACA8 STUN client transaction created
 15:27:34.123 stuntsx00BACA8 STUN sending message (transmit count=1)
 15:27:34.123 sip_endpoint.c Module "mod-evsub" registered
 15:27:34.123 sip_endpoint.c Module "mod-presence" registered
 15:27:34.123        evsub.c Event pkg "presence" registered by mod-presence
 15:27:34.123 sip_endpoint.c Module "mod-refer" registered
 15:27:34.123        evsub.c Event pkg "refer" registered by mod-refer
 15:27:34.123 sip_endpoint.c Module "mod-pjsua-pres" registered
 15:27:34.123 sip_endpoint.c Module "mod-pjsua-im" registered
 15:27:34.123 sip_endpoint.c Module "mod-pjsua-options" registered
 15:27:34.123   pjsua_core.c 1 SIP worker threads created
 15:27:34.123   pjsua_core.c pjsua version 0.8.0-trunk for win32 initialized
 15:27:34.138     stun_msg.c Unrecognized attribute type 32800
 15:27:34.138  natck00AAFBF0 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2b9c3e22, tsx_id=1b6b08732866725b00000000
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:2536
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.138  natck00AAFBF0 Completed Test I: Binding request, status=0
 15:27:34.138         stun.c Warning: unknown attr type 8020 in attr 3. Attribute was ignored.
 15:27:34.138         stun.c Warning: unknown attr type 8022 in attr 4. Attribute was ignored.
 15:27:34.138         stun.c Warning: unknown attr type 8020 in attr 3. Attribute was ignored.
 15:27:34.138         stun.c Warning: unknown attr type 8022 in attr 4. Attribute was ignored.
 15:27:34.138   pjsua_core.c SIP UDP socket reachable at 192.168.17.1:5060
 15:27:34.138    udp00BADBB8 SIP UDP transport started, published address is 192.168.17.1:5060
 15:27:34.138    pjsua_acc.c Account <sip:192.168.17.1:5060> added with id 0
 15:27:34.138    tcplis:5060 SIP TCP listener ready for incoming connections at 192.168.16.168:5060
 15:27:34.138    pjsua_acc.c Account <sip:192.168.16.168:5060;transport=TCP> added with id 1
 15:27:34.138    pjsua_acc.c Account sip:0049403680934412 at sip.voipways.de added with id 2
 15:27:34.138       endpoint Request msg REGISTER/cseq=18740 (tdta00BB1BB8) created.
 15:27:34.138    tsx00BB2C5C Transaction created for Request msg REGISTER/cseq=18741 (tdta00BB1BB8)
 15:27:34.138    tsx00BB2C5C Sending Request msg REGISTER/cseq=18741 (tdta00BB1BB8) in state Null
 15:27:34.138  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
 15:27:34.138  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.138   pjsua_core.c TX 464 bytes Request msg REGISTER/cseq=18741 (tdta00BB1BB8) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:5060;rport;branch=z9hG4bKPj82de2738ce4642f08993214bae53f31a
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=4bfdaf0a1f7c4b8b8ce73f1f90677a10
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18741 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:5060>
Expires: 300
Content-Length:  0


--end msg--
 15:27:34.138    tsx00BB2C5C State changed from Null to Calling, event=TX_MSG
 15:27:34.138    pjsua_acc.c Registration sent
 15:27:34.138        icetp00 ICE stream transport created
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\iphlpapi.dll' geladen, Keine Symbole geladen.
 15:27:34.154 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=18741 (rdata00BAE09C)
 15:27:34.154   pjsua_core.c RX 506 bytes Response msg 401/REGISTER/cseq=18741 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.17.1:5060;rport=10892;branch=z9hG4bKPj82de2738ce4642f08993214bae53f31a
From: <sip:0049403680934412 at sip.voipways.de>;tag=4bfdaf0a1f7c4b8b8ce73f1f90677a10
To: <sip:0049403680934412 at sip.voipways.de>;tag=d9b7b942ce9c40276060ed9da33191ed.b97b
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18741 REGISTER
WWW-Authenticate: Digest realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8"
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.154    tsx00BB2C5C Incoming Response msg 401/REGISTER/cseq=18741 (rdata00BAE09C) in state Calling
 15:27:34.154    tsx00BB2C5C State changed from Calling to Completed, event=RX_MSG
 15:27:34.154    tsx00BB62DC Transaction created for Request msg REGISTER/cseq=18742 (tdta00BB1BB8)
 15:27:34.154    tsx00BB62DC Sending Request msg REGISTER/cseq=18742 (tdta00BB1BB8) in state Null
 15:27:34.154  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
 15:27:34.154  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.154   pjsua_core.c TX 662 bytes Request msg REGISTER/cseq=18742 (tdta00BB1BB8) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:5060;rport;branch=z9hG4bKPj57ba3648d91d4101893d045e082145bc
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=4bfdaf0a1f7c4b8b8ce73f1f90677a10
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18742 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:5060>
Expires: 300
Authorization: Digest username="0049403680934412", realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8",
uri="sip:sip.voipways.de", response="ae0331aa373597ec5b18fc0a48153c33"
Content-Length:  0


--end msg--
 15:27:34.154    tsx00BB62DC State changed from Null to Calling, event=TX_MSG
 15:27:34.154        icetp00 Candidate 192.168.16.168:4000 (type=Host) added to component 1
 15:27:34.154        icetp00 Candidate 192.168.0.1:4000 (type=Host) added to component 1
 15:27:34.154        icetp00 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000100bb447c
 Attributes:
--- end of STUN message ---

 15:27:34.154 stuntsx00BB722 STUN client transaction created
 15:27:34.154 stuntsx00BB722 STUN sending message (transmit count=1)
 15:27:34.154     stun_msg.c Unrecognized attribute type 32800
 15:27:34.154        icetp00 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000100bb447c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4000
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.154        icetp00 STUN mapped address for 192.168.16.168:4000 is 192.168.17.1:4000
 15:27:34.154        icetp00 Candidate 192.168.16.168:4001 (type=Host) added to component 2
 15:27:34.154        icetp00 Candidate 192.168.0.1:4001 (type=Host) added to component 2
 15:27:34.154        icetp00 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000200bb447c
 Attributes:
--- end of STUN message ---

 15:27:34.154 stuntsx00BB912 STUN client transaction created
 15:27:34.154 stuntsx00BB912 STUN sending message (transmit count=1)
 15:27:34.154        icetp01 ICE stream transport created
 15:27:34.154 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=18742 (rdata00BAE09C)
 15:27:34.154   pjsua_core.c RX 493 bytes Response msg 200/REGISTER/cseq=18742 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.17.1:5060;rport=10892;branch=z9hG4bKPj57ba3648d91d4101893d045e082145bc
From: <sip:0049403680934412 at sip.voipways.de>;tag=4bfdaf0a1f7c4b8b8ce73f1f90677a10
To: <sip:0049403680934412 at sip.voipways.de>;tag=d9b7b942ce9c40276060ed9da33191ed.0b29
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18742 REGISTER
Contact: <sip:0049403680934412 at 192.168.17.1:5060>;expires=900;received="sip:192.168.17.1:10892"
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.154    tsx00BB62DC Incoming Response msg 200/REGISTER/cseq=18742 (rdata00BAE09C) in state Calling
 15:27:34.154    tsx00BB62DC State changed from Calling to Completed, event=RX_MSG
 15:27:34.170        icetp01 Candidate 192.168.16.168:4002 (type=Host) added to component 1
 15:27:34.170        icetp01 Candidate 192.168.0.1:4002 (type=Host) added to component 1
 15:27:34.170        icetp01 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000100bb927c
 Attributes:
--- end of STUN message ---

 15:27:34.170 stuntsx00BBC43 STUN client transaction created
 15:27:34.170 stuntsx00BBC43 STUN sending message (transmit count=1)
 15:27:34.170        icetp01 Candidate 192.168.16.168:4003 (type=Host) added to component 2
 15:27:34.170        icetp01 Candidate 192.168.0.1:4003 (type=Host) added to component 2
 15:27:34.170        icetp01 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000200bb927c
 Attributes:
--- end of STUN message ---

 15:27:34.170 stuntsx00BBE33 STUN client transaction created
 15:27:34.170 stuntsx00BBE33 STUN sending message (transmit count=1)
 15:27:34.170        icetp02 ICE stream transport created
 15:27:34.170        icetp02 Candidate 192.168.16.168:4004 (type=Host) added to component 1
 15:27:34.170        icetp02 Candidate 192.168.0.1:4004 (type=Host) added to component 1
 15:27:34.170        icetp02 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000100bbe48c
 Attributes:
--- end of STUN message ---

 15:27:34.170 stuntsx00BC066 STUN client transaction created
 15:27:34.170 stuntsx00BC066 STUN sending message (transmit count=1)
 15:27:34.185        icetp02 Candidate 192.168.16.168:4005 (type=Host) added to component 2
 15:27:34.185        icetp02 Candidate 192.168.0.1:4005 (type=Host) added to component 2
 15:27:34.185        icetp02 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000200bbe48c
 Attributes:
--- end of STUN message ---

 15:27:34.185 stuntsx00BC256 STUN client transaction created
 15:27:34.185 stuntsx00BC256 STUN sending message (transmit count=1)
 15:27:34.185        icetp03 ICE stream transport created
 15:27:34.185        icetp03 Candidate 192.168.16.168:4006 (type=Host) added to component 1
 15:27:34.185        icetp03 Candidate 192.168.0.1:4006 (type=Host) added to component 1
 15:27:34.185        icetp03 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000100bc26bc
 Attributes:
--- end of STUN message ---

 15:27:34.185 stuntsx00BC489 STUN client transaction created
 15:27:34.185 stuntsx00BC489 STUN sending message (transmit count=1)
 15:27:34.185        icetp03 Candidate 192.168.16.168:4007 (type=Host) added to component 2
 15:27:34.185        icetp03 Candidate 192.168.0.1:4007 (type=Host) added to component 2
 15:27:34.185        icetp03 TX 20 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=0, magic=2112a442, tsx_id=000000000000000200bc26bc
 Attributes:
--- end of STUN message ---

 15:27:34.185 stuntsx00BC679 STUN client transaction created
 15:27:34.185 stuntsx00BC679 STUN sending message (transmit count=1)
 15:27:34.185    pjsua_acc.c IP address change detected for account 2 (192.168.17.1:5060 --> 192.168.17.1:10892). Updating
registration..
 15:27:34.201  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices @16000 Hz
 15:27:34.201       endpoint Request msg REGISTER/cseq=18742 (tdta00BC6890) created.
 15:27:34.201      pasound.c PA message: PA - PlatformId = 0x2

 15:27:34.201      pasound.c PA message: PA - MajorVersion = 0x5

 15:27:34.201      pasound.c PA message: PA - MinorVersion = 0x1

 15:27:34.201    tsx00BC7D74 Transaction created for Request msg REGISTER/cseq=18743 (tdta00BC6890)
 15:27:34.201      pasound.c PA message: PortAudio on DirectSound - Latency = 2080 frames, 130 msec

 15:27:34.201    tsx00BC7D74 Sending Request msg REGISTER/cseq=18743 (tdta00BC6890) in state Null
 15:27:34.201  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
 15:27:34.201  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.201   pjsua_core.c TX 462 bytes Request msg REGISTER/cseq=18743 (tdta00BC6890) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:5060;rport;branch=z9hG4bKPje16cec5ee28549aebe7064b035cff79c
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=80781a2c767a471895874c5ec5eea502
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18743 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:5060>
Expires: 0
Content-Length:  0


--end msg--
 15:27:34.201    tsx00BC7D74 State changed from Null to Calling, event=TX_MSG
 15:27:34.201    pjsua_acc.c Unregistration sent
 15:27:34.201       endpoint Request msg REGISTER/cseq=32834 (tdta00BC9DB0) created.
 15:27:34.201    tsx00BCAE54 Transaction created for Request msg REGISTER/cseq=32835 (tdta00BC9DB0)
 15:27:34.201    tsx00BCAE54 Sending Request msg REGISTER/cseq=32835 (tdta00BC9DB0) in state Null
 15:27:34.201  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
 15:27:34.201  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.201   pjsua_core.c TX 480 bytes Request msg REGISTER/cseq=32835 (tdta00BC9DB0) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:10892;rport;branch=z9hG4bKPjc6e0edbf5e3f4366a45a2b8bf88f1297
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=a4aabdeaaa684f85b93a7f3bd652ad88
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 703c4eeddcfb4cf3baa3fd116780398a
CSeq: 32835 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:10892;transport=UDP>
Expires: 300
Content-Length:  0


--end msg--
 15:27:34.201    tsx00BCAE54 State changed from Null to Calling, event=TX_MSG
 15:27:34.201    pjsua_acc.c Registration sent
 15:27:34.201 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=18743 (rdata00BAE09C)
 15:27:34.201 sip_endpoint.c Message Response msg 401/REGISTER/cseq=18743 (rdata00BAE09C) from 62.206.25.123 has mismatch port in
sent-by but the rport parameter is correct
 15:27:34.201   pjsua_core.c RX 506 bytes Response msg 401/REGISTER/cseq=18743 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.17.1:5060;rport=10892;branch=z9hG4bKPje16cec5ee28549aebe7064b035cff79c
From: <sip:0049403680934412 at sip.voipways.de>;tag=80781a2c767a471895874c5ec5eea502
To: <sip:0049403680934412 at sip.voipways.de>;tag=d9b7b942ce9c40276060ed9da33191ed.9210
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18743 REGISTER
WWW-Authenticate: Digest realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8"
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.201    tsx00BC7D74 Incoming Response msg 401/REGISTER/cseq=18743 (rdata00BAE09C) in state Calling
 15:27:34.201    tsx00BC7D74 State changed from Calling to Completed, event=RX_MSG
 15:27:34.201    tsx00BCC674 Transaction created for Request msg REGISTER/cseq=18744 (tdta00BC6890)
 15:27:34.201    tsx00BCC674 Sending Request msg REGISTER/cseq=18744 (tdta00BC6890) in state Null
 15:27:34.201  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
 15:27:34.201  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.201   pjsua_core.c TX 661 bytes Request msg REGISTER/cseq=18744 (tdta00BC6890) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:10892;rport;branch=z9hG4bKPj579b3dc68c5949a2bef28b8fbc75aa76
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=80781a2c767a471895874c5ec5eea502
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18744 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:5060>
Expires: 0
Authorization: Digest username="0049403680934412", realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8",
uri="sip:sip.voipways.de", response="ae0331aa373597ec5b18fc0a48153c33"
Content-Length:  0


--end msg--
 15:27:34.201    tsx00BCC674 State changed from Null to Calling, event=TX_MSG
 15:27:34.201 sip_endpoint.c Processing incoming message: Response msg 401/REGISTER/cseq=32835 (rdata00BAE09C)
 15:27:34.217   pjsua_core.c RX 507 bytes Response msg 401/REGISTER/cseq=32835 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.17.1:10892;rport=10892;branch=z9hG4bKPjc6e0edbf5e3f4366a45a2b8bf88f1297
From: <sip:0049403680934412 at sip.voipways.de>;tag=a4aabdeaaa684f85b93a7f3bd652ad88
To: <sip:0049403680934412 at sip.voipways.de>;tag=fa790526c6d9dfd425617da794a880c6.1fd5
Call-ID: 703c4eeddcfb4cf3baa3fd116780398a
CSeq: 32835 REGISTER
WWW-Authenticate: Digest realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8"
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.217    tsx00BCAE54 Incoming Response msg 401/REGISTER/cseq=32835 (rdata00BAE09C) in state Calling
 15:27:34.217    tsx00BCAE54 State changed from Calling to Completed, event=RX_MSG
 15:27:34.217    tsx00BCCEB4 Transaction created for Request msg REGISTER/cseq=32836 (tdta00BC9DB0)
 15:27:34.217    tsx00BCCEB4 Sending Request msg REGISTER/cseq=32836 (tdta00BC9DB0) in state Null
 15:27:34.217  sip_resolve.c DNS resolver not available, target 'sip.voipways.de:0' type=Unspecified will be resolved with
gethostbyname()
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
 15:27:34.217  sip_resolve.c Target 'sip.voipways.de:0' type=Unspecified resolved to '62.206.25.123:5060' type=UDP (UDP transport)
 15:27:34.217   pjsua_core.c TX 678 bytes Request msg REGISTER/cseq=32836 (tdta00BC9DB0) to UDP 62.206.25.123:5060:
REGISTER sip:sip.voipways.de SIP/2.0
Via: SIP/2.0/UDP 192.168.17.1:10892;rport;branch=z9hG4bKPj181a5ea1e5554ff48e287297290821e6
Max-Forwards: 70
From: <sip:0049403680934412 at sip.voipways.de>;tag=a4aabdeaaa684f85b93a7f3bd652ad88
To: <sip:0049403680934412 at sip.voipways.de>
Call-ID: 703c4eeddcfb4cf3baa3fd116780398a
CSeq: 32836 REGISTER
User-Agent: PJSUA v0.8.0-trunk/win32
Contact: <sip:0049403680934412 at 192.168.17.1:10892;transport=UDP>
Expires: 300
Authorization: Digest username="0049403680934412", realm="sip.voipways.de", nonce="483d5ef2075b9e4bd682944e05e4142f9c0641d8",
uri="sip:sip.voipways.de", response="ae0331aa373597ec5b18fc0a48153c33"
Content-Length:  0


--end msg--
 15:27:34.217    tsx00BCCEB4 State changed from Null to Calling, event=TX_MSG
 15:27:34.217  natck00AAFBF0 Performing Test II: Binding request with change address and port request to 62.206.25.123:3478
 15:27:34.217  natck00AAFBF0 TX 28 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=8, magic=4ae13d6c, tsx_id=2cd672ae69525f9000000001
 Attributes:
  CHANGE-REQUEST: length=4, value=6 (0x6)
--- end of STUN message ---

 15:27:34.217 stuntsx00BCDE0 STUN client transaction created
 15:27:34.217 stuntsx00BCDE0 STUN sending message (transmit count=1)
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp00 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000200bb447c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4001
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp00 STUN mapped address for 192.168.16.168:4001 is 192.168.17.1:4001
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp01 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000100bb927c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4002
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp01 STUN mapped address for 192.168.16.168:4002 is 192.168.17.1:4002
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp01 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000200bb927c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4003
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp01 STUN mapped address for 192.168.16.168:4003 is 192.168.17.1:4003
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp02 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000100bbe48c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4004
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp02 STUN mapped address for 192.168.16.168:4004 is 192.168.17.1:4004
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp02 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000200bbe48c
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4005
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp02 STUN mapped address for 192.168.16.168:4005 is 192.168.17.1:4005
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp03 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000100bc26bc
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4006
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp03 STUN mapped address for 192.168.16.168:4006 is 192.168.17.1:4006
 15:27:34.217     stun_msg.c Unrecognized attribute type 32800
 15:27:34.217        icetp03 RX STUN message from 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=2112a442, tsx_id=000000000000000200bc26bc
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:4007
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:34.217        icetp03 STUN mapped address for 192.168.16.168:4007 is 192.168.17.1:4007
 15:27:34.217 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=18744 (rdata00BAE09C)
 15:27:34.217   pjsua_core.c RX 397 bytes Response msg 200/REGISTER/cseq=18744 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.17.1:10892;rport=10892;branch=z9hG4bKPj579b3dc68c5949a2bef28b8fbc75aa76
From: <sip:0049403680934412 at sip.voipways.de>;tag=80781a2c767a471895874c5ec5eea502
To: <sip:0049403680934412 at sip.voipways.de>;tag=d9b7b942ce9c40276060ed9da33191ed.0447
Call-ID: 79c1c18fcc374b7fbc63eec608156882
CSeq: 18744 REGISTER
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.217    tsx00BCC674 Incoming Response msg 200/REGISTER/cseq=18744 (rdata00BAE09C) in state Calling
 15:27:34.217    tsx00BCC674 State changed from Calling to Completed, event=RX_MSG
 15:27:34.217 sip_endpoint.c Processing incoming message: Response msg 200/REGISTER/cseq=32836 (rdata00BAE09C)
 15:27:34.217   pjsua_core.c RX 509 bytes Response msg 200/REGISTER/cseq=32836 (rdata00BAE09C) from UDP 62.206.25.123:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.17.1:10892;rport=10892;branch=z9hG4bKPj181a5ea1e5554ff48e287297290821e6
From: <sip:0049403680934412 at sip.voipways.de>;tag=a4aabdeaaa684f85b93a7f3bd652ad88
To: <sip:0049403680934412 at sip.voipways.de>;tag=fa790526c6d9dfd425617da794a880c6.b692
Call-ID: 703c4eeddcfb4cf3baa3fd116780398a
CSeq: 32836 REGISTER
Contact: <sip:0049403680934412 at 192.168.17.1:10892;transport=UDP>;expires=900;received="sip:192.168.17.1:10892"
Server: MCCS SIP-Proxy 1.5
Content-Length: 0


--end msg--
 15:27:34.217    tsx00BCCEB4 Incoming Response msg 200/REGISTER/cseq=32836 (rdata00BAE09C) in state Calling
 15:27:34.217    tsx00BCCEB4 State changed from Calling to Completed, event=RX_MSG
 15:27:34.217    pjsua_acc.c sip:0049403680934412 at sip.voipways.de: registration success, status=200 (OK), will re-register in 900
seconds
 15:27:34.217    pjsua_acc.c Keep-alive timer started for acc 2, destination:62.206.25.123:5060, interval:15s
 15:27:34.232      pasound.c PA message: InitInputBuffer() returns 0

 15:27:34.232      pasound.c PA message: PA - PlatformId = 0x2

 15:27:34.232      pasound.c PA message: PA - MajorVersion = 0x5

 15:27:34.232      pasound.c PA message: PA - MinorVersion = 0x1

 15:27:34.232      pasound.c PA message: PortAudio on DirectSound - Latency = 2080 frames, 130 msec

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
 15:27:34.263      pasound.c PA message: InitOutputBuffer() returns 0

 15:27:34.263      pasound.c Opened device Primärer Soundaufnahmetreiber(Windows DirectSound)/Primärer Soundtreiber(Windows
DirectSound) for recording and playback, sample rate=16000, ch=1, bits=16, 160 samples per frame, input latency=0 ms, output
latency=120 ms
 15:27:34.263      pasound.c Starting Primärer Soundaufnahmetreiber stream..
 15:27:34.263      pasound.c PA message: PaHost_StartOutput: IDirectSoundBuffer_SetCurrentPosition returned = 0x0.

 15:27:34.263      pasound.c PA message: PaHost_StartOutput: IDirectSoundBuffer_Play returned = 0x0.

 15:27:34.263      pasound.c PA message: StartStream: DSW_StartInput returned = 0x0.

 15:27:34.263      pasound.c Done, status=0
 15:27:34.263   echo_speex.c Speex Echo canceller/AEC created, clock_rate=16000, samples per frame=160, tail length=200 ms,
latency=120 ms
 15:27:34.279  natck00AAFBF0 Performing Test III: Binding request with change port request to 62.206.25.123:3478
 15:27:34.295  natck00AAFBF0 TX 28 bytes STUN message to 62.206.25.123:3478:
--- begin STUN message ---
STUN Binding request
 Hdr: length=8, magic=0bb32ea6, tsx_id=12db153c7e87390c00000002
 Attributes:
  CHANGE-REQUEST: length=4, value=2 (0x2)
--- end of STUN message ---

 15:27:34.295 stuntsx00BEFC1 STUN client transaction created
 15:27:34.295 stuntsx00BEFC1 STUN sending message (transmit count=1)
 15:27:34.295      pasound.c Player thread started
 15:27:34.326 stuntsx00BCDE0 STUN sending message (transmit count=2)
 15:27:34.326    aec00BAAF98 AEC reset, delay=4, prefetch=4
 15:27:34.326    aec00BAAF98 AEC reset, delay=4, prefetch=4
 15:27:34.326    aec00BAAF98 AEC reset, delay=3, prefetch=4
 15:27:34.326    aec00BAAF98 AEC reset, delay=2, prefetch=4
 15:27:34.357    aec00BAAF98  AEC Info: prefetching (first seq=6)
 15:27:34.357    aec00BAAF98  AEC Info: prefetching (first seq=6)
 15:27:34.357    aec00BAAF98  AEC Info: prefetching (first seq=6)
 15:27:34.388    aec00BAAF98  AEC Info: prefetching (first seq=6)
 15:27:34.404 stuntsx00BEFC1 STUN sending message (transmit count=2)
 15:27:34.451    aec00BAAF98  AEC info: queue is full, frame discarded [count=6, seq=17]
 15:27:34.451    aec00BAAF98 AEC reset, delay=5, prefetch=4
 15:27:34.451    aec00BAAF98  AEC Info: prefetching (first seq=17)
 15:27:34.451    aec00BAAF98  AEC Info: prefetching (first seq=17)
 15:27:34.451    aec00BAAF98  AEC Info: prefetching (first seq=17)
 15:27:34.529 stuntsx00BCDE0 STUN sending message (transmit count=3)
 15:27:34.607 stuntsx00BEFC1 STUN sending message (transmit count=3)
 15:27:34.935 stuntsx00BCDE0 STUN sending message (transmit count=4)
 15:27:35.013 stuntsx00BEFC1 STUN sending message (transmit count=4)
 15:27:35.748 stuntsx00BCDE0 STUN sending message (transmit count=5)
 15:27:35.826 stuntsx00BEFC1 STUN sending message (transmit count=5)
 15:27:36.138 stuntsx00BACA8 STUN client transaction destroyed
 15:27:36.154 stuntsx00BB722 STUN client transaction destroyed
 15:27:36.232 stuntsx00BC679 STUN client transaction destroyed
 15:27:36.232 stuntsx00BBE33 STUN client transaction destroyed
 15:27:36.232 stuntsx00BBC43 STUN client transaction destroyed
 15:27:36.232 stuntsx00BB912 STUN client transaction destroyed
 15:27:36.232 stuntsx00BC066 STUN client transaction destroyed
 15:27:36.232 stuntsx00BC489 STUN client transaction destroyed
 15:27:36.232 stuntsx00BC256 STUN client transaction destroyed
 15:27:37.357 stuntsx00BCDE0 STUN sending message (transmit count=6)
 15:27:37.435 stuntsx00BEFC1 STUN sending message (transmit count=6)
 15:27:39.169    tsx00BB2C5C Timeout timer event
 15:27:39.169    tsx00BB2C5C State changed from Completed to Terminated, event=TIMER
 15:27:39.169    tsx00BB62DC Timeout timer event
 15:27:39.169    tsx00BB62DC State changed from Completed to Terminated, event=TIMER
 15:27:39.169    tsx00BB2C5C Timeout timer event
 15:27:39.169    tsx00BB2C5C State changed from Terminated to Destroyed, event=TIMER
 15:27:39.169    tsx00BB2C5C Transaction destroyed!
 15:27:39.169    tsx00BB62DC Timeout timer event
 15:27:39.169    tsx00BB62DC State changed from Terminated to Destroyed, event=TIMER
 15:27:39.169   tdta00BB1BB8 Destroying txdata Request msg REGISTER/cseq=18742 (tdta00BB1BB8)
 15:27:39.169    tsx00BB62DC Transaction destroyed!
 15:27:39.216    tsx00BC7D74 Timeout timer event
 15:27:39.216    tsx00BC7D74 State changed from Completed to Terminated, event=TIMER
 15:27:39.216    tsx00BC7D74 Timeout timer event
 15:27:39.216    tsx00BC7D74 State changed from Terminated to Destroyed, event=TIMER
 15:27:39.216    tsx00BC7D74 Transaction destroyed!
 15:27:39.232    tsx00BCC674 Timeout timer event
 15:27:39.232    tsx00BCC674 State changed from Completed to Terminated, event=TIMER
 15:27:39.232    tsx00BCCEB4 Timeout timer event
 15:27:39.232    tsx00BCCEB4 State changed from Completed to Terminated, event=TIMER
 15:27:39.232    tsx00BCAE54 Timeout timer event
 15:27:39.232    tsx00BCAE54 State changed from Completed to Terminated, event=TIMER
 15:27:39.232    tsx00BCC674 Timeout timer event
 15:27:39.232    tsx00BCC674 State changed from Terminated to Destroyed, event=TIMER
 15:27:39.232   tdta00BC6890 Destroying txdata Request msg REGISTER/cseq=18744 (tdta00BC6890)
 15:27:39.232    tsx00BCC674 Transaction destroyed!
 15:27:39.232    tsx00BCCEB4 Timeout timer event
 15:27:39.232    tsx00BCCEB4 State changed from Terminated to Destroyed, event=TIMER
 15:27:39.232    tsx00BCCEB4 Transaction destroyed!
 15:27:39.232    tsx00BCAE54 Timeout timer event
 15:27:39.232    tsx00BCAE54 State changed from Terminated to Destroyed, event=TIMER
 15:27:39.232   tdta00BC9DB0 Destroying txdata Request msg REGISTER/cseq=32836 (tdta00BC9DB0)
 15:27:39.232    tsx00BCAE54 Transaction destroyed!
 15:27:39.294   sound_port.c EC suspended because of inactivity
 15:27:40.560 stuntsx00BCDE0 STUN sending message (transmit count=7)
 15:27:40.638 stuntsx00BEFC1 STUN sending message (transmit count=7)
 15:27:42.169 stuntsx00BCDE0 STUN timeout waiting for response
 15:27:42.169  natck00AAFBF0 Completed Test II: Binding request with change address and port request, status=370004
 15:27:42.169  natck00AAFBF0 Performing Test IB: Binding request to alternate address to 62.206.25.113:3479
 15:27:42.169  natck00AAFBF0 TX 28 bytes STUN message to 62.206.25.113:3479:
--- begin STUN message ---
STUN Binding request
 Hdr: length=8, magic=0f3e0099, tsx_id=0124305e440d491c00000003
 Attributes:
  CHANGE-REQUEST: length=4, value=0 (0x0)
--- end of STUN message ---

 15:27:42.169 stuntsx00BB722 STUN client transaction created
 15:27:42.169 stuntsx00BB722 STUN sending message (transmit count=1)
 15:27:42.169     stun_msg.c Unrecognized attribute type 32800
 15:27:42.169  natck00AAFBF0 RX STUN message from 62.206.25.113:3479:
--- begin STUN message ---
STUN Binding success response
 Hdr: length=68, magic=0f3e0099, tsx_id=0124305e440d491c00000003
 Attributes:
  MAPPED-ADDRESS: length=8, IPv4 addr=192.168.17.1:2536
  SOURCE-ADDRESS: length=8, IPv4 addr=62.206.25.113:3479
  CHANGED-ADDRESS: length=8, IPv4 addr=62.206.25.123:3478
  SERVER: length=16, value="Vovida.org 0.96"
--- end of STUN message ---

 15:27:42.169  natck00AAFBF0 Completed Test IB: Binding request to alternate address, status=0
 15:27:42.247 stuntsx00BEFC1 STUN timeout waiting for response
 15:27:42.247  natck00AAFBF0 Completed Test III: Binding request with change port request, status=370004
 15:27:42.247    pjsua_app.c NAT detected as Port Restricted
 15:27:42.247    pjsua_app.c ### Deactivating ICE...
 15:27:42.247  pjsua_media.c Closing (null) sound playback device and (null) sound capture device
 15:27:42.262      pasound.c Stopping stream..
 15:27:42.309      pasound.c Done, status=0
 15:27:42.309      pasound.c Closing Primärer Soundaufnahmetreiber: 0 underflow, 0 overflow
Der Thread 'Win32 Thread' (0xa58) hat mit Code 0 (0x0) geendet.
Der Thread 'Win32 Thread' (0x974) hat mit Code 0 (0x0) geendet.
 15:27:42.309        icetp00 ICE stream transport shutting down
 15:27:42.309        icetp00 ICE stream transport destroyed
 15:27:42.309        icetp01 ICE stream transport shutting down
 15:27:42.325        icetp01 ICE stream transport destroyed
 15:27:42.325        icetp02 ICE stream transport shutting down
 15:27:42.325        icetp02 ICE stream transport destroyed
 15:27:42.325        icetp03 ICE stream transport shutting down
 15:27:42.325        icetp03 ICE stream transport destroyed
 15:27:42.637          media Thread stack max usage=2165 by
c:\projects\https-tunnel\pjsip\pjproject\pjlib\src\pj\os_core_win32.c:903
Der Thread 'Win32 Thread' (0x950) hat mit Code 0 (0x0) geendet.
 15:27:42.637      pasound.c PortAudio sound library shutting down..
 15:27:42.637      pasound.c PA message: TerminateHostApis in 

 15:27:42.637      pasound.c PA message: TerminateHostApis out

 15:27:42.637   pjsua_core.c ### Deactivating STUN...
 15:27:42.637      pasound.c PA message: before paHostApiInitializers[0].

 15:27:42.637      pasound.c PA message: Pa_GetDeviceInfo: Num input channels reported as 65535! Changed to 2.

 15:27:42.637      pasound.c PA message: Pa_GetDeviceInfo: Num output channels reported as 65535! Changed to 2.

 15:27:42.637      pasound.c PA message: after paHostApiInitializers[0].

 15:27:42.637      pasound.c PA message: before paHostApiInitializers[1].

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0xb1c) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0xf0c) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0xd4c) hat mit Code 0 (0x0) geendet.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
Der Thread 'Win32 Thread' (0x6c8) hat mit Code 0 (0x0) geendet.
 15:27:42.700      pasound.c PA message: after paHostApiInitializers[1].

 15:27:42.700      pasound.c PA message: before paHostApiInitializers[2].

 15:27:42.700      pasound.c PA message: after paHostApiInitializers[2].

 15:27:42.700      pasound.c PortAudio sound library initialized, status=0
 15:27:42.700      pasound.c PortAudio host api count=3
 15:27:42.700      pasound.c Sound device count=8
 15:27:42.700          pjlib select() I/O Queue created (00BAC324)
 15:27:42.716   conference.c Creating conference bridge with 254 ports
 15:27:42.716   conference.c Sound device successfully created for port 0
 15:27:42.716  pjsua_media.c RTP socket reachable at 192.168.16.168:4000
 15:27:42.716  pjsua_media.c RTCP socket reachable at 192.168.16.168:4001
 15:27:42.716  pjsua_media.c RTP socket reachable at 192.168.16.168:4002
 15:27:42.716  pjsua_media.c RTCP socket reachable at 192.168.16.168:4003
 15:27:42.716  pjsua_media.c RTP socket reachable at 192.168.16.168:4004
 15:27:42.716  pjsua_media.c RTCP socket reachable at 192.168.16.168:4005
 15:27:42.731  pjsua_media.c RTP socket reachable at 192.168.16.168:4006
 15:27:42.731  pjsua_media.c RTCP socket reachable at 192.168.16.168:4007
 15:27:42.731  pjsua_media.c pjsua_set_snd_dev(): attempting to open devices @16000 Hz
 15:27:42.731      pasound.c PA message: PA - PlatformId = 0x2

 15:27:42.731      pasound.c PA message: PA - MajorVersion = 0x5

 15:27:42.731      pasound.c PA message: PA - MinorVersion = 0x1

 15:27:42.731      pasound.c PA message: PortAudio on DirectSound - Latency = 2080 frames, 130 msec

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
 15:27:42.747      pasound.c PA message: InitInputBuffer() returns 0

 15:27:42.747      pasound.c PA message: PA - PlatformId = 0x2

 15:27:42.747      pasound.c PA message: PA - MajorVersion = 0x5

 15:27:42.747      pasound.c PA message: PA - MinorVersion = 0x1

 15:27:42.747      pasound.c PA message: PortAudio on DirectSound - Latency = 2080 frames, 130 msec

'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' geladen, Keine Symbole geladen.
'pjsua_vc6d.exe': 'C:\WINDOWS\system32\setupapi.dll' entladen
 15:27:42.778      pasound.c PA message: InitOutputBuffer() returns 0

 15:27:42.778      pasound.c Opened device Primärer Soundaufnahmetreiber(Windows DirectSound)/Primärer Soundtreiber(Windows
DirectSound) for recording and playback, sample rate=16000, ch=1, bits=16, 160 samples per frame, input latency=0 ms, output
latency=120 ms
 15:27:42.778      pasound.c Starting Primärer Soundaufnahmetreiber stream..
 15:27:42.778      pasound.c PA message: PaHost_StartOutput: IDirectSoundBuffer_SetCurrentPosition returned = 0x0.

 15:27:42.778      pasound.c PA message: PaHost_StartOutput: IDirectSoundBuffer_Play returned = 0x0.

 15:27:42.778      pasound.c PA message: StartStream: DSW_StartInput returned = 0x0.

 15:27:42.778      pasound.c Done, status=0
 15:27:42.778   echo_speex.c Speex Echo canceller/AEC created, clock_rate=16000, samples per frame=160, tail length=200 ms,
latency=120 ms
 15:27:42.778  pjsua_media.c RTP socket reachable at 192.168.16.168:4008
 15:27:42.778  pjsua_media.c RTCP socket reachable at 192.168.16.168:4009
Eine Ausnahme (erste Chance) bei 0x0041443d in pjsua_vc6d.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00bc7ac8.
Unbehandelte Ausnahme bei 0x0041443d in pjsua_vc6d.exe: 0xC0000005: Zugriffsverletzung-Leseposition 0x00bc7ac8.


### call stack (Visual Studio 2003) ###
pjsua_vc6d.exe!pj_thread_check_stack(const char * file=0x0052f468, int line=903)  Zeile 597 + 0x6
pjsua_vc6d.exe!pj_mutex_lock(pj_mutex_t * mutex=0x00bb6d5c)  Zeile 903 + 0x13
pjsua_vc6d.exe!get_frame(pjmedia_port * this_port=0x00bedf9c, pjmedia_frame * frame=0x015bf7b0)  Zeile 1697 + 0xc
pjsua_vc6d.exe!pjmedia_port_get_frame(pjmedia_port * port=0x00bedf9c, pjmedia_frame * frame=0x015bf7b0)  Zeile 67 + 0x10
pjsua_vc6d.exe!play_cb(void * user_data=0x00bb6de8, unsigned int timestamp=160, void * output=0x00151700, unsigned int size=320)
Zeile 130 + 0xd
pjsua_vc6d.exe!PaPlayerCallback(const void * input=0x00000000, void * output=0x00151700, unsigned long frameCount=160, const
PaStreamCallbackTimeInfo * timeInfo=0x015bfd2c, unsigned long statusFlags=0, void * userData=0x00bb451c)  Zeile 175 + 0x1e
pjsua_vc6d.exe!AdaptingOutputOnlyProcess(PaUtilBufferProcessor * bp=0x001515b0, int * streamCallbackResult=0x015bfdc8,
PaUtilChannelDescriptor * hostOutputChannels=0x0015bf68, unsigned long framesToProcess=189)  Zeile 1060 + 0x31
pjsua_vc6d.exe!PaUtil_EndBufferProcessing(PaUtilBufferProcessor * bp=0x001515b0, int * streamCallbackResult=0x015bfdc8)  Zeile 1582
+ 0x1b
pjsua_vc6d.exe!Pa_TimeSlice(PaWinDsStream * stream=0x00151560)  Zeile 2106 + 0x10
pjsua_vc6d.exe!Pa_TimerCallback(unsigned int uID=48, unsigned int uMsg=0, unsigned long dwUser=1381728, unsigned long dw1=0,
unsigned long dw2=0)  Zeile 2209 + 0x9
winmm.dll!76af54f3() 	
winmm.dll!76b0ae36() 	
winmm.dll!76b0af21() 	
winmm.dll!76b0af3a() 	
kernel32.dll!7c80b683() 	


Thanks in advance!
Helmut






More information about the pjsip mailing list