Commit e9005654 authored by Gabriel Margiani's avatar Gabriel Margiani

two small bugfixes.

parent e0a60bfd
......@@ -306,7 +306,7 @@ void p3::clientHandler::handle_status() {
auto l = phone.get_status_dump();
for (auto v : l) {
connection.send(p3::protocol::TEXT, "p3" + v.first + "='" + v.second + "'");
connection.send(p3::protocol::TEXT, "p3" + v.first + "=" + v.second);
}
connection.send(p3::protocol::ENDTEXT, "End Status");
......
......@@ -204,7 +204,7 @@ void p3::sipphone::handle_incoming_call(int pjid) {
}
pj::CallOpParam o;
if (always_busy || (get_call_count() < 1 && conf.get_bool("phone:busy_on_busy"))) {
if (always_busy || (get_call_count() > 1 && conf.get_bool("phone:busy_on_busy"))) {
o.statusCode = PJSIP_SC_BUSY_HERE;
c->hangup(o);
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment