From: <kak...@us...> - 2009-07-28 20:48:21
|
Revision: 11407 http://amsn.svn.sourceforge.net/amsn/?rev=11407&view=rev Author: kakaroto Date: 2009-07-28 20:48:10 +0000 (Tue, 28 Jul 2009) Log Message: ----------- Fix A/V connectivity issues with base64 package 2.3 (mac) Modified Paths: -------------- trunk/amsn/sip.tcl Modified: trunk/amsn/sip.tcl =================================================================== --- trunk/amsn/sip.tcl 2009-07-28 17:38:19 UTC (rev 11406) +++ trunk/amsn/sip.tcl 2009-07-28 20:48:10 UTC (rev 11407) @@ -2163,12 +2163,10 @@ if {$username != "" && $password != "" && $transport == "UDP"} { - if {[string length [base64::decode $username]] != 32 && - [string range $username end end] != "="} { + if {[string range $username end end] != "="} { append username "=" } - if {[string length [base64::decode $password]] != 16 && - [string range $password end end] != "="} { + if {[string range $password end end] != "="} { append password "==" } set foundation [string range $username 0 31] @@ -2201,12 +2199,10 @@ if {$username != "" && $password != "" && $transport == "UDP"} { - if {[string length [base64::decode $username]] != 32 && - [string range $username end end] != "="} { + if {[string range $username end end] != "="} { append username "=" } - if {[string length [base64::decode $password]] != 16 && - [string range $password end end] != "="} { + if {[string range $password end end] != "="} { append password "==" } set foundation [string range $username 0 31] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |