Browse code

b/f: core:sip reg: use provided contact for contact comparison

thanks to Andrew Pogrebennyk for reporting

Stefan Sayer authored on 19/08/2014 09:44:24
Showing 1 changed files
... ...
@@ -287,7 +287,8 @@ void AmSIPRegistration::onSipReply(const AmSipRequest& req,
287 287
       DBG("positive reply to REGISTER!\n");
288 288
 
289 289
       size_t end  = 0;
290
-      string local_contact_hdr = dlg.getContactHdr();
290
+      string local_contact_hdr = info.contact.empty() ?
291
+	dlg.getContactUri() : info.contact;
291 292
       local_contact.parse_contact(local_contact_hdr, (size_t)0, end);
292 293
       local_contact.dump();
293 294