]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Change some asserts to warning/debug messages
authorGeorge Joseph <gjoseph@digium.com>
Wed, 20 Sep 2017 15:45:16 +0000 (09:45 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 21 Sep 2017 15:39:50 +0000 (09:39 -0600)
commit40de3a12e0caddec0be31aa4ad996c22fc716be5
tree5a30db08877c1a333e8332533917448c30766786
parent5ac8b9fcc24410e190da5d0d71b4b78b42203995
res_pjsip_session:  Change some asserts to warning/debug messages

There was an issue reported where an SDP received on a 183 Session
Progress message caused a crash because the pending streams had
already been processed when the OK was received.  In that case the
pending topology was legitimately NULL.  There was an assert for an
incorrect number of streams in the topology but not one for
topology being NULL.  In any case, if you're not in dev-mode the
asserts don't do anything and since the scenario is legit, the
asserts weren't appropriate anyway.

* Changed several asserts to warning or debug messages and return
codes as appropriate.

ASTERISK-27264
Reported by: Daniel Heckl

Change-Id: I58daaa9d2938fa980857ab3ec41925ab5ff9c848
res/res_pjsip_session.c