]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoint identifiers: Some code cleanup.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 2 Feb 2018 23:35:20 +0000 (17:35 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 3 Feb 2018 00:02:56 +0000 (18:02 -0600)
commitc3916cbc0ea13f4ada2f5ec01bf8e9ae832ea128
treeab50fbaed7e0d1a55fc0473617dccd49577ebc1a
parent6280eb0c8c120bc50adcdc6a713d3e8f7ef43b57
endpoint identifiers: Some code cleanup.

res_pjsip_endpoint_identifier_user.c:
* Fix copy/paste error in find_endpoint().  We were using a constant
"anonymous" string instead of the passed in endpoint_name when checking
the transport domain for an endpoint match.
* Eliminate RAII_VAR in find_endpoint().
* Remove always true check in find_transport_state_in_use().
* Remove useless CMD_STOP in find_transport_state_in_use().

res_pjsip_endpoint_identifier_anonymous.c:
* Eliminate RAII_VAR in anonymous_identify().
* Remove always true check in find_transport_state_in_use().
* Remove useless CMD_STOP in find_transport_state_in_use().

Change-Id: I86924c31db5bd225ca0c1219c761b668c6f91189
res/res_pjsip_endpoint_identifier_anonymous.c
res/res_pjsip_endpoint_identifier_user.c