Hi uall,
I followed the instructions mentioned here, and I succeeded in being able to dial internal phones and reach them from the outside, but when I try to dial out, that is when the problems start…
My first guess is, that it is a registration problem. When I do a “sip show peers” I get
idefix*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
13/13 192.168.12.79 D No No A 5060 OK (23 ms)
14 (Unspecified) D No No A 0 UNKNOWN
15/15 192.168.12.56 D No No A 5060 OK (27 ms)
16 (Unspecified) D No No A 0 UNKNOWN
21 (Unspecified) D No No A 0 UNKNOWN
551133016564/551133016564 217.0.15.67 Yes Yes 5060 OK (19 ms)
TelekomSIPTrunk4Testing/5 (Unspecified) Yes Yes 0 UNKNOWN
7 sip peers [Monitored: 3 online, 4 offline Unmonitored: 0 online, 0 offline]
I do not understand, why it shows 2 peers for the telekom, the one that did not register is “TelekomSIPTrunk4Testing”, which is the trunk name in my outgoing chan_sip config.
Here is my chan_sip config:
Trunk Name TelekomSIPTrunk4Testing
PEER Details
videosupport=no
usereqphone=yes
type=peer
transport=tcp
srvlookup=yes
session-timers=refuse
secret=XXXXXX
qualify=yes
insecure=invite
host=reg.sip-trunk.telekom.d(e)
fromdomain=sip-trunk.telekom.d(e)
dtmfmode=rfc2833
disallow=all
directmedia=no
defaultuser=55YYYYYYYYY
allow=g722,alaw
User Context 55YYYYYYYY
User Details secret=XXXXXXXX
type=peer
transport=tcp
srvlookup=yes
insecure=invite
host=reg.sip-trunk.telekom.d(e)
fromdomain=sip-trunk.telekom.d(e)
defaultuser=55YYYYYYYYY
disallow=all
allow=g722,alaw
qualify=yes
context=from-pstn-toheader
tcp://"+49ZZZZZZZZZZ"@“sip-trunk.telekom.d(e)”:“XXXXXXX”:“55YYYYYYYYYY”@reg.sip-trunk.telekom.de:5060
On the cli it says:
[2019-03-17 17:44:13] ERROR[1528]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo(“reg.sip-trunk.telekom.d(e)”, “(null)”, …): Name or service not known
[2019-03-17 17:44:13] WARNING[1528]: acl.c:835 resolve_first: Unable to lookup ‘reg.sip-trunk.telekom.d(e)’
And when I to dial out:
-- Executing [s@macro-dialout-trunk:24] Dial("SIP/15-00000035", "SIP/TelekomSIPTrunk4Testing/064130020551,300,T") in new stack
[2019-03-17 17:46:25] WARNING[8245][C-0000002f]: app_dial.c:2527 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:25] NoOp(“SIP/15-00000035”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20”) in new stack
BTW, it is an asterisk 13 with a FreePBX 13…
…and the parentheses around the de-endings are intentional (because I can not post links?) and should be read as d(e) = de
Cheers Michael