Hello,
I am trying to connect my ITSP’s IMS service to my Asterisk instance at home. I managed to get outbound working but inbound doesn’t want to cooperate. When I call my home phone [HOME-PHONE], my call immideately gets dropped.
The error in question:
[May 11 17:02:01] NOTICE[29723][C-00000001] chan_sip.c: From address missing 'sip:', using it anyway
[May 11 17:02:01] ERROR[29723][C-00000001] chan_sip.c: Empty domain name in FROM header
[May 11 17:02:01] NOTICE[29723][C-00000001] chan_sip.c: Failed to authenticate device <tel:[REDACTED]>;tag=ztesip[REDACTED]
Verbose output:
[May 11 17:18:44] VERBOSE[29723] chan_sip.c:
<--- SIP read from UDP:10.155.1.70:5060 --->
INVITE sip:s@192.168.2.71:5061 SIP/2.0
Via: SIP/2.0/UDP 10.155.1.70:5060;branch=[REDACTED]
To: <tel:+90[HOME-PHONE]>
From: <tel:[CELLPHONE]>;tag=ztesip[REDACTED]
Call-ID: [REDACTED]@zteims
CSeq: 1000 INVITE
Max-Forwards: 43
Contact: <sip:[CELLPHONE]@10.155.1.70:5060;zte-did=[REDACTED]>
Record-Route: <sip:10.155.1.70:5060;lr>
P-Called-Party-ID: <sip:+90[HOME-PHONE]@ttimscore.com.tr;user=phone>
Supported: 100rel,timer
P-Early-Media: supported
P-Asserted-Identity: <tel:[CELLPHONE]>
User-Agent: ZTE Softswitch/1.0.0
X-ZTE-Cookie: [REDACTED]
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,INFO,REFER,NOTIFY,SUBSCRIBE,PRACK,UPDATE
Privacy: none
Min-SE: 90
Session-Expires: 600;refresher=uac
Content-Type: application/sdp
Content-Length: 171
Content-Disposition: session
v=0
o=- 77 935547305 IN IP4 10.155.1.3
s=-
c=IN IP4 10.155.1.3
t=0 0
m=audio 21132 RTP/AVP 8 0 18 4 97
a=rtpmap:97 telephone-event/8000
a=fmtp:97 0-15
a=ptime:20
<------------->
[May 11 17:18:44] VERBOSE[29723] chan_sip.c: --- (22 headers 9 lines) ---
[May 11 17:18:44] VERBOSE[29723] chan_sip.c: Sending to 10.155.1.70:5060 (NAT)
[May 11 17:18:44] VERBOSE[29723][C-00000003] chan_sip.c: Sending to 10.155.1.70:5060 (NAT)
[May 11 17:18:44] VERBOSE[29723][C-00000003] chan_sip.c: Using INVITE request as basis request - [REDACTED]@zteims
[May 11 17:18:44] NOTICE[29723][C-00000003] chan_sip.c: From address missing 'sip:', using it anyway
[May 11 17:18:44] ERROR[29723][C-00000003] chan_sip.c: Empty domain name in FROM header
[May 11 17:18:44] NOTICE[29723][C-00000003] chan_sip.c: Failed to authenticate device <tel:[CELLPHONE]>;tag=ztesip[REDACTED]
[May 11 17:18:44] VERBOSE[29723][C-00000003] chan_sip.c:
<--- Reliably Transmitting (NAT) to 10.155.1.70:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 10.155.1.70:5060;branch=[REDACTED];received=10.155.1.70;rport=5060
From: <tel:[CELLPHONE]>;tag=ztesip[REDACTED]
To: <tel:+90[HOME-PHONE]>;tag=[REDACTED]
Call-ID: [REDACTED]@zteims
CSeq: 1000 INVITE
Server: Asterisk PBX 16.3.0
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0
<------------>
[May 11 17:18:44] VERBOSE[29723][C-00000003] chan_sip.c: Scheduling destruction of SIP dialog '[REDACTED]@zteims' in 32000 ms (Method: INVITE)
[May 11 17:18:44] VERBOSE[29723] chan_sip.c:
<--- SIP read from UDP:10.155.1.70:5060 --->
ACK sip:s@192.168.2.71:5061 SIP/2.0
Via: SIP/2.0/UDP 10.155.1.70:5060;rport=5060;branch=[REDACTED]
To: <tel:+90[HOME-PHONE]>;tag=[REDACTED]
From: <tel:[CELLPHONE]>;tag=ztesip[REDACTED]
Call-ID: [REDACTED]@zteims
CSeq: 1000 ACK
Max-Forwards: 70
User-Agent: ZTE-SBC
Content-Length: 0
<------------->
[May 11 17:18:44] VERBOSE[29723] chan_sip.c: --- (9 headers 0 lines) ---
[May 11 17:18:44] VERBOSE[29723] chan_sip.c: Really destroying SIP dialog '[REDACTED]@zteims' Method: ACK
chan_sip configuration
udpbindaddr=0.0.0.0:5061
tcpenable=no
register => +90[HOME-PHONE]@ttimscore.com.tr:[PASS]:"+90[HOME-PHONE]@ttimscore.com.tr"@ttkom
[ttkom]
type=peer
context=from-ttkom
insecure=invite
host=[REGION].[PROVINCE].ttimscore.com.tr
defaultuser=+90[HOME-PHONE]@ttimscore.com.tr
fromuser=+90[HOME-PHONE]
fromdomain=ttimscore.com.tr
secret=[PASS]
trustrpid=yes
sendrpid=no
directmedia=no
videosupport=no
disallow=all
allow=alaw
[6970]
context=to-ttkom
type=friend
defaultuser=6970
secret=[SECRET]
host=dynamic
extensions.conf
[from-ttkom]
exten => s,1,Dial(SIP/6970)
[to-ttkom]
exten => _X.,1,Dial(SIP/ttkom/${EXTEN})
Running Asterisk 16.3.0 on Ubuntu 16.04.