I’m using Asterisk 14.2.1 and PJSIP with realtime configuration
registration and outgoing calls to OVH work correctly.
Incoming calls refuse to authenticate.
Incoming calls appear to be anonymous and I have created an “anonymous” endpoint as stated in various configuration documents. res_pjsip_endpoint_identifier_anonymous.so is loaded
[Apr 4 17:55:27] <— Received SIP request (1304 bytes) from UDP:91.121.129.20:5060 —>
[Apr 4 17:55:27] INVITE sip:KFONE-default@192.168.1.34:5060;transport=udp SIP/2.0
[Apr 4 17:55:27] Authorization: Digest username=“anonymous”,realm=“sip.ovh.fr”,nonce=“1491321327/b311d2c643bcecd6bbccaf12db0a68cb”,uri=“sip:KFONE-default@192.168.1.34:5060”,response=“390e4af98661593b8ea7e7d0f7671ca9”,algorithm=MD5,opaque=“086f1ecd45870cf0”
[Apr 4 17:55:27] Call-ID: 16309-NQ-2c5ef558-76a11a521@sip.ovh.fr
[Apr 4 17:55:27] Contact: sip:10.7.1.60:5060
[Apr 4 17:55:27] Content-Type: application/sdp
[Apr 4 17:55:27] CSeq: 734518015 INVITE
[Apr 4 17:55:27] From: “0680123456” sip:0680123456@sip.ovh.fr;user=phone;tag=16309-GH-2c5ef559-2988e1f17
[Apr 4 17:55:27] Max-Forwards: 0
[Apr 4 17:55:27] Record-Route: sip:91.121.129.20:5060;lr
[Apr 4 17:55:27] To: sip:0972306227@10.7.1.60;user=phone
[Apr 4 17:55:27] Via: SIP/2.0/UDP 91.121.129.20:5060;branch=z9hG4bK-CJON-00616fdf-0125fbb2
[Apr 4 17:55:27] Allow: REFER,INVITE,NOTIFY,ACK,UPDATE,OPTIONS,REGISTER,SUBSCRIBE,NOTIFY,CANCEL,BYE,PRACK
[Apr 4 17:55:27] User-Agent: Cirpack/v4.70 (gw_sip)
[Apr 4 17:55:27] Content-Length: 444
[Apr 4 17:55:27]
[Apr 4 17:55:27] v=0
[Apr 4 17:55:27] o=cp10 149132132790 149132132790 IN IP4 10.7.1.45
[Apr 4 17:55:27] s=SIP Call
[Apr 4 17:55:27] c=IN IP4 91.121.129.142
[Apr 4 17:55:27] t=0 0
[Apr 4 17:55:27] m=audio 36532 RTP/AVP 18 4 8 0 125 111 101
[Apr 4 17:55:27] b=AS:26
[Apr 4 17:55:27] a=rtpmap:18 G729/8000/1
[Apr 4 17:55:27] a=fmtp:18 annexb=no
[Apr 4 17:55:27] a=rtpmap:4 G723/8000/1
[Apr 4 17:55:27] a=fmtp:4 annexa=no
[Apr 4 17:55:27] a=rtpmap:8 PCMA/8000/1
[Apr 4 17:55:27] a=rtpmap:0 PCMU/8000/1
[Apr 4 17:55:27] a=rtpmap:125 CLEARMODE/8000/1
[Apr 4 17:55:27] a=rtpmap:111 iLBC/8000/1
[Apr 4 17:55:27] a=fmtp:111 mode=20
[Apr 4 17:55:27] a=rtpmap:101 telephone-event/8000
[Apr 4 17:55:27] a=fmtp:101 0-15
[Apr 4 17:55:27] a=ptime:20
[Apr 4 17:55:27] a=sendrecv
[Apr 4 17:55:27]
[Apr 4 17:55:27] DEBUG[24765]: res_pjsip/pjsip_distributor.c:267 find_dialog: Could not find matching transaction for Request msg INVITE/cseq=734518015 (rdata0xb4f018c4)
[Apr 4 17:55:27] DEBUG[24765]: res_pjsip/pjsip_distributor.c:359 ast_sip_get_distributor_serializer: Calculated serializer pjsip/distributor-0000003f to use for Request msg INVITE/cseq=734518015 (rdata0xb4f018c4)
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 169.132.196.11:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 66.33.146.52:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 91.121.129.20:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:113 ip_identify_match_check: Source address 91.121.129.20:5060 does not match identify ‘net2phone’
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:108 ip_identify_match_check: Source address 91.121.129.20:5060 matches identify ‘ovh’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:869 _ast_odbc_request_obj2: Reusing ODBC handle 0x9119cc4 from class ‘asterisk’
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:116 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints WHERE id = ?
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:132 custom_prepare: Parameter 1 (‘id’) = ‘ovh’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:718 ast_odbc_release_obj: Releasing ODBC handle 0x9119cc4 into pool
[Apr 4 17:55:27] DEBUG[24766]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field ‘disallow’ from retrieval
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [1800] in [0, 4294967295] gives 1800
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [90] in [0, 4294967295] gives 90
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [1] in [0, 4294967295] gives 1
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:143 ip_identify: Retrieved endpoint ovh
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:869 _ast_odbc_request_obj2: Reusing ODBC handle 0x9119cc4 from class ‘asterisk’
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:116 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoint_id_ips WHERE id LIKE ? ORDER BY id
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:132 custom_prepare: Parameter 1 (‘id LIKE’) = ‘%’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:718 ast_odbc_release_obj: Releasing ODBC handle 0x9119cc4 into pool
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 66.33.146.52:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 169.132.196.11:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: acl.c:661 ast_append_ha: 91.121.129.20:0/255.255.255.255:0 sense 0 appended to ACL
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:113 ip_identify_match_check: Source address 91.121.129.20:5060 does not match identify ‘net2phone’
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:108 ip_identify_match_check: Source address 91.121.129.20:5060 matches identify ‘ovh’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:869 _ast_odbc_request_obj2: Reusing ODBC handle 0x9119cc4 from class ‘asterisk’
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:116 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_endpoints WHERE id = ?
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:132 custom_prepare: Parameter 1 (‘id’) = ‘ovh’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:718 ast_odbc_release_obj: Releasing ODBC handle 0x9119cc4 into pool
[Apr 4 17:55:27] DEBUG[24766]: res_sorcery_realtime.c:131 sorcery_realtime_filter_objectset: Filtering out realtime field ‘disallow’ from retrieval
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [1800] in [0, 4294967295] gives 1800
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [90] in [0, 4294967295] gives 90
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [0] in [0, 4294967295] gives 0
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [1] in [0, 4294967295] gives 1
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_endpoint_identifier_ip.c:143 ip_identify: Retrieved endpoint ovh
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:869 _ast_odbc_request_obj2: Reusing ODBC handle 0x9119cc4 from class ‘asterisk’
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:116 custom_prepare: Skip: 0; SQL: SELECT * FROM ps_auths WHERE id = ?
[Apr 4 17:55:27] DEBUG[24766]: res_config_odbc.c:132 custom_prepare: Parameter 1 (‘id’) = ‘ovh’
[Apr 4 17:55:27] DEBUG[24766]: res_odbc.c:718 ast_odbc_release_obj: Releasing ODBC handle 0x9119cc4 into pool
[Apr 4 17:55:27] DEBUG[24766]: config.c:3742 ast_parse_arg: extract uint from [32] in [0, 4294967295] gives 32
[Apr 4 17:55:27] DEBUG[24766]: res_pjsip_authenticator_digest.c:257 check_nonce: Calculated nonce 1491321327/b311d2c643bcecd6bbccaf12db0a68cb. Actual nonce is 1491321327/b311d2c643bcecd6bbccaf12db0a68cb
[Apr 4 17:55:27] NOTICE[24766]: res_pjsip/pjsip_distributor.c:525 log_failed_request: Request ‘INVITE’ from ‘“0680123456” sip:0680123456@sip.ovh.fr;user=phone’ failed for ‘91.121.129.20:5060’ (callid: 16309-NQ-2c5ef558-76a11a521@sip.ovh.fr) - Failed to authenticate
Any suggestions?