res_pjsip_outbound_publish: stack overflow when using non-default sorcery wizard
authorKevin Harwell <kharwell@digium.com>
Tue, 9 Dec 2014 18:36:47 +0000 (18:36 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 9 Dec 2014 18:36:47 +0000 (18:36 +0000)
When using a non-default sorcery wizard (in this instance realtime) for outbound
publishes Asterisk will crash after a stack overflow occurs due to the code
infinitely recursing.  The fix entails removing the outbound publish state
dependency from the outbound publish sorcery object and instead keeping an in
memory container that can be used to lookup the state when needed.

ASTERISK-24514 #close
Reported by: Mark Michelson
Review: https://reviewboard.asterisk.org/r/4178/
........

Merged revisions 429175 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429176 65c4cc65-6c06-0410-ace0-fbb531ad65f3


No differences found