~om26er/ubuntu/maverick/papyon/papyon-fix2-665526

« back to all changes in this revision

Viewing changes to papyon/sip/ice.py

  • Committer: Ken VanDine
  • Date: 2010-09-14 20:39:57 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: ken.vandine@canonical.com-20100914203957-1hriss4zo8rr11hr
Tags: 0.5.1-0ubuntu1
releasing version 0.5.1-0ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        if draft is 19:
154
154
            cand.priority = int(cand.priority)
155
155
        if draft is 6:
 
156
            cand.username = fix_b64_padding(cand.username)
 
157
            cand.password = fix_b64_padding(cand.password)
156
158
            cand.priority = int(float(cand.priority) * 1000)
157
159
            if cand.priority < 0.5:
158
160
                cand.type = "relay"
159
161
 
160
162
        cand.component_id = int(cand.component_id)
161
 
        cand.username = fix_b64_padding(cand.username)
162
 
        cand.password = fix_b64_padding(cand.password)
163
163
        cand.port = int(cand.port)
164
164
        if cand.base_port is not None:
165
165
            cand.base_port = int(cand.base_port)