res_hep: Fix crash when hep.conf not available

Parts of res_hep properly checked for a valid configuration object before
attempting to access the configuration. A check, however, was missed when
a packet is sent. This patch fixes the crash caused by not checking if the
configuration object is valid.


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@411668 f38db490-d61c-443f-a65b-d21fe96a405b
res_pjsip_pubsub: Add test event for state change

This adds a test event when subscription state changes so that
integration tests may trigger new actions at the appropriate times.

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


git-svn-id: http://svn.asterisk.org/svn/asterisk/branches/12@411670 f38db490-d61c-443f-a65b-d21fe96a405b