Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tayler6000 committed Feb 24, 2022
1 parent ae25af6 commit 7ae682b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyVoIP/SIP.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def genRegister(self, request):
regRequest += "\r\nCSeq: "+str(self.registerCounter.next())+" REGISTER"
regRequest +="\r\nExpires: 300\r\nAllow: "+(", ".join(pyVoIP.SIPCompatibleMethods))+"\r\nUser-Agent: pyVoIP """+pyVoIP.__version__+"\r\n"
regRequest += 'Authorization: Digest username="'+self.username
regRequest += '",realm="+realm+",nonce="'+nonce
regRequest += '",realm="'+realm+'",nonce="'+nonce
regRequest += '",uri="sip:'+self.server
regRequest += ';transport=UDP",response="'+str(response, 'utf8')
regRequest += '",algorithm=MD5\r\n'+"Content-Length: 0\r\n\r\n"
Expand Down Expand Up @@ -828,7 +828,7 @@ def invite(self, number, ms, sendtype):
nonce = response.authentication['nonce']
realm = response.authentication['realm']
auth = 'Authorization: Digest username="'+self.username
auth += '",realm="+realm+",nonce="'+nonce
auth += '",realm="'+realm+'",nonce="'+nonce
auth += '",uri="sip:'+self.server
auth += ';transport=UDP",response="'+str(authhash, 'utf8')
auth += '",algorithm=MD5\r\n'
Expand Down

0 comments on commit 7ae682b

Please sign in to comment.