I have a home server with asterisk (24.0.0). My internet provider is Deutsche Telekom (fiber-optic connection). I noticed, that making a outgoing call fails after some time (a few days?). My IP address has not (!) changed in the meantime. Restarting asterisk makes it work again.
A guess from a search engine is that it might be caused by a DNS-SRV-Loadbalancer. But how can I fix the problem?
Parts of my pjsip.conf:
[...]
[telekom-reg-677]
type=registration
transport=transport-telekom-tls
outbound_auth=telekom-auth-677
server_uri=sip:tel.t-online.de
client_uri=sip:+49712xxxxxxx@tel.t-online.de
line=yes
endpoint=telekom-677
contact_user=+49712xxxxxxx
retry_interval=60
forbidden_retry_interval=300
expiration=480
auth_rejection_permanent=false
[telekom-677]
type=endpoint
transport=transport-telekom-tls
context=telekom
disallow=all
allow=g722,alaw,ulaw
outbound_auth=telekom-auth-677
identify_by=username
media_encryption=sdes
rtp_symmetric=yes
direct_media=no
from_user=+49712xxxxxxx
from_domain=tel.t-online.de
aors=telekom-all-aor
trust_id_inbound=yes
force_rport=yes
rewrite_contact=yes
timers=yes
timers_min_se=90
Here is the log:
-- Executing [0162xxxxxxx@telefone:1] Dial("PJSIP/buero-oben-00000023", "PJSIP/telekom-677/sip:0162xxxxxxx@tel.t-online.de,60") in new stack
-- Called PJSIP/telekom-677/sip:0162xxxxxxx@tel.t-online.de
<--- Transmitting SIP request (1074 bytes) to TLS:217.0.146.198:5061 --->
INVITE sip:0162xxxxxxx@tel.t-online.de SIP/2.0
Via: SIP/2.0/TLS 10.10.0.3:5061;rport;branch=z9hG4bKPjff265fa6-0065-4c44-af68-b3e3533590a1;alias
From: <sip:+49712xxxxxxx@tel.t-online.de>;tag=1263e151-6e4b-4fa9-a576-7a53cf321937
To: <sip:0162xxxxxxx@tel.t-online.de>
Contact: <sip:+49712xxxxxxx@10.10.0.3:5061;transport=TLS>
Call-ID: 10552dab-8db0-4730-be0d-2fcd61300501
CSeq: 28794 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, INFO, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 24.0.0
Content-Type: application/sdp
Content-Length: 362
v=0
o=- 659477935 659477935 IN IP4 10.10.0.3
s=Asterisk
c=IN IP4 10.10.0.3
t=0 0
m=audio 30094 RTP/SAVP 9 8 0 101
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:oH5ptntz8/xynOzsn6a8nBX4ZmcrqignvXUCi6XD
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
<--- Received SIP response (329 bytes) from TLS:217.0.146.198:5061 --->
SIP/2.0 100 Trying
Via: SIP/2.0/TLS 10.10.0.3:5061;rport;branch=z9hG4bKPjff265fa6-0065-4c44-af68-b3e3533590a1;alias
From: <sip:+49712xxxxxxx@tel.t-online.de>;tag=1263e151-6e4b-4fa9-a576-7a53cf321937
To: <sip:0162xxxxxxx@tel.t-online.de>
Call-ID: 10552dab-8db0-4730-be0d-2fcd61300501
CSeq: 28794 INVITE
Content-Length: 0
<--- Received SIP response (436 bytes) from TLS:217.0.146.198:5061 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/TLS 10.10.0.3:5061;received=93.236.61.174;rport=34477;branch=z9hG4bKPjff265fa6-0065-4c44-af68-b3e3533590a1;alias
From: <sip:+49712xxxxxxx@tel.t-online.de>;tag=1263e151-6e4b-4fa9-a576-7a53cf321937
To: <sip:0162xxxxxxx@tel.t-online.de>;tag=mavodi-0-264-d5b-1-0-_022AEBB55836-1633-2c400700-c2a208-6af55cdb-c6977
Call-ID: 10552dab-8db0-4730-be0d-2fcd61300501
CSeq: 28794 INVITE
Content-Length: 0
<--- Transmitting SIP request (478 bytes) to TLS:217.0.146.198:5061 --->
ACK sip:0162xxxxxxx@tel.t-online.de SIP/2.0
Via: SIP/2.0/TLS 10.10.0.3:5061;rport;branch=z9hG4bKPjff265fa6-0065-4c44-af68-b3e3533590a1;alias
From: <sip:+49712xxxxxxx@tel.t-online.de>;tag=1263e151-6e4b-4fa9-a576-7a53cf321937
To: <sip:0162xxxxxxx@tel.t-online.de>;tag=mavodi-0-264-d5b-1-0-_022AEBB55836-1633-2c400700-c2a208-6af55cdb-c6977
Call-ID: 10552dab-8db0-4730-be0d-2fcd61300501
CSeq: 28794 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 24.0.0
Content-Length: 0
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [0162xxxxxxx@telefone:2] Hangup("PJSIP/buero-oben-00000023", "") in new stack
== Spawn extension (telefone, 0162xxxxxxx, 2) exited non-zero on 'PJSIP/buero-oben-00000023'
<--- Transmitting SIP response (387 bytes) to TCP:10.30.0.9:50926 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/TCP 10.30.0.9:50926;rport=50926;received=10.30.0.9;branch=z9hG4bK1145210133;alias
Call-ID: 1774330590-49121-9@BA.DA.A.J
From: "BĂĽro oben" <sip:buero-oben@hornet.lan>;tag=173446358
To: <sip:0162xxxxxxx@hornet.lan>;tag=1a8aefe1-c074-4a6d-8310-98b9213a7543
CSeq: 31 INVITE
Server: Asterisk PBX 24.0.0
Reason: Q.850;cause=21
Content-Length: 0
<--- Received SIP request (322 bytes) from TCP:10.30.0.9:50926 --->
ACK sip:0162xxxxxxx@hornet.lan SIP/2.0
Via: SIP/2.0/TCP 10.30.0.9:50926;branch=z9hG4bK1145210133;rport;alias
From: "BĂĽro oben" <sip:buero-oben@hornet.lan>;tag=173446358
To: <sip:0162xxxxxxx@hornet.lan>;tag=1a8aefe1-c074-4a6d-8310-98b9213a7543
Call-ID: 1774330590-49121-9@BA.DA.A.J
CSeq: 31 ACK
Content-Length: 0