Quote from: brononius on August 02, 2012, 06:25:37 PM
I'll throw you even a bone if i go a feed the animals in the back... :p
I did love it!!!!!!!!!!!!!!!!!!!
Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: brononius on August 02, 2012, 06:25:37 PM
I'll throw you even a bone if i go a feed the animals in the back... :p
Quote from: gbutters on October 25, 2012, 06:33:34 AM
For the PSTN line setup a phone line in lmce as spa with the phone number (1234567890) as the user and in spa3102 config under pstn line
Line Enable: yes
SIP Settings
SIP Port: 5061
Proxy and Registration
Proxy: 192.168.80.1
Register: yes Make Call Without Reg: yes
Register Expires: 300 Ans Call Without Reg: yes
Subscriber Information
Display Name: Unknown Caller User ID: phone number
Password: password Use Auth ID: yes
Auth ID: phone number
With those settings the spa3102 pstn line registers for me.
Quote from: gbutters on October 25, 2012, 06:33:34 AM
For the PSTN line setup a phone line in lmce as spa with the phone number (1234567890) as the user and in spa3102 config under pstn line
Line Enable: yes
SIP Settings
SIP Port: 5061
Proxy and Registration
Proxy: 192.168.80.1
Register: yes Make Call Without Reg: yes
Register Expires: 300 Ans Call Without Reg: yes
Subscriber Information
Display Name: Unknown Caller User ID: phone number
Password: password Use Auth ID: yes
Auth ID: phone number
With those settings the spa3102 pstn line registers for me.
Quote from: microbrain on October 25, 2012, 02:45:51 AM
Pw44,
Your problem is within the authentication of your PSTN line., but you know that already.
Three things I would look at: (make note of any changes you make)
1: Did you set the spa for dhcp or assign it a dynamic ip? If you have it as dhcp, change it to static and try that then change the #2 next, if it still don't work put it back.
Quote
2: in the spa under "Proxy and Registration" is it set for yes, if so try to set it to off and then check if it works. If it is set to on it tries to tell LMCE what your spa address is, and since you already assigned an ip you don't need to register.
Quote
3: as much as I hate to say this, go back to LMCE 8.10 because the current 10.04 will not work without the ability to setup this box with something like (here it comes, wait, wait,) FREEPBX...... and don't feel too bad as you won't be the only one having to do it.
I myself was going to try and set LMCE up to be an extension of my asterisk box, but after studying how LMCE communicates with asterisk I can't do that either nor can I make the asterisk box work as a in/out trunk to the LMCE because of the changes they made in how the LMCE deals with asterisk. I'm still not sure if I fully understand why the powers to be had to change up asterisk/lmce. If it truly was an issue (as I have read on some other post) that too many people were breaking LMCE using FreePbx I would have thought it would have been easier to just make FreePBX an add-on and not offered help when they screwed it up, just my opinion.
microbrain
dcerouter*CLI> sip set debug ip 192.168.80.30
SIP Debugging Enabled for IP: 192.168.80.30
[2012-10-24 15:08:34] NOTICE[2494]: chan_sip.c:13059 sip_reregister: -- Re-registration for pwollny@sip.voipcheap.com
> doing dnsmgr_lookup for 'sip.voipcheap.com'
> doing dnsmgr_lookup for 'sip.voipcheap.com'
[2012-10-24 15:08:34] NOTICE[2494]: chan_sip.c:20738 handle_response_register: Outbound Registration: Expiry for sip.voipcheap.com is 120 sec (Scheduling reregistration in 105 s)
<--- SIP read from UDP:192.168.80.30:5060 --->
REGISTER sip:192.168.80.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.80.30:5060;branch=z9hG4bK-30f57ef2
From: Line 1 <sip:204@192.168.80.1>;tag=a085e89ca30903a8o0
To: Line 1 <sip:204@192.168.80.1>
Call-ID: e37c19f1-dc99f9a0@192.168.80.30
CSeq: 34238 REGISTER
Max-Forwards: 70
Contact: Line 1 <sip:204@192.168.80.30:5060>;expires=600
User-Agent: Linksys/SPA3102-5.1.7(GW)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.80.30:5060 (NAT)
<--- Transmitting (NAT) to 192.168.80.30:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.80.30:5060;branch=z9hG4bK-30f57ef2;received=192.168.80.30;rport=5060
From: Line 1 <sip:204@192.168.80.1>;tag=a085e89ca30903a8o0
To: Line 1 <sip:204@192.168.80.1>;tag=as2d7251a9
Call-ID: e37c19f1-dc99f9a0@192.168.80.30
CSeq: 34238 REGISTER
Server: Asterisk PBX 1.8.11.1-1digium1~lucid
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="48da0ee2"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'e37c19f1-dc99f9a0@192.168.80.30' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.80.30:5061 --->
REGISTER sip:192.168.80.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-fc1374d1
From: Unknown Caller <sip:spa3102@192.168.80.1>;tag=77c8a0fc9a3ea6c8o1
To: Unknown Caller <sip:spa3102@192.168.80.1>
Call-ID: 7fe3a044-958a6f69@192.168.80.30
CSeq: 57993 REGISTER
Max-Forwards: 70
Contact: Unknown Caller <sip:spa3102@192.168.80.30:5061>;expires=300
User-Agent: Linksys/SPA3102-5.1.7(GW)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
<------------->
--- (12 headers 0 lines) ---
Sending to 192.168.80.30:5061 (NAT)
<--- Transmitting (NAT) to 192.168.80.30:5061 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-fc1374d1;received=192.168.80.30;rport=5061
From: Unknown Caller <sip:spa3102@192.168.80.1>;tag=77c8a0fc9a3ea6c8o1
To: Unknown Caller <sip:spa3102@192.168.80.1>;tag=as20bcbad4
Call-ID: 7fe3a044-958a6f69@192.168.80.30
CSeq: 57993 REGISTER
Server: Asterisk PBX 1.8.11.1-1digium1~lucid
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="asterisk", nonce="0534bc94"
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog '7fe3a044-958a6f69@192.168.80.30' in 32000 ms (Method: REGISTER)
[2012-10-24 15:08:43] NOTICE[2494]: chan_sip.c:24933 handle_request_register: Registration from 'Unknown Caller <sip:spa3102@192.168.80.1>' failed for '192.168.80.30:5061' - No matching peer found
Scheduling destruction of SIP dialog '7fe3a044-958a6f69@192.168.80.30' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.80.30:5060 --->
REGISTER sip:192.168.80.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.80.30:5060;branch=z9hG4bK-268220b5
From: Line 1 <sip:204@192.168.80.1>;tag=a085e89ca30903a8o0
To: Line 1 <sip:204@192.168.80.1>
Call-ID: e37c19f1-dc99f9a0@192.168.80.30
CSeq: 34239 REGISTER
Max-Forwards: 70
Authorization: Digest username="204",realm="asterisk",nonce="48da0ee2",uri="sip:192.168.80.1",algorithm=MD5,response="b46a6784f5334d0ea28b614c869a1d13"
Contact: Line 1 <sip:204@192.168.80.30:5060>;expires=600
User-Agent: Linksys/SPA3102-5.1.7(GW)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.80.30:5060 (NAT)
-- Registered SIP '204' at 192.168.80.30:5060
<--- Transmitting (NAT) to 192.168.80.30:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.80.30:5060;branch=z9hG4bK-268220b5;received=192.168.80.30;rport=5060
From: Line 1 <sip:204@192.168.80.1>;tag=a085e89ca30903a8o0
To: Line 1 <sip:204@192.168.80.1>;tag=as2d7251a9
Call-ID: e37c19f1-dc99f9a0@192.168.80.30
CSeq: 34239 REGISTER
Server: Asterisk PBX 1.8.11.1-1digium1~lucid
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Expires: 600
Contact: <sip:204@192.168.80.30:5060>;expires=600
Date: Wed, 24 Oct 2012 17:08:43 GMT
Content-Length: 0
<------------>
Scheduling destruction of SIP dialog 'e37c19f1-dc99f9a0@192.168.80.30' in 32000 ms (Method: REGISTER)
<--- SIP read from UDP:192.168.80.30:5061 --->
REGISTER sip:192.168.80.1 SIP/2.0
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-5349da3a
From: Unknown Caller <sip:spa3102@192.168.80.1>;tag=77c8a0fc9a3ea6c8o1
To: Unknown Caller <sip:spa3102@192.168.80.1>
Call-ID: 7fe3a044-958a6f69@192.168.80.30
CSeq: 57994 REGISTER
Max-Forwards: 70
Authorization: Digest username="spa3102",realm="asterisk",nonce="0534bc94",uri="sip:192.168.80.1",algorithm=MD5,response="6daeb6df71cbff698c5bce7e1f3c98a3"
Contact: Unknown Caller <sip:spa3102@192.168.80.30:5061>;expires=300
User-Agent: Linksys/SPA3102-5.1.7(GW)
Content-Length: 0
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER
Supported: x-sipura, replaces
<------------->
--- (13 headers 0 lines) ---
Sending to 192.168.80.30:5061 (NAT)
<--- Transmitting (NAT) to 192.168.80.30:5061 --->
SIP/2.0 403 Forbidden (Bad auth)
Via: SIP/2.0/UDP 192.168.80.30:5061;branch=z9hG4bK-5349da3a;received=192.168.80.30;rport=5061
From: Unknown Caller <sip:spa3102@192.168.80.1>;tag=77c8a0fc9a3ea6c8o1
To: Unknown Caller <sip:spa3102@192.168.80.1>;tag=as20bcbad4
Call-ID: 7fe3a044-958a6f69@192.168.80.30
CSeq: 57994 REGISTER
Server: Asterisk PBX 1.8.11.1-1digium1~lucid
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
<------------>
[2012-10-24 15:08:43] NOTICE[2494]: chan_sip.c:24933 handle_request_register: Registration from 'Unknown Caller <sip:spa3102@192.168.80.1>' failed for '192.168.80.30:5061' - No matching peer found
Scheduling destruction of SIP dialog '7fe3a044-958a6f69@192.168.80.30' in 32000 ms (Method: REGISTER)
Really destroying SIP dialog 'e37c19f1-dc99f9a0@192.168.80.30' Method: REGISTER
Really destroying SIP dialog '7fe3a044-958a6f69@192.168.80.30' Method: REGISTER
dcerouter*CLI> sip set debug off
SIP Debugging Disabled
dcerouter*CLI> quit
Executing last minute cleanups
dcerouter_1031272:
Quote
Also while your at it, copy and paste your "sip.conf" file here, you can find it on the LMCE server /etc/asterisk/sip.conf, oh wait a minute, there is no sip.conf on the LMCE machine I have under etc/asterisk..... Either it is located somewhere else and I'm not aware of or found yet, or, it's been renamed to something else, or, maybe someone forgot to include it in the build....
dcerouter_1031272:/home/paulo# nmap -p 5061 -sU 192.168.80.30
Starting Nmap 5.00 ( http://nmap.org ) at 2012-10-23 18:19 BRST
Interesting ports on 192.168.80.30:
PORT STATE SERVICE
5061/udp open|filtered sip-tls
MAC Address: 00:0E:08:C0:97:55 (Cisco Linksys)
Nmap done: 1 IP address (1 host up) scanned in 7.05 seconds
dcerouter_1031272:/home/paulo# nmap -p 5060 -sU 192.168.80.30
Starting Nmap 5.00 ( http://nmap.org ) at 2012-10-23 18:20 BRST
Interesting ports on 192.168.80.30:
PORT STATE SERVICE
5060/udp open|filtered sip
MAC Address: 00:0E:08:C0:97:55 (Cisco Linksys)
Nmap done: 1 IP address (1 host up) scanned in 7.01 seconds
dcerouter_1031272:/home/paulo# nmap -p 5061 -sU 192.168.80.1
Starting Nmap 5.00 ( http://nmap.org ) at 2012-10-23 18:20 BRST
Interesting ports on dcerouter.localdomain (192.168.80.1):
PORT STATE SERVICE
5061/udp open|filtered sip-tls
Nmap done: 1 IP address (1 host up) scanned in 2.13 seconds
[2012-10-23 18:12:14] NOTICE[2494]: chan_sip.c:24933 handle_request_register: Registration from 'Unknown Caller <sip:spa3102@192.168.80.1>' failed for '192.168.80.30:5061' - No matching peer found
-- Registered SIP '204' at 192.168.80.30:5060
> Saved useragent "Linksys/SPA3102-5.1.7(GW)" for peer 204
[2012-10-23 18:12:14] NOTICE[2494]: chan_sip.c:24933 handle_request_register: Registration from 'Unknown Caller <sip:spa3102@192.168.80.1>' failed for '192.168.80.30:5061' - No matching peer found