I followed @jcolp’s blog post to add the line=
option to my Contact:
header and it appears to be working:
<--- Transmitting SIP request (743 bytes) to UDP:1.2.3.4:5060 --->
REGISTER sip:itsp4.example.com SIP/2.0
Via: SIP/2.0/UDP 10.75.22.8:5060;rport;branch=z9hG4bKPjb16d134c-3210-45ba-8acd-0b33f7899327
From: <sip:my_itsp_account@itsp4.example.com>;tag=56138ab9-8c52-43a6-814f-9cb70285b5b1
To: <sip:my_itsp_account@itsp4.example.com>
Call-ID: 9170809e-ab7a-4b22-b74f-c4528c419dc3
CSeq: 30765 REGISTER
Contact: <sip:1235551212@10.75.22.8:5060;line=abcdefg>
Expires: 3600
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, REFER, MESSAGE
Max-Forwards: 70
User-Agent: Asterisk PBX 13.38.1
Authorization: Digest username="my_itsp_account", realm="itsp4.example.com", nonce="[redacted]", uri="sip:itsp4.example.com", response="[redacted]", algorithm=MD5
Content-Length: 0
<--- Received SIP response (610 bytes) from UDP:1.2.3.4:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.75.22.8:5060;branch=z9hG4bKPjb16d134c-3210-45ba-8acd-0b33f7899327;received=10.75.22.8;rport=5060
From: <sip:my_itsp_account@itsp4.example.com>;tag=56138ab9-8c52-43a6-814f-9cb70285b5b1
To: <sip:my_itsp_account@itsp4.example.com>;tag=as15e6a747
Call-ID: 9170809e-ab7a-4b22-b74f-c4528c419dc3
CSeq: 30765 REGISTER
Server: example.com
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Expires: 3600
Contact: <sip:1235551212@10.75.22.8:5060;line=abcdefg>;expires=3600
Date: Wed, 30 Dec 2020 16:35:06 GMT
Content-Length: 0
And when I receive an INVITE
from my ITSP for a call being routed to me, the INVITE
looks like:
<--- Received SIP request (1025 bytes) from UDP:1.2.3.4:5060 --->
INVITE sip:1235551212@10.75.22.8:5060 SIP/2.0
Via: SIP/2.0/UDP 1.2.3.4:5060;branch=z9hG4bK4bc4d517;rport
Max-Forwards: 70
From: "Loopback" <sip:1235551212@1.2.3.4>;tag=as25d6c8c3
To: <sip:1235551212@10.75.22.8:5060>
Contact: <sip:1235551212@1.2.3.4:5060>
Call-ID: 397efeaa4c5caa040d4dbd952eee2ae0@1.2.3.4:5060
CSeq: 102 INVITE
User-Agent: example.com
Date: Wed, 30 Dec 2020 17:05:41 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
X-Dest-User: my_itsp_account
Remote-Party-ID: "Loopback" <sip:1235551212@1.2.3.4>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 317
I don’t see the line=abcdefg
anywhere in that INVITE
. Am I missing it or is this ITSP violating the requirement that the remote server is supposed to call us using the Contact we provide to them?
Is this requirement written in an RFC somewhere that I can quote to them in getting them to fix this?
Cheers.