]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix logic regarding when to perform an SRV lookup for outgoing REGISTER requests
authorMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 23:19:16 +0000 (23:19 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 5 Feb 2009 23:19:16 +0000 (23:19 +0000)
commitf70845aa24d1ef14d9e411692ae38914d6533e35
tree8517dc57e12db895dba9435466d846b0ef91e166
parent0b026ce04f323d2bcec5ac43e3e62f69754b35ec
Fix logic regarding when to perform an SRV lookup for outgoing REGISTER requests

With this fix, we only will perform an SRV lookup at the following times:

* The first time we register with a remote registrar
* If we send a REGISTER but do not receive a response
* If the sendto() function returns an error

While I wrote the patch that fixes this issue, a huge amount of credit is due
to Brett Bryant, who wrote the initial patch on which I based this one.

(closes issue #12312)
Reported by: jrast
Patches:
      12312.patch uploaded by putnopvut (license 60)
Tested by: blitzrage

Review: http://reviewboard.digium.com/r/132/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@173770 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c