]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: ami: Fix error in AMI output when an endpoint has no transport
authorGeorge Joseph <george.joseph@fairview5.com>
Thu, 18 Sep 2014 15:01:11 +0000 (15:01 +0000)
committerGeorge Joseph <george.joseph@fairview5.com>
Thu, 18 Sep 2014 15:01:11 +0000 (15:01 +0000)
commitb436f387cc1bbb667df996158cb9e5dce6d7c662
tree4dd8f2d0de3ee0fbc83d0b6fbaa74b11c03ccf7a
parenta163335e883ef0e6984b4be31194e2e3b12bbd79
res_pjsip: ami: Fix error in AMI output when an endpoint has no transport

When no transport is associated to an endpoint, the AMI output for
PJSIPShowEndpoint indicates an error instead of silently ignoring the
missing transport.

This patch causes the error to appear only if a transport was specified
on the endpoint and the transport doesn't exist.  It also fixes an issue
with counting the objects that were actually found.

ASTERISK-24161 #close
ASTERISK-24331 #close
Tested by: George Joseph
Review: https://reviewboard.asterisk.org/r/3998/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@423282 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/res_pjsip.h
res/res_pjsip/config_auth.c
res/res_pjsip/config_transport.c
res/res_pjsip/location.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_endpoint_identifier_ip.c