Module: kamailio
Branch: master
Commit: 422c77fecfaed995f08cc11264a63ee0ff61efba
URL:
https://github.com/kamailio/kamailio/commit/422c77fecfaed995f08cc11264a63ee…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-06-02T11:12:19+02:00
uac: re-enable TM callback when needing to do authentication for uac_req_send()
- regretion introduced by ebb1594a0
---
Modified: modules/uac/uac_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/422c77fecfaed995f08cc11264a63ee…
Patch:
https://github.com/kamailio/kamailio/commit/422c77fecfaed995f08cc11264a63ee…
---
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)