res_pjsip_pubsub: Persist subscriptions in sorcery so they are recreated on startup.
authorJoshua Colp <jcolp@digium.com>
Thu, 12 Jun 2014 11:34:36 +0000 (11:34 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 12 Jun 2014 11:34:36 +0000 (11:34 +0000)
commit58f4c18ab692ad0c43d9cb4418fc2b680bb17b80
treed718320702c43bf77a048defeab91d1cc9c8e1c8
parent3b0ad74e1741c78afbab229cb38965280744f76d
res_pjsip_pubsub: Persist subscriptions in sorcery so they are recreated on startup.

This change makes res_pjsip_pubsub persist inbound subscriptions in sorcery. By default
this uses the local astdb but it can also be configured to store within an outside
database. When Asterisk is started these subscriptions are recreated if they have not
expired. Notifications are sent to the devices which have subscribed and they are none
the wiser that the system has restarted.

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

Merged revisions 415766 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415767 65c4cc65-6c06-0410-ace0-fbb531ad65f3
contrib/ast-db-manage/config/versions/c6d929b23a8_create_pjsip_subscription_persistence_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
include/asterisk/res_pjsip_pubsub.h
res/res_pjsip.c
res/res_pjsip_exten_state.c
res/res_pjsip_mwi.c
res/res_pjsip_pubsub.c
res/res_pjsip_pubsub.exports.in