Commit e9005654 authored by Gabriel Margiani's avatar Gabriel Margiani
Browse files

two small bugfixes.

parent e0a60bfd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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");
+1 −1
Original line number Diff line number Diff line
@@ -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 {