Browse code

b/f: uac_auth: use SIP_FLAGS_NOCONTACT for authenticated sip reqs

otherwise we have two Contact headers in the request

thanks to Andrew Pogrebennyk for reporting

Stefan Sayer authored on 19/08/2014 09:45:06
Showing 1 changed files
... ...
@@ -229,7 +229,7 @@ bool UACAuth::onSipReply(const AmSipRequest& req, const AmSipReply& reply,
229 229
 	    // resend request 
230 230
 	    if (dlg->sendRequest(ri->second.method,
231 231
 				 &(ri->second.body),
232
-				 hdrs, SIP_FLAGS_VERBATIM | SIP_FLAGS_NOAUTH) == 0) {
232
+				 hdrs, SIP_FLAGS_VERBATIM | SIP_FLAGS_NOAUTH | SIP_FLAGS_NOCONTACT) == 0) {
233 233
 	      processed = true;
234 234
               DBG("authenticated request successfully sent.\n");
235 235
 	      // undo SIP dialog status change