Module: sems Branch: master Commit: 2528bd85f186bbdd468d55df867ffd7f33da6071 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=2528bd85f186bbdd468d55df867ffd7f33da6071
Author: Juha Heinanen <[email protected]> Committer: Juha Heinanen <[email protected]> Date: Wed Feb 29 04:16:40 2012 +0200 apps/sbc/call_control/ctl: make sure headers exist before asserting CRLF --- apps/sbc/call_control/ctl/CCCtl.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/apps/sbc/call_control/ctl/CCCtl.cpp b/apps/sbc/call_control/ctl/CCCtl.cpp index aed8bd0..fac9e16 100644 --- a/apps/sbc/call_control/ctl/CCCtl.cpp +++ b/apps/sbc/call_control/ctl/CCCtl.cpp @@ -161,7 +161,9 @@ void CCCtl::start(const string& cc_name, const string& ltag, SET_TO_CALL_PROFILE("sst_aleg_enabled", sst_aleg_enabled); ADD_TO_CALL_PROFILE("append_headers", append_headers); - assertEndCRLF(call_profile->append_headers); + + if (call_profile->append_headers.size() > 2) + assertEndCRLF(call_profile->append_headers); ENABLE_IN_CALL_PROFILE("rtprelay_enabled", rtprelay_enabled); SET_TO_CALL_PROFILE("rtprelay_interface", rtprelay_interface); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
