Sip trunk can send but not receive calls from SPA3102

siptrunk
freepbx
configuration
Tags: #<Tag:0x00007f702319c8d8> #<Tag:0x00007f702319c6d0> #<Tag:0x00007f702319c568>

(The Static Turtle) #1

Hi there, I recently acquired a SPA3102 and connected it to my landline / analog phone.
My setup is running freepbx (docker is its obligatory) on a raspberry
Freepbx is available on 192.168.1.201 and the spa3102 on 192.168.1.9
after adding the extensions and struggling a bit with the port forwarding I’m able to make calls between extensions. I then proceeded to adding the trunk for inbound / outbound calls from my landline.
When I do an outgoing call the call go through and I can hear the recipient, however if someone calls my landline, the will here “The number you have dialed is not in service. Please check the number and try again”

Here is my trunk config:

And here is the SPA3102 PSTN Config:




Here is the log:

[2020-06-05 19:31:40] VERBOSE[9734] pbx_variables.c: Setting global variable ‘SIPDOMAIN’ to ‘192.168.1.201’
[2020-06-05 19:31:40] VERBOSE[29464][C-00000037] pbx.c: Executing [LANDLINEPHONENUMBER@from-sip-external:1] NoOp(“PJSIP/anonymous-0000003a”, “Received incoming SIP connection from unknown peer to LANDLINEPHONENUMBER”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [LANDLINEPHONENUMBER@from-sip-external:2] Set(“PJSIP/anonymous-0000003a”, “DID=LANDLINEPHONENUMBER”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [LANDLINEPHONENUMBER@from-sip-external:3] Goto(“PJSIP/anonymous-0000003a”, “s,1”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx_builtins.c: Goto (from-sip-external,s,1)
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:1] GotoIf(“PJSIP/anonymous-0000003a”, “1?setlanguage:checkanon”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx_builtins.c: Goto (from-sip-external,s,2)
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:2] Set(“PJSIP/anonymous-0000003a”, “CHANNEL(language)=fr”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:3] GotoIf(“PJSIP/anonymous-0000003a”, “1?noanonymous”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx_builtins.c: Goto (from-sip-external,s,5)
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:5] Set(“PJSIP/anonymous-0000003a”, “TIMEOUT(absolute)=15”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] func_timeout.c: Channel will hangup at 2020-06-05 19:31:56.304 CET.
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:6] Set(“PJSIP/anonymous-0000003a”, “receveip=pjsip,remote_addr”) in new stack
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:7] Log(“PJSIP/anonymous-0000003a”, "WARNING,“Rejecting unknown SIP connection from 192.168.1.9:5061"”) in new stack
[2020-06-05 19:31:41] WARNING[29464][C-00000037] Ext. s: “Rejecting unknown SIP connection from 192.168.1.9:5061”
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:8] Answer(“PJSIP/anonymous-0000003a”, “”) in new stack
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:9] Wait(“PJSIP/anonymous-0000003a”, “2”) in new stack
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:41] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
A lot more of the same lines
[2020-06-05 19:31:42] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:42] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:42] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:42] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:42] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] WARNING[29464][C-00000037] translate.c: No translator path: (starting codec is not valid)
[2020-06-05 19:31:43] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:10] Playback(“PJSIP/anonymous-0000003a”, “ss-noservice”) in new stack
[2020-06-05 19:31:43] VERBOSE[29464][C-00000037] file.c: <PJSIP/anonymous-0000003a> Playing ‘ss-noservice.ulaw’ (language ‘fr’)
[2020-06-05 19:31:48] WARNING[29464][C-00000037] channel.c: Unable to find a codec translation path: (g723) -> (alaw)
[2020-06-05 19:31:48] WARNING[29464][C-00000037] file.c: Unable to restore format back to g723
[2020-06-05 19:31:48] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:11] PlayTones(“PJSIP/anonymous-0000003a”, “congestion”) in new stack
[2020-06-05 19:31:48] VERBOSE[29464][C-00000037] pbx.c: Executing [s@from-sip-external:12] Congestion(“PJSIP/anonymous-0000003a”, “5”) in new stack
[2020-06-05 19:31:51] VERBOSE[29464][C-00000037] pbx.c: Spawn extension (from-sip-external, s, 12) exited non-zero on ‘PJSIP/anonymous-0000003a’
[2020-06-05 19:31:51] VERBOSE[29464][C-00000037] pbx.c: Executing [h@from-sip-external:1] Hangup(“PJSIP/anonymous-0000003a”, “”) in new stack
[2020-06-05 19:31:51] VERBOSE[29464][C-00000037] pbx.c: Spawn extension (from-sip-external, h, 1) exited non-zero on ‘PJSIP/anonymous-0000003a’

I really don’t know what’s going on here and would really appreciate your help


#2

Dial Plan 2: S0<:landlinephonenumber@192.168.1.201:5160>
(If you changed Bind Port in chan_sip settings, replace 5160 with that port.)

Regarding the Codec issue, replace in peer details allow=all with
disallow=all
allow=ulaw


(The Static Turtle) #3

My softphones are connected on the port 5060 and the spa3102 FreePBX are both configured for the port 5061. I don’t really understand what you mean here


#4

Perhaps you could qualify why Docker is “obligatory”? it justs add unnecessary networking complications… How did you construct the network with your container


(The Static Turtle) #5

So to clarify i’m running home assistant on my raspberry the only way to install it as from now is by using there own os (HassOS) which is extremely annoying but oh well, Once you get on the real system the only way to run normal application is to use docker.

I run the epandi/asterisk-freepbx-rpi:16 image
Port forwarding (Host -> Container):

  • 10000-10100 -> 10000-10100 UDP
  • 5060-5075 -> 5060-5075 TCP & UDP
  • 5160 -> 5160 TCP & UDP
  • 5080 -> 80 TCP

IP of the host: 192.168.1.201
IP inside the container: 172.17.0.3
I had trouble with the no audio on the calls but I fixed it by setting the proper udp range for the rtp in freepbx


#6

An alternate would be to install RasPBX (Debian 10) on the raspberry , then install snapd and THEN snap install home-assistant.


#7

Default for FreePBX is pjsip on 5060 and chan_sip on 5160. Your softphones are pjsip and 3102 trunk is chan_sip.


#8

Oops, Dial Plan 2 should be
(S0<:landlinephonenumber@192.168.1.201:5160>)


(The Static Turtle) #9

Do I need to change the trunk configuration (port=) ?


(The Static Turtle) #10

Nevermind it works now thanks for help.
And @dicko I don’t really wan’t to port all of my existing configuration + I really like docker


(system) closed #11

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.