[2016-08-22 14:53:31] DEBUG[25374]: http.c:1930 httpd_helper_thread: HTTP opening session. Top level [2016-08-22 14:53:31] DEBUG[25374]: http.c:1405 handle_uri: HTTP Request URI is /ws [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [httpstatus] len 10 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [amanager] len 8 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [arawman] len 7 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [manager] len 7 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [rawman] len 6 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [static] len 6 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [amxml] len 5 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [mxml] len 4 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [ari] len 3 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1460 handle_uri: match request [ws] with handler [ws] len 2 [2016-08-22 14:53:31] DEBUG[25374]: http.c:1476 handle_uri: Match made with [ws] == WebSocket connection from '[CLIENT_IP]:58425' for protocol 'sip' accepted using version '13' [2016-08-22 14:53:31] DEBUG[25374]: res_pjsip_transport_websocket.c:294 get_write_timeout: Found WSS transport with write timeout: 100 [2016-08-22 14:53:31] DEBUG[25374]: res_pjsip_transport_websocket.c:305 get_write_timeout: Write timeout for WS/WSS transports: 100 [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : sip_endpoint.c Processing incoming message: Request msg REGISTER/cseq=81 (rdata0x7f92c801f770) <--- Received SIP request (534 bytes) from WSS:[CLIENT_IP]:58425 ---> REGISTER sip:realm.com SIP/2.0 Via: SIP/2.0/WSS 192.0.2.123;branch=z9hG4bK9103430 Max-Forwards: 70 To: From: ;tag=su04fl6bni Call-ID: f78nnmv06n1ec0941b10rm CSeq: 81 REGISTER Contact: ;reg-id=1;+sip.instance="";expires=600 Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY Supported: path, gruu, outbound User-Agent: SIP.js/0.7.3 Content-Length: 0 [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_transport_websocket.c:397 websocket_on_rx_msg: Re-wrote Contact URI host/port to [CLIENT_IP]:58425 [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=81 (rdata0x7f92c801f770) [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000088 to use for Request msg REGISTER/cseq=81 (rdata0x7f92c801f770) [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : sip_endpoint.c Distributing rdata to modules: Request msg REGISTER/cseq=81 (rdata0x7f92c8005788) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoint_id_ips WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting 'siptrunk1.ct.ipvision.dk' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host 'siptrunk1.ct.ipvision.dk' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '193.223.99.38' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '193.223.99.38' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 193.223.99.38:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.10' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.10' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.10' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.10' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 148.122.250.10:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.150' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.150' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.150' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.150' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 148.122.250.150:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_ip.c:137 ip_identify: '[CLIENT_IP]:58425' did not match any identify section rules [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_user.c:124 username_identify: Attempting identify by From username '10014-TII3URJYS' domain 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_globals WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [30] in [0, 4294967295] gives [30](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [30] in [0, 4294967295] gives [30](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [70] in [0, 4294967295] gives [70](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [70] in [0, 4294967295] gives [70](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [20] in [0, 4294967295] gives [20](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [120] in [0, 4294967295] gives [120](0) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints_internal WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS@realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_domain_aliases WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints_internal WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'tenants_id' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'disallow' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'state' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'autopark_incoming' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'allow_multiple_upstreams' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'record' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [1800] in [0, 4294967295] gives [1800](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [90] in [0, 4294967295] gives [90](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [3] in [0, 4294967295] gives [3](0) [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_user.c:137 username_identify: Identified by From username '10014-TII3URJYS' domain 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : endpoint .Response msg 401/REGISTER/cseq=81 (tdta0x7f92d000b150) created [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_auths WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0) [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. <--- Transmitting SIP response (494 bytes) to WSS:[CLIENT_IP]:58425 ---> SIP/2.0 401 Unauthorized Via: SIP/2.0/WSS 192.0.2.123;rport=58425;received=[CLIENT_IP];branch=z9hG4bK9103430 Call-ID: f78nnmv06n1ec0941b10rm From: ;tag=su04fl6bni To: ;tag=z9hG4bK9103430 CSeq: 81 REGISTER WWW-Authenticate: Digest realm="asterisk",nonce="1471870411/4537eb7297aafd29b4c9f281bbea979f",opaque="598ba99e3cf6d35f",algorithm=md5,qop="auth" Server: PatientSky Asterisk PBX 13.9.0 Content-Length: 0 [2016-08-22 14:53:31] DEBUG[25124]: res_http_websocket.c:341 __ast_websocket_write: Writing websocket text frame, length 494 [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tdta0x7f92d000 .Destroying txdata Response msg 401/REGISTER/cseq=81 (tdta0x7f92d000b150) [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : sip_endpoint.c Processing incoming message: Request msg REGISTER/cseq=82 (rdata0x7f92c801f770) <--- Received SIP request (814 bytes) from WSS:[CLIENT_IP]:58425 ---> REGISTER sip:realm.com SIP/2.0 Via: SIP/2.0/WSS 192.0.2.123;branch=z9hG4bK1214698 Max-Forwards: 70 To: From: ;tag=su04fl6bni Call-ID: f78nnmv06n1ec0941b10rm CSeq: 82 REGISTER Authorization: Digest algorithm=MD5, username="10014-TII3URJYS", realm="asterisk", nonce="1471870411/4537eb7297aafd29b4c9f281bbea979f", uri="sip:realm.com", response="9f9bada89ca562b473dd6b74f2202c39", opaque="598ba99e3cf6d35f", qop=auth, cnonce="r0ibnvognhhv", nc=00000001 Contact: ;reg-id=1;+sip.instance="";expires=600 Allow: ACK,CANCEL,INVITE,MESSAGE,BYE,OPTIONS,INFO,NOTIFY Supported: path, gruu, outbound User-Agent: SIP.js/0.7.3 Content-Length: 0 [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_transport_websocket.c:397 websocket_on_rx_msg: Re-wrote Contact URI host/port to [CLIENT_IP]:58425 [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg REGISTER/cseq=82 (rdata0x7f92c801f770) [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-00000088 to use for Request msg REGISTER/cseq=82 (rdata0x7f92c801f770) [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : sip_endpoint.c Distributing rdata to modules: Request msg REGISTER/cseq=82 (rdata0x7f92c8025b78) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoint_id_ips WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting 'siptrunk1.ct.ipvision.dk' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host 'siptrunk1.ct.ipvision.dk' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '193.223.99.38' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '193.223.99.38' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 193.223.99.38:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.10' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.10' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.10' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.10' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 148.122.250.10:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.150' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.150' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '148.122.250.150' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '148.122.250.150' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: acl.c:661 ast_append_ha: 148.122.250.150:0/255.255.255.255:0 sense 0 appended to ACL [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_ip.c:113 ip_identify_match_check: Source address [CLIENT_IP]:58425 does not match identify 'trunk0045ipvision' [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_ip.c:113 ip_identify_match_check: Source address [CLIENT_IP]:58425 does not match identify 'trunk0047telenor' [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_ip.c:113 ip_identify_match_check: Source address [CLIENT_IP]:58425 does not match identify 'trunk0047telenorprod' [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_ip.c:137 ip_identify: '[CLIENT_IP]:58425' did not match any identify section rules [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_user.c:124 username_identify: Attempting identify by From username '10014-TII3URJYS' domain 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_globals WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [30] in [0, 4294967295] gives [30](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [30] in [0, 4294967295] gives [30](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [70] in [0, 4294967295] gives [70](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [70] in [0, 4294967295] gives [70](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [20] in [0, 4294967295] gives [20](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [120] in [0, 4294967295] gives [120](0) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints_internal WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS@atientsky.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_domain_aliases WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints_internal WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'tenants_id' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'disallow' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'state' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'autopark_incoming' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'allow_multiple_upstreams' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field 'record' from retrieval [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [1800] in [0, 4294967295] gives [1800](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [90] in [0, 4294967295] gives [90](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [5] in [0, 4294967295] gives [5](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [3] in [0, 4294967295] gives [3](0) [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_endpoint_identifier_user.c:137 username_identify: Identified by From username '10014-TII3URJYS' domain 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : endpoint .Response msg 401/REGISTER/cseq=82 (tdta0x7f92d000b150) created [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_auths WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives [32](0) [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_authenticator_digest.c:257 check_nonce: Calculated nonce 1471870411/4537eb7297aafd29b4c9f281bbea979f. Actual nonce is 1471870411/4537eb7297aafd29b4c9f281bbea979f [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:172 ast_sockaddr_split_hostport: Splitting '[CLIENT_IP]' into... [2016-08-22 14:53:31] DEBUG[25124]: netsock2.c:226 ast_sockaddr_split_hostport: ...host '[CLIENT_IP]' and port ''. [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tdta0x7f92d000 .Destroying txdata Response msg 401/REGISTER/cseq=82 (tdta0x7f92d000b150) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_domain_aliases WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = 'realm.com' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_registrar.c:556 match_aor: Matched id '10014-TII3URJYS' to aor '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_pjsip_registrar.c:631 find_registrar_aor: Matched aor '10014-TII3URJYS' by To username [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_aors_internal WHERE id = ? [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id') = '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3780 ast_parse_arg: extract double from [3.0] in [-inf, inf] gives [3.000000](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [60] in [0, 4294967295] gives [60](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [3600] in [0, 4294967295] gives [3600](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [7200] in [0, 4294967295] gives [7200](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [2] in [0, 4294967295] gives [2](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [60] in [0, 86400] gives [60](0) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_contacts_2b37a1ede9657d1a1adac9a420d493d3 WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '10014-TII3URJYS;@%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: config.c:3780 ast_parse_arg: extract double from [3.0] in [-inf, inf] gives [3.000000](0) [2016-08-22 14:53:31] DEBUG[25124]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives [0](0) [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: INSERT INTO ps_contacts_2b37a1ede9657d1a1adac9a420d493d3 (id, qualify_timeout, reg_server, call_id, via_addr, outbound_proxy, expiration_time, path, endpoint, qualify_frequency, user_agent, authenticate_qualify, uri, via_port) VALUES (?, ?, ?, ?, ?, ?, ?, [2016-08-22 14:53:31] WARNING[25124]: res_config_odbc.c:117 custom_prepare: SQL Prepare failed![INSERT INTO ps_contacts_2b37a1ede9657d1a1adac9a420d493d3 (id, qualify_timeout, reg_server, call_id, via_addr, outbound_proxy, expiration_time, path, endpoint, qualify_frequency, user_agent, authenticate_qualify, uri, via_port) VALUES (?, ?, ?, ?, ?, ?, ?,] [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] ERROR[25124]: res_pjsip_registrar.c:411 register_aor_core: Unable to bind contact 'sip:q4sbgm8m@[CLIENT_IP]:58425;transport=WSS' to AOR '10014-TII3URJYS' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:864 _ast_odbc_request_obj2: Reusing ODBC handle 0x2a5f408 from class 'asterisk_write' [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:113 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_contacts_2b37a1ede9657d1a1adac9a420d493d3 WHERE id LIKE ? ORDER BY id [2016-08-22 14:53:31] DEBUG[25124]: res_config_odbc.c:129 custom_prepare: Parameter 1 ('id LIKE') = '10014-TII3URJYS;@%' [2016-08-22 14:53:31] DEBUG[25124]: res_odbc.c:713 ast_odbc_release_obj: Releasing ODBC handle 0x2a5f408 into pool [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : endpoint .Response msg 200/REGISTER/cseq=82 (tdta0x7f92d000b150) created [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tsx0x7f92d000d ..Transaction created for Request msg REGISTER/cseq=82 (rdata0x7f92c8025b78) [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tsx0x7f92d000d .Incoming Request msg REGISTER/cseq=82 (rdata0x7f92c8025b78) in state Null [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tsx0x7f92d000d ..State changed from Null to Trying, event=RX_MSG [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tsx0x7f92d000d .Sending Response msg 200/REGISTER/cseq=82 (tdta0x7f92d000b150) in state Trying <--- Transmitting SIP response (374 bytes) to WSS:[CLIENT_IP]:58425 ---> SIP/2.0 200 OK Via: SIP/2.0/WSS 192.0.2.123;rport=58425;received=[CLIENT_IP];branch=z9hG4bK1214698 Call-ID: f78nnmv06n1ec0941b10rm From: ;tag=su04fl6bni To: ;tag=z9hG4bK1214698 CSeq: 82 REGISTER Date: Mon, 22 Aug 2016 12:53:31 GMT Server: PatientSky Asterisk PBX 13.9.0 Content-Length: 0 [2016-08-22 14:53:31] DEBUG[25124]: res_http_websocket.c:341 __ast_websocket_write: Writing websocket text frame, length 374 [2016-08-22 14:53:31] DEBUG[25124]: pjproject:0 : tsx0x7f92d000d ..State changed from Trying to Completed, event=TX_MSG [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tsx0x7f92d000d Timeout timer event [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tsx0x7f92d000d .State changed from Completed to Terminated, event=TIMER [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tsx0x7f92d000d Timeout timer event [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tsx0x7f92d000d .State changed from Terminated to Destroyed, event=TIMER [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tdta0x7f92d000 ..Destroying txdata Response msg 200/REGISTER/cseq=82 (tdta0x7f92d000b150) [2016-08-22 14:53:31] DEBUG[18671]: pjproject:0 : tsx0x7f92d000d Transaction destroyed!