From 710f0035b388cb892712b239bac0111bc552403d Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Fri, 18 Jan 2008 00:32:22 +0000 Subject: [PATCH] some fixes on de-registering with multiple contacts. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@604 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/registrar_client/ContactInfo.cpp | 7 +++++-- apps/registrar_client/SIPRegistrarClient.cpp | 6 ++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/registrar_client/ContactInfo.cpp b/apps/registrar_client/ContactInfo.cpp index 007e3007..91dbe9fe 100644 --- a/apps/registrar_client/ContactInfo.cpp +++ b/apps/registrar_client/ContactInfo.cpp @@ -177,7 +177,10 @@ bool ContactInfo::parse_uri() { size_t p1 = 0; int eq = 0; const char* sip_prot = "SIP:"; uri_user = ""; uri_host = ""; uri_port = ""; uri_param = ""; - + + if (uri.empty()) + return false; + while (pos= 300) {