Menu

#376 Calls fail since v15

Fixed
nobody
None
Medium
Defect
2010-11-13
2010-11-11
Anonymous
No

Originally created by: ara...@gmail.com
Originally owned by: r3gis...@gmail.com

Since upgrading from v13 to v15 I have been unable to make calls through one of my PSTN gateway providers.  I've analyzed the SIP conversation and the problem is that CSipSimple is not authenticating when the SIP proxy challenges it for authentication.  Here is a transcript:

U 172.18.87.134:5060 -> 41.183.0.13:5060
  INVITE sip:0217903852@voice.fnbconnect.co.za SIP/2.0..Via: SIP/2.0/UDP 196.209.37.154:5060;rport;branch=z9hG4bKPjc2ldzfoPXVGW2D
  GD7paRYKUc6xoXK7ok..Max-Forwards: 70..From: "Aragon Gouveia" <sip:0875760000@fnbconnect.co.za>;tag=wHz51rAMcyQDTXgxYKO5L804j4bt
  OF0Q..To: sip:0217903852@voice.fnbconnect.co.za..Contact: "Aragon Gouveia" <sip:0875760000@196.209.37.154:5060>..Call-ID: Bx7BX
  3nbvpGtfmXD75atpGb0YpkUGCoT..CSeq: 8958 INVITE..Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSA
  GE, OPTIONS..Supported: replaces, 100rel, timer, norefersub..Session-Expires: 1800..Min-SE: 90..User-Agent: CSipSimple..Content
  -Type: application/sdp..Content-Length:   428....v=0..o=- 3498490293 3498490293 IN IP4 196.209.37.154..s=pjmedia..c=IN IP4 196.
  209.37.154..t=0 0..a=X-nat:8..m=audio 4000 RTP/AVP 97 104 98 9 0 8 3 96..a=rtcp:4001 IN IP4 196.209.37.154..a=rtpmap:97 speex/8
  000..a=rtpmap:104 iLBC/8000..a=fmtp:104 mode=30..a=rtpmap:98 speex/16000..a=rtpmap:9 G722/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:
  8 PCMA/8000..a=rtpmap:3 GSM/8000..a=sendrecv..a=rtpmap:96 telephone-event/8000..a=fmtp:96 0-15..                              
#
U 41.183.0.13:5060 -> 172.18.87.134:5060
  SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 196.209.37.154:5060;branch=z9hG4bKPjc2ldzfoPXVGW2DGD7paRYKUc6xoXK7o
  k;received=196.209.37.154;rport=5060..From: "Aragon Gouveia" <sip:0875760000@fnbconnect.co.za>;tag=wHz51rAMcyQDTXgxYKO5L804j4bt
  OF0Q..To: sip:0217903852@voice.fnbconnect.co.za;tag=as70fb8548..Call-ID: Bx7BX3nbvpGtfmXD75atpGb0YpkUGCoT..CSeq: 8958 INVITE..U
  ser-Agent: FNB Connect..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Proxy-Au
  thenticate: Digest algorithm=MD5, realm="fnbconnect.co.za", nonce="78cb73e7"..Content-Length: 0....                           
#
U 172.18.87.134:5060 -> 41.183.0.13:5060
  ACK sip:0217903852@voice.fnbconnect.co.za SIP/2.0..Via: SIP/2.0/UDP 196.209.37.154:5060;rport;branch=z9hG4bKPjc2ldzfoPXVGW2DGD7
  paRYKUc6xoXK7ok..Max-Forwards: 70..From: "Aragon Gouveia" <sip:0875760000@fnbconnect.co.za>;tag=wHz51rAMcyQDTXgxYKO5L804j4btOF0
  Q..To: sip:0217903852@voice.fnbconnect.co.za;tag=as70fb8548..Call-ID: Bx7BX3nbvpGtfmXD75atpGb0YpkUGCoT..CSeq: 8958 ACK..Content
  -Length:  0....                                                                                                               

The last ACK message above is the last message CSipSimple sends.  In the UI it just hangs up after about a minute of doing nothing.  Here is a transcript of the same call with the same provider, but from a Nokia handset:

