[sr-dev] git:4.3:78b7a2eb: uac: re-enable TM callback when needing to do authentication for uac_req_send()
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jun 2 11:54:08 CEST 2015
Module: kamailio
Branch: 4.3
Commit: 78b7a2ebef0d9d4997d130a4190f24408c2c7e96
URL: https://github.com/kamailio/kamailio/commit/78b7a2ebef0d9d4997d130a4190f24408c2c7e96
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-06-02T11:20:24+02:00
uac: re-enable TM callback when needing to do authentication for uac_req_send()
- regretion introduced by ebb1594a0
(cherry picked from commit 422c77fecfaed995f08cc11264a63ee0ff61efba)
---
Modified: modules/uac/uac_send.c
---
Diff: https://github.com/kamailio/kamailio/commit/78b7a2ebef0d9d4997d130a4190f24408c2c7e96.diff
Patch: https://github.com/kamailio/kamailio/commit/78b7a2ebef0d9d4997d130a4190f24408c2c7e96.patch
---
diff --git a/modules/uac/uac_send.c b/modules/uac/uac_send.c
index 4689b77..11ea3f1 100644
--- a/modules/uac/uac_send.c
+++ b/modules/uac/uac_send.c
@@ -770,7 +770,8 @@ int uac_req_send(void)
uac_r.headers = (_uac_req.s_hdrs.len <= 0) ? NULL : &_uac_req.s_hdrs;
uac_r.body = (_uac_req.s_body.len <= 0) ? NULL : &_uac_req.s_body;
uac_r.ssock = (_uac_req.s_sock.len <= 0) ? NULL : &_uac_req.s_sock;
- if(_uac_req.evroute > 0)
+ if((_uac_req.s_auser.len > 0 && _uac_req.s_apasswd.len>0)
+ || (_uac_req.evroute > 0))
{
tp = uac_send_info_clone(&_uac_req);
if(tp==NULL)
More information about the sr-dev
mailing list