I'm trying to get working a spa3000 with asterisk. My problem is I cant get wroking the incomming calls (I installed the lastest firmware). My problem is asterisk is rejecting the authentication from the spa3000. Asterisk answers forbidden (SIP/2.0 403 Forbidden) and I think I placed the username and password correctly...
Sip.conf says this: [linea2] username=linea2 type=peer secret=1111 context=from-pstn auth=md5 [PSTN_2] username=line2 type=peer secret=1111 qualify=yes port=5061 nat=no host=192.168.0.20 context=from-pstn canreinvite=no auth=md5 The sip debug says this: <-- SIP read from 192.168.0.20:5061: INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-fc209f89 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060> Call-ID: [EMAIL PROTECTED] CSeq: 101 INVITE Max-Forwards: 70 Contact: <sip:[EMAIL PROTECTED]:5061> Expires: 240 User-Agent: Sipura/SPA3000-3.1.7(GWg) Content-Length: 426 Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER Supported: x-sipura Content-Type: application/sdp v=0 o=- 23156020 23156020 IN IP4 192.168.0.20 s=- c=IN IP4 192.168.0.20 t=0 0 m=audio 16478 RTP/AVP 0 2 4 8 18 96 97 98 100 101 a=rtpmap:0 PCMU/8000 a=rtpmap:2 G726-32/8000 a=rtpmap:4 G723/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729a/8000 a=rtpmap:96 G726-40/8000 a=rtpmap:97 G726-24/8000 a=rtpmap:98 G726-16/8000 a=rtpmap:100 NSE/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:30 a=sendrecv --- (14 headers 19 lines)--- Using INVITE request as basis request - [EMAIL PROTECTED] Sending to 192.168.0.20 : 5061 (non-NAT) Found peer 'PSTN_2' Reliably Transmitting (no NAT) to 192.168.0.20:5061: SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-fc209f89;received=192.168.0.20 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060>;tag=as535b07db Call-ID: [EMAIL PROTECTED] CSeq: 101 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: <sip:[EMAIL PROTECTED]> Proxy-Authenticate: Digest realm="asterisk", nonce="5a2eee21" Content-Length: 0 --- Scheduling destruction of call '[EMAIL PROTECTED]' in 15000 ms server*CLI> <-- SIP read from 192.168.0.20:5061: ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-fc209f89 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060>;tag=as535b07db Call-ID: [EMAIL PROTECTED] CSeq: 101 ACK Max-Forwards: 70 Contact: <sip:[EMAIL PROTECTED]:5061> User-Agent: Sipura/SPA3000-3.1.7(GWg) Content-Length: 0 --- (10 headers 0 lines)--- server*CLI> <-- SIP read from 192.168.0.20:5061: INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-2e547cf5 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060> Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE Max-Forwards: 70 Proxy-Authorization: Digest username="linea2",realm="asterisk",nonce="5a2eee21",uri="sip:[EMAIL PROTECTED]:5060",algorithm=MD5,response="f18750c7e09707b6e76e0c6c08f10b77" Contact: <sip:[EMAIL PROTECTED]:5061> Expires: 240 User-Agent: Sipura/SPA3000-3.1.7(GWg) Content-Length: 426 Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER Supported: x-sipura Content-Type: application/sdp v=0 o=- 23156020 23156020 IN IP4 192.168.0.20 s=- c=IN IP4 192.168.0.20 t=0 0 m=audio 16478 RTP/AVP 0 2 4 8 18 96 97 98 100 101 a=rtpmap:0 PCMU/8000 a=rtpmap:2 G726-32/8000 a=rtpmap:4 G723/8000 a=rtpmap:8 PCMA/8000 a=rtpmap:18 G729a/8000 a=rtpmap:96 G726-40/8000 a=rtpmap:97 G726-24/8000 a=rtpmap:98 G726-16/8000 a=rtpmap:100 NSE/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-15 a=ptime:30 a=sendrecv --- (15 headers 19 lines)--- Using INVITE request as basis request - [EMAIL PROTECTED] Sending to 192.168.0.20 : 5061 (non-NAT) Found peer 'PSTN_2' Reliably Transmitting (no NAT) to 192.168.0.20:5061: SIP/2.0 403 Forbidden Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-2e547cf5;received=192.168.0.20 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060>;tag=as535b07db Call-ID: [EMAIL PROTECTED] CSeq: 102 INVITE User-Agent: Asterisk PBX Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Contact: <sip:[EMAIL PROTECTED]> Content-Length: 0 --- server*CLI> <-- SIP read from 192.168.0.20:5061: ACK sip:[EMAIL PROTECTED]:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.0.20:5061;branch=z9hG4bK-2e547cf5 From: <sip:[EMAIL PROTECTED]>;tag=be447a1af149c461o1 To: <sip:[EMAIL PROTECTED]:5060>;tag=as535b07db Call-ID: [EMAIL PROTECTED] CSeq: 102 ACK Max-Forwards: 70 Proxy-Authorization: Digest username="linea2",realm="asterisk",nonce="5a2eee21",uri="sip:[EMAIL PROTECTED]:5060",algorithm=MD5,response="104aa010d2f90b4a69c56b0ebf0991d3" Contact: <sip:[EMAIL PROTECTED]:5061> User-Agent: Sipura/SPA3000-3.1.7(GWg) Content-Length: 0 --- (11 headers 0 lines)--- Destroying call '[EMAIL PROTECTED]' 12 headers, 0 lines Reliably Transmitting (no NAT) to 80.239.235.200:5060: OPTIONS sip:sip1.sipdiscount.com SIP/2.0 Via: SIP/2.0/UDP 81.172.52.3:5060;branch=z9hG4bK0596a5f2;rport From: "Unknown" <sip:[EMAIL PROTECTED]>;tag=as6c5807a2 To: <sip:sip1.sipdiscount.com> Contact: <sip:[EMAIL PROTECTED]> Call-ID: [EMAIL PROTECTED] CSeq: 102 OPTIONS User-Agent: Asterisk PBX Max-Forwards: 70 Date: Mon, 20 Feb 2006 08:16:56 GMT Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY Content-Length: 0 -- Alejandro Vargas _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