U 172.18.87.140:5060 -> 41.183.0.13:5060
  INVITE sip:0217903852@fnbconnect.co.za SIP/2.0..Route: <sip:voice.fnbconnect.co.za:5060;lr;transport=UDP>..Via: SIP/2.0/UDP 172
  .18.87.140:5060;branch=z9hG4bK64f9ts3pephc61avitap5vu;rport..From: <sip:0875760000@fnbconnect.co.za>;tag=06l9ts6d01hc7bq7itas..
  To: <sip:0217903852@fnbconnect.co.za>..Contact: <sip:tp-K8tMqn1uEJGo-_P73@172.18.87.140:5060;transport=UDP>..Supported: 100rel,
  timer,sec-agree..CSeq: 10543 INVITE..Call-ID: vUiuY7WeoIfzbVtlKo3HiBchD2-PcI..Allow: UPDATE,PRACK,SUBSCRIBE,REFER,NOTIFY,INVITE
  ,ACK,CANCEL,OPTIONS,BYE..User-Agent: Nokia RM-469 051.018 (en)..Expires: 120..Privacy: None..Session-Expires: 1800..Max-Forward
  s: 70..Content-Type: application/sdp..Accept-Language: en..Content-Length: 522....v=0..o=0875760000 63457764762002000 634577647
  62002000 IN IP4 172.18.87.140..s=-..c=IN IP4 172.18.87.140..t=0 0..m=audio 49152 RTP/AVP 100 96 97 0 8 18 98..a=sendrecv..a=rtp
  map:100 AMR-WB/16000..a=ptime:20..a=maxptime:200..a=fmtp:100 mode-change-period=2; mode-change-neighbor=1..a=rtpmap:96 AMR/8000
  ..a=fmtp:96 mode-set=0,1,2,3,4,5,6,7; mode-change-neighbor=1..a=rtpmap:97 iLBC/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000
  ..a=rtpmap:18 G729/8000..a=fmtp:18 annexb=no..a=rtpmap:98 telephone-event/8000..a=fmtp:98 0-15..                              
#
U 41.183.0.13:5060 -> 172.18.87.140:5060
  SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 172.18.87.140:5060;branch=z9hG4bK64f9ts3pephc61avitap5vu;received=1
  96.209.37.154;rport=47364..From: <sip:0875760000@fnbconnect.co.za>;tag=06l9ts6d01hc7bq7itas..To: <sip:0217903852@fnbconnect.co.
  za>;tag=as53e275eb..Call-ID: vUiuY7WeoIfzbVtlKo3HiBchD2-PcI..CSeq: 10543 INVITE..User-Agent: FNB Connect..Allow: INVITE, ACK, C
  ANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Proxy-Authenticate: Digest algorithm=MD5, realm="fnbc
  onnect.co.za", nonce="45c41114"..Content-Length: 0....                                                                        
#
U 172.18.87.140:5060 -> 41.183.0.13:5060
  ACK sip:0217903852@fnbconnect.co.za SIP/2.0..Via: SIP/2.0/UDP 172.18.87.140:5060;branch=z9hG4bK64f9ts3pephc61avitap5vu;rport..R
  oute: <sip:voice.fnbconnect.co.za:5060;lr;transport=UDP>..From: <sip:0875760000@fnbconnect.co.za>;tag=06l9ts6d01hc7bq7itas..To:
   <sip:0217903852@fnbconnect.co.za>;tag=as53e275eb..Call-ID: vUiuY7WeoIfzbVtlKo3HiBchD2-PcI..CSeq: 10543 ACK..Supported: sec-agr
  ee..Max-Forwards: 70..Content-Length: 0....                                                                                   
