FreePBX | Register | Issues | Wiki | Portal | Support

The number you have dialed is not in service


(Calida82) #1

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
39xxxxxxxxxx@sip.infostrada.it:xxxxxxxxxx:39xxxxxxxxxx@voip.libero.it

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


#2

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


(Jared Busch) #3

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


(Calida82) #4
[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 [s@from-sip-external:7] Answer("SIP/HomeIMS.net-0000000c", "") in new stack
-- Executing [s@from-sip-external:8] Wait("SIP/HomeIMS.net-0000000c", "2") in new stack
-- Executing [s@from-sip-external:9] Playback("SIP/HomeIMS.net-0000000c", "ss-noservice") in new stack
-- <SIP/HomeIMS.net-0000000c> Playing 'ss-noservice.ulaw' (language 'it')
-- Executing [s@from-sip-external:10] PlayTones("SIP/HomeIMS.net-0000000c", "congestion") in new stack
-- Executing [s@from-sip-external: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 [h@from-sip-external: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:101@192.168.1.108:64198;rinstance=f55994f7af40ee96 has been deleted
– Added contact ‘sip:101@192.168.1.108:64198;rinstance=f55994f7af40ee96’ to AOR ‘101’ with expiration of 60 seconds
== Contact 101/sip:101@192.168.1.108:64198;rinstance=f55994f7af40ee96 has been created
– Contact 101/sip:101@192.168.1.108:64198;rinstance=f55994f7af40ee96 is now Reachable. RTT: 8.104 msec

questo è il log


(Dave Burgess) #5

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.


(Calida82) #6

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.


(system) #7

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