Skip to content

Commit 178007f

Browse files
committed
apps/sbc: fix hardcoded bleg prefix in LegContact error message
The error message in LegContact::readConfig() still referenced "bleg_contact_params" after the class was generalized from BLegContact to LegContact. Use the actual prefix parameter so the message correctly identifies which leg failed parsing.
1 parent 0c34d33 commit 178007f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/sbc/SBCCallProfile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ bool SBCCallProfile::LegContact::readConfig(AmConfigReader &cfg, const string &p
18071807
string params = cfg.getParameter(prefix+"contact_params");
18081808
if(params.empty()) return true;
18091809
if(!parse_params(params,pos)) {
1810-
ERROR("bleg_contact_params parsing failed");
1810+
ERROR("%scontact_params parsing failed", prefix.c_str());
18111811
return false;
18121812
}
18131813
return true;

0 commit comments

Comments
 (0)