#
U 172.18.87.140:5060 -> 41.183.0.13:5060
  INVITE sip:0217903852@fnbconnect.co.za SIP/2.0..Route: <sip:voice.fnbconnect.co.za:5060;lr;transport=UDP>..Via: SIP/2.0/UDP 172
  .18.87.140:5060;branch=z9hG4bK8kt32mapf3rvm7asjro136r;rport..From: <sip:0875760000@fnbconnect.co.za>;tag=06l9ts6d01hc7bq7itas..
  To: <sip:0217903852@fnbconnect.co.za>..Contact: <sip:tp-K8tMqn1uEJGo-_P73@172.18.87.140:5060;transport=UDP>..Supported: 100rel,
  timer,sec-agree..CSeq: 10544 INVITE..Call-ID: vUiuY7WeoIfzbVtlKo3HiBchD2-PcI..Allow: UPDATE,PRACK,SUBSCRIBE,REFER,NOTIFY,INVITE
  ,ACK,CANCEL,OPTIONS,BYE..User-Agent: Nokia RM-469 051.018 (en)..Expires: 120..Privacy: None..Session-Expires: 1800..Max-Forward
  s: 70..Proxy-Authorization: Digest realm="fnbconnect.co.za",nonce="45c41114",algorithm=MD5,username="0875760000",uri="sip:02179
  03852@fnbconnect.co.za",response="xxx"..Content-Type: application/sdp..Accept-Language: en..Conten
  t-Length: 522....v=0..o=0875760000 63457764762002000 63457764762002000 IN IP4 172.18.87.140..s=-..c=IN IP4 172.18.87.140..t=0 0
  ..m=audio 49152 RTP/AVP 100 96 97 0 8 18 98..a=sendrecv..a=rtpmap:100 AMR-WB/16000..a=ptime:20..a=maxptime:200..a=fmtp:100 mode
  -change-period=2; mode-change-neighbor=1..a=rtpmap:96 AMR/8000..a=fmtp:96 mode-set=0,1,2,3,4,5,6,7; mode-change-neighbor=1..a=r
  tpmap:97 iLBC/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:18 G729/8000..a=fmtp:18 annexb=no..a=rtpmap:98 telepho
  ne-event/8000..a=fmtp:98 0-15..

The call goes through with the Nokia handset.

What's strange is that CSipSimple doesn't have the same problem with Ekiga.net.  Here is a transcript between Ekiga and CSipSimple:

U 172.18.87.134:5060 -> 86.64.162.35:5060
  INVITE sip:500@ekiga.net SIP/2.0..Via: SIP/2.0/UDP 196.209.37.154:5060;rport;branch=z9hG4bKPjJLcliPcxslM8ikEOGC24YX6PScmvh0DX..
  Max-Forwards: 70..From: "Aragon Gouveia" <sip:xxx@ekiga.net>;tag=cLmfj9.pjCAUUbj41d4jmddZvsmepZ7M..To: sip:500@ekiga.net..Co
  ntact: "Aragon Gouveia" <sip:xxx@196.209.37.154:5060>..Call-ID: NpJzoGTMXsR5JQcqmNfraZv3giMw5nsO..CSeq: 17840 INVITE..Allow:
   PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS..Supported: replaces, 100rel, timer, noref
  ersub..Session-Expires: 1800..Min-SE: 90..User-Agent: CSipSimple..Content-Type: application/sdp..Content-Length:   428....v=0..
  o=- 3498494134 3498494134 IN IP4 196.209.37.154..s=pjmedia..c=IN IP4 196.209.37.154..t=0 0..a=X-nat:8..m=audio 4002 RTP/AVP 97
  104 98 9 0 8 3 96..a=rtcp:4003 IN IP4 196.209.37.154..a=rtpmap:97 speex/8000..a=rtpmap:104 iLBC/8000..a=fmtp:104 mode=30..a=rtp
  map:98 speex/16000..a=rtpmap:9 G722/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:3 GSM/8000..a=sendrecv..a=rtpmap
  :96 telephone-event/8000..a=fmtp:96 0-15..                                                                                    
#
U 86.64.162.35:5060 -> 172.18.87.134:5060
  SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP 196.209.37.154:5060;rport=5060;branch=z9hG4bKPjJLcliPcxslM8ikEOGC24
  YX6PScmvh0DX..From: "Aragon Gouveia" <sip:xxx@ekiga.net>;tag=cLmfj9.pjCAUUbj41d4jmddZvsmepZ7M..To: sip:500@ekiga.net;tag=c64
  e1f832a41ec1c1f4e5673ac5b80f6.4dd4..Call-ID: NpJzoGTMXsR5JQcqmNfraZv3giMw5nsO..CSeq: 17840 INVITE..Proxy-Authenticate: Digest r
  ealm="ekiga.net", nonce="4cdc4a530000a1472b1f7a92e118afc73ed3efcaa16d685f"..Server: Kamailio (1.5.3-notls (i386/linux))..Conten
  t-Length: 0....                                                                                                               
