Commit 7b0dda71 authored by Gabriel Margiani's avatar Gabriel Margiani

catch error on reregister without network connection.

parent e9005654
......@@ -181,7 +181,11 @@ void p3::sipphone::stop_ringing() {
}
void p3::sipphone::renew_registration() {
acc->setRegistration(true);
try {
acc->setRegistration(true);
} catch (pj::Error &e) {
throw p3::perror("sipphone:pjreregister", e.info());
}
}
p3::call* p3::sipphone::register_new_call(int pjid) {
......
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