The number you have dialed is not in service

Hi I installed free pbx on raspberry and I’m trying to configure the cenbtralino. I set 2 extensions on two phones with zoiper and I can make calls between them. with zoiper I can make outgoing calls but when I try to call my number from the outside I get this message,
the number you have dialed is not in service
I created an incoming route that points and an extension (101) and I left it to any DID number and CallerId number
this is my chan_sip trunks configuration
Outgoing
username=39xxxxxxxxxx
user=39xxxxxxxxxx
type=peer
secret=xxxxxxxxxx
realm=sip.infostrada.it
outboundproxy=voip.libero.it
host=sip.infostrada.it
fromuser=39xxxxxxxxxx
fromdomain=sip.infostrada.it

incoming
username=39xxxxxxxxxx
user=39xxxxxxxxxx
type=user
secret=xxxxxxxxxx
realm=sip.infostrada.it
insecure=invite
host=sip.infostrada.it
fromuser=39xxxxxxxxxx
context=from-sip-external

register string
[email protected]:xxxxxxxxxx:[email protected]

why can not I receive the call?
where am I wrong

Try
context=from-trunk
If you still have trouble, post the log from a failed incoming call attempt.

Most of the time the incoming trunk field is left blank if you are registering (you are).

[2018-12-13 23:09:35] WARNING[16546][C-00000014]: Ext. s:6 @ from-sip-external: "Rejecting unknown SIP connection from 151.6.87.166"
-- Executing [[email protected]:7] Answer("SIP/HomeIMS.net-0000000c", "") in new stack
-- Executing [[email protected]:8] Wait("SIP/HomeIMS.net-0000000c", "2") in new stack
-- Executing [[email protected]:9] Playback("SIP/HomeIMS.net-0000000c", "ss-noservice") in new stack
-- <SIP/HomeIMS.net-0000000c> Playing 'ss-noservice.ulaw' (language 'it')
-- Executing [[email protected]:10] PlayTones("SIP/HomeIMS.net-0000000c", "congestion") in new stack
-- Executing [[email protected]:11] Congestion("SIP/HomeIMS.net-0000000c", "5") in new stack

== Spawn extension (from-sip-external, s, 11) exited non-zero on ‘SIP/HomeIMS.net-0000000c’
– Executing [[email protected]:1] Hangup(“SIP/HomeIMS.net-0000000c”, “”) in new stack
== Spawn extension (from-sip-external, h, 1) exited non-zero on ‘SIP/HomeIMS.net-0000000c’
== Contact 101/sip:[email protected]:64198;rinstance=f55994f7af40ee96 has been deleted
– Added contact ‘sip:[email protected]:64198;rinstance=f55994f7af40ee96’ to AOR ‘101’ with expiration of 60 seconds
== Contact 101/sip:[email protected]:64198;rinstance=f55994f7af40ee96 has been created
– Contact 101/sip:[email protected]:64198;rinstance=f55994f7af40ee96 is now Reachable. RTT: 8.104 msec

questo è il log

You are trying to connect to the system from an unknown host. System security prevents that. Set up a trunk for this IP address and the problem will either change to a different problem, or the call will work.

how do I configure my trunk with this ip 151.6.87.166

if it can help I am under the modem / router provided by the line manager and I have not opened doors and I have not made nat.

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