I’ve got an old (genuine) SPA3102 that I want to use to add a call screening facility into my home. My proposed architecture is:
PSTN line (virginmedia) connected to SPA3102 PSTN
Internal DECT phones connected to SPA3102 Line1
RasPBX.
Thanks
Yes, that is the IP of the SPA. Unfortunately, I don’t know enough to be able to determine how the trunk is misconfigured. Neither do I know how to fix the codec issue. This is a plain vanilla instal of RasPBX.
[2020-04-09 16:53:04] ERROR[1353] chan_sip.c: Peer '1-pstn' is trying to register, but not configured as host=dynamic
[2020-04-09 16:53:04] NOTICE[1353] chan_sip.c: Registration from 'PSTN CALL <sip:[email protected]:5160>' failed for '172.29.12.9:5062' - Peer is not supposed to register
[2020-04-09 16:53:04] ERROR[1353] chan_sip.c: Peer '1-pstn' is trying to register, but not configured as host=dynamic
[2020-04-09 16:53:04] NOTICE[1353] chan_sip.c: Registration from 'PSTN CALL <sip:[email protected]:5160>' failed for '172.29.12.9:5062' - Peer is not supposed to register
So I changed the sip settings to have
type=friend
host=dynamic
That error disappeared but the problem persists. I’m still seeing
WARNING[10806][C-0000000a] Ext. s: "Rejecting unknown SIP connection from 172.29.12.9"
[2020-04-09 17:01:43] VERBOSE[1353][C-0000000a] netsock2.c: Using SIP RTP TOS bits 184
[2020-04-09 17:01:43] VERBOSE[1353][C-0000000a] netsock2.c: Using SIP RTP CoS mark 5
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [01480351661@from-sip-external:1] NoOp("SIP/172.29.12.6-00000003", "Received incoming SIP connection from unknown peer to 01480351661") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [01480351661@from-sip-external:2] Set("SIP/172.29.12.6-00000003", "DID=01480351661") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [01480351661@from-sip-external:3] Goto("SIP/172.29.12.6-00000003", "s,1") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx_builtins.c: Goto (from-sip-external,s,1)
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:1] GotoIf("SIP/172.29.12.6-00000003", "1?setlanguage:checkanon") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx_builtins.c: Goto (from-sip-external,s,2)
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:2] Set("SIP/172.29.12.6-00000003", "CHANNEL(language)=en_GB") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:3] GotoIf("SIP/172.29.12.6-00000003", "1?noanonymous") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx_builtins.c: Goto (from-sip-external,s,5)
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:5] Set("SIP/172.29.12.6-00000003", "TIMEOUT(absolute)=15") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] func_timeout.c: Channel will hangup at 2020-04-09 17:01:58.434 BST.
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:6] Set("SIP/172.29.12.6-00000003", "receveip=recvip") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:7] Log("SIP/172.29.12.6-00000003", "WARNING,"Rejecting unknown SIP connection from 172.29.12.9"") in new stack
[2020-04-09 17:01:43] WARNING[10806][C-0000000a] Ext. s: "Rejecting unknown SIP connection from 172.29.12.9"
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:8] Answer("SIP/172.29.12.6-00000003", "") in new stack
[2020-04-09 17:01:43] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:9] Wait("SIP/172.29.12.6-00000003", "2") in new stack
[2020-04-09 17:01:45] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:10] Playback("SIP/172.29.12.6-00000003", "ss-noservice") in new stack
[2020-04-09 17:01:45] VERBOSE[10806][C-0000000a] file.c: <SIP/172.29.12.6-00000003> Playing 'ss-noservice.ulaw' (language 'en_GB')
[2020-04-09 17:01:51] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:11] PlayTones("SIP/172.29.12.6-00000003", "congestion") in new stack
[2020-04-09 17:01:51] VERBOSE[10806][C-0000000a] pbx.c: Executing [s@from-sip-external:12] Congestion("SIP/172.29.12.6-00000003", "5") in new stack
[2020-04-09 17:01:52] VERBOSE[10806][C-0000000a] pbx.c: Spawn extension (from-sip-external, s, 12) exited non-zero on 'SIP/172.29.12.6-00000003'
[2020-04-09 17:01:52] VERBOSE[10806][C-0000000a] pbx.c: Executing [h@from-sip-external:1] Hangup("SIP/172.29.12.6-00000003", "") in new stack
[2020-04-09 17:01:52] VERBOSE[10806][C-0000000a] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on 'SIP/172.29.12.6-00000003'
We should first get the SPA to register.
In the PEER Details, remove the port=5062. (host=dynamic implies a dynamic port)
Confirm that the value of secret matches what you entered for Password on the PSTN Line page.
If it still won’t register, at the Asterisk command prompt, type sip set debug on
and reboot the SPA. The registration attempts should show in the Asterisk log. Paste the relevant section at https://pastebin.freepbx.org and post the link here.
Hello
I made a similar setup with spa3000. As I remember after many hours of trial and error I didn’t make it to register to FreePBX so i try the following that worked,
First of all create a pjsip trunk to FreePBX with the following parameters:
Trunk name - PSTN
In pjsip settings tab set:
username - spa3102
password - secret
authentication - outbound
registration - none
sip server - your SPA IP
sip server port - 5062
Then submit your settings and hit the Apply config button
In SPA pstn line tab:
Proxy - your FreePBX IP:5062
Register - no
username - spa3102
password - secret
Dial plan 2 - S0(<:1234567890@FreePBX_IP:5062>)
Save your settings.
To make outbound calls you have to create rules
For Inbound calls go to FreePBX Connectivity - Inbound routes
Description - From SPA
DID - 1234567890
Set Destination - extension, IVR, Group or something