I am using Telephone softphone on macOS. When making a call, it sends the following INVITE request:
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 192.168.1.13:63980;rport;branch=z9hG4bKPj1J2vaemfz28guXCjwsCNuCM4K7AGksTF
Max-Forwards: 70
From: "Andriy Makukha" <sip:[email protected]>;tag=CK3y0yotv2v1AclTF2sBahkYcA721X7t
To: <sip:[email protected]>
Contact: "Andriy Makukha" <sip:[email protected]:63980;ob>
Call-ID: Tu2FDGIveVVM1BZFKY1IUYFxkxuBWZU5
CSeq: 18057 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, norefersub
User-Agent: Telephone 1.4
Content-Type: application/sdp
Content-Length: 541
...
As you can see, the request doesn't have neither Proxy-Authorization
nor Authorization
header. However, the server never challenges this request with a 407 Proxy Authentication Required
response. The call always goes through directly.
On the other hand, when I use another SIP client, the server always sends Proxy Authentication Required response.
What does Telephone do that allows it to avoid authentication while making a call?
Additional information:
- after launch, the softphone sends a REGISTER request and receives a
401 Unathorized
response and then resends the REGISTER with theAuthorization
header - the REGISTER request is sent to 91.121.209.194, which is the A-record for the domain sip.linphone.org (domain of the caller)
- however, the INVITE request is being sent directly to 91.121.30.149 which is the A-record for the domain sip.antisip.com (domain of the callee).