]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix contact authenticate_qualify endpoint lookup when qualifing a contact.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 25 Mar 2014 16:55:16 +0000 (16:55 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 25 Mar 2014 16:55:16 +0000 (16:55 +0000)
commit6695c113dbb6fe8d16b873c8ee7db5297d6a67a5
treea816ac4c69de84b13eba16fea832d3b6804b8ab7
parent0a2ebbd81515ca0d3a05172d8160d6e6d540739a
res_pjsip: Fix contact authenticate_qualify endpoint lookup when qualifing a contact.

* Fixed bad use of ao2_find() in on_endpoint().

* Replaced use of find_endpoints() with find_an_endpoint() since only the
first found endpoint is ever needed.

* Fixed qualify_contact_cb() to update the contact with the aor
authenticate_qualify setting.  Otherwise, permanent contacts in the aor
type sections would have a config line order dependancy.

* Fixed off nominal path contact ref leak in qualify_contact().  The
comment saying the unref is not needed was wrong.

* Fixed off nominal path use of the endpoint parameter if it is NULL in
send_out_of_dialog_request().

* Added missing off nominal path unref of pjsip tdata in
send_out_of_dialog_request().

* Fixed off nominal path failing to call the callback in send_request_cb()
when the request is challenged for authentication.

* Eliminated silly RAII_VAR() use in qualify_contact_cb().

* Updated ast_sip_send_request() doxygen to better reflect reality.

(closes issue ASTERISK-23254)
Reported by: rmudgett

Review: https://reviewboard.asterisk.org/r/3381/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@411141 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/pjsip_options.c