Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic PhonerLite wrong SIP ACK header with TH (Read 3555 times)
Lelik
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 20. Aug 2018
PhonerLite wrong SIP ACK header with TH
20. Aug 2018 at 09:39
Print Post  
Hello.

When topology hiding is used on server, PhonerLite send wrong ACK.

SIP trace, received OK (Contact field is used to hide topology):

-------------------------------------------
09:18:37,924: R: <SIPproxyIP>:port (TCP)
SIP/2.0 200 OK
Via: SIP/2.0/TCP b6a2e811991f166e0d816d15
From: "PhonerLite" <sip:202@siptest.local>;tag=3672644403
To: <sip:*7@siptest.local;transport=tcp>;tag=as389e1278
Call-ID: 80847AEC-B6A2-E811-991D-166E0D816D15@192.168.11.59
CSeq: 8 INVITE
Server: ipnordic
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: RGgWBhZdBwxxSWRaTVBWXxgGcF9pXVNUVg==">
Content-Type: application/sdp
Require: timer
Content-Length: 349

v=0
o=root 317700079 317700079 IN IP4 <RTPproxyIP>
s=asterisk
c=IN IP4 <RTPproxyIP>
t=0 0
m=audio 10794 RTP/SAVP 9 8 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv
a=rtcp:10795
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:xxxx
a=ptime:20


and sends ACK like this:

09:18:37,925: T: <SIPproxyIP>:port (TCP)
ACK XRGgWBhZdBwxxSWRaTVBWXxgGcF9pXVNUVg%3D%3D%22 SIP/2.0
Via: SIP/2.0/TCP 192.168.11.59:50041;branch=z9hG4bK80847aecb6a2e8119920166e0d816d15;rport
From: "PhonerLite" <sip:202@siptest.local>;tag=3672644403
To: <sip:*7@siptest.local;transport=tcp>;tag=as389e1278
Call-ID: 80847AEC-B6A2-E811-991D-166E0D816D15@192.168.11.59
CSeq: 8 ACK
Contact: 5>
Authorization: Digest username="202", realm="asterisk", nonce="7b4251ac", 0DBHJXRGgWBhZdBwxxSWRaTVBWXxgGcF9pXVNUVg%3D%3D%22", response="6b0d210c9bfe881ec91e3aa163209087", algorithm=MD5
Max-Forwards: 70
Content-Length: 0

So PhonerLite urlencodes RURI in ACK request, but it must be not encoded:
ACK GgWBhZdBwxxSWRaTVBWXxgGcF9pXVNUVg==" SIP/2.0

Can't fight parser, it's impossible to show SIP-trace. So I attached it in the file.

Thanks.
  

phonerlite.txt ( 2 KB | 147 Downloads )
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11408
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: PhonerLite wrong SIP ACK header with TH
Reply #1 - 21. Aug 2018 at 10:21
Print Post  
Can you please check version 2.67? Does that fix the problem?
  
Back to top
WWW  
IP Logged
 
Lelik
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 20. Aug 2018
Re: PhonerLite wrong SIP ACK header with TH
Reply #2 - 21. Aug 2018 at 11:52
Print Post  
Yes, 2.67 works fine! Thanks for so fast response.
  
Back to top
 
IP Logged
 
Lelik
YaBB Newbies
*
Offline


Phoner is great!

Posts: 3
Joined: 20. Aug 2018
Re: PhonerLite wrong SIP ACK header with TH
Reply #3 - 22. Aug 2018 at 10:57
Print Post  
And by the way, such format of parameter in Contact header didn't match RFC 3261.
This is issue for OpenSIPS: https://github.com/OpenSIPS/opensips/issues/1447

But anyway, correction in PhonerLite will work.
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11408
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: PhonerLite wrong SIP ACK header with TH
Reply #4 - 27. Aug 2018 at 09:03
Print Post  
Thanks for this update. Then I understand, why it didn't work originally.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint