irontec / itsbc

Irontec Tiny SBC. OpenSIPS & RTPEngine based micro SBC with Web Administration
GNU General Public License v3.0
36 stars 27 forks source link

Routing subscribes with protocol change #1

Open zetagor opened 6 years ago

zetagor commented 6 years ago

At least with TCP/TLS to UDP we have seen that 401 unauth is not accepted but originating SIPEndpoints, looking at the 401, looks well formatted, it's a normal reply, with correct headers. We need to check it.

Example request / response not working:

2018/05/01 15:41:31.962129 10.10.1.230:11894 -> 10.177.119.205:4090
REGISTER sip:10.177.119.205:4090 SIP/2.0
Via: SIP/2.0/TCP 10.10.1.230:5060;branch=z9hG4bK2543899826
From: "dectzgorcasa" <sip:dectzgorcasa@10.177.119.205:4090>;tag=4099035981
To: "dectzgorcasa" <sip:dectzgorcasa@10.177.119.205:4090>
Call-ID: 2_1570475743@10.10.1.230
CSeq: 1 REGISTER
Contact: <sip:dectzgorcasa@10.10.1.230:5060;transport=TCP>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T46G 28.81.0.25
Expires: 3600
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0

2018/05/01 15:41:32.113809 10.177.119.205:4090 -> 10.10.1.230:11894
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 10.10.1.230:5060;branch=z9hG4bK2543899826
From: "dectzgorcasa" <sip:dectzgorcasa@10.177.119.205:4090>;tag=4099035981
To: "dectzgorcasa" <sip:dectzgorcasa@10.177.119.205:4090>;tag=as4f080a38
Call-ID: 2_1570475743@10.10.1.230
CSeq: 1 REGISTER
Server: "Irontec IVOZ"
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm="lifeontheedge", nonce="76836ae0"
Content-Length: 0