#
U 172.18.87.134:5060 -> 86.64.162.35:5060
  ACK sip:500@ekiga.net SIP/2.0..Via: SIP/2.0/UDP 196.209.37.154:5060;rport;branch=z9hG4bKPjJLcliPcxslM8ikEOGC24YX6PScmvh0DX..Max
  -Forwards: 70..From: "Aragon Gouveia" <sip:xxx@ekiga.net>;tag=cLmfj9.pjCAUUbj41d4jmddZvsmepZ7M..To: sip:500@ekiga.net;tag=c6
  4e1f832a41ec1c1f4e5673ac5b80f6.4dd4..Call-ID: NpJzoGTMXsR5JQcqmNfraZv3giMw5nsO..CSeq: 17840 ACK..Content-Length:  0....       
#
U 172.18.87.134:5060 -> 86.64.162.35:5060
  INVITE sip:500@ekiga.net SIP/2.0..Via: SIP/2.0/UDP 196.209.37.154:5060;rport;branch=z9hG4bKPjjAvwqdCiP2EC64w4xOB24-iZdQ2Nb-TX..
  Max-Forwards: 70..From: "Aragon Gouveia" <sip:xxx@ekiga.net>;tag=cLmfj9.pjCAUUbj41d4jmddZvsmepZ7M..To: sip:500@ekiga.net..Co
  ntact: "Aragon Gouveia" <sip:xxx@196.209.37.154:5060>..Call-ID: NpJzoGTMXsR5JQcqmNfraZv3giMw5nsO..CSeq: 17841 INVITE..Allow:
   PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS..Supported: replaces, 100rel, timer, noref
  ersub..Session-Expires: 1800..Min-SE: 90..User-Agent: CSipSimple..Proxy-Authorization: Digest username="xxx", realm="ekiga.n
  et", nonce="4cdc4a530000a1472b1f7a92e118afc73ed3efcaa16d685f", uri="sip:500@ekiga.net", response="xxx"
  ..Content-Type: application/sdp..Content-Length:   428....v=0..o=- 3498494134 3498494134 IN IP4 196.209.37.154..s=pjmedia..
  c=IN IP4 196.209.37.154..t=0 0..a=X-nat:8..m=audio 4002 RTP/AVP 97 104 98 9 0 8 3 96..a=rtcp:4003 IN IP4 196.209.37.154..a=rtpm
  ap:97 speex/8000..a=rtpmap:104 iLBC/8000..a=fmtp:104 mode=30..a=rtpmap:98 speex/16000..a=rtpmap:9 G722/8000..a=rtpmap:0 PCMU/80
  00..a=rtpmap:8 PCMA/8000..a=rtpmap:3 GSM/8000..a=sendrecv..a=rtpmap:96 telephone-event/8000..a=fmtp:96 0-15..

Hope this is helpful enough to troubleshoot!

Discussion

  • Anonymous

    Anonymous - 2010-11-13

    Originally posted by: r3gis...@gmail.com

    Thx for logs. I'm wondering if the fix I'm doing in issue 245 will not fix that one too.

    Something about the difference between :
      To: <sip:0217903852@fnbconnect.co.za> (on your nokia)
    &
      To: sip:0217903852@voice.fnbconnect.co.za (on CSipSimple)

    The <> seems to impact the behavior of some sip servers.... I'll fix that in next dev build and only use <> instead of simple uri form.

    I'll keep you in touch to test the new version, but the fix I'm doing can make sense to solve this problem.

    Owner: r3gis.3R
    Status: Started

     

    Related

    Tickets: #245

  • Anonymous

    Anonymous - 2010-11-13

    Originally posted by: r3gis...@gmail.com

    Should be fixed in 0.00-15-11 available on download section.

    Status: Fixed

     

Log in to post a comment.