[sr-dev] git:master:0ad04a58: uac: debug message if contact not matched for 200ok and jump to done
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jun 9 13:07:10 CEST 2016
Module: kamailio
Branch: master
Commit: 0ad04a5847ceb6709c7c948a5a6ac958555c0265
URL: https://github.com/kamailio/kamailio/commit/0ad04a5847ceb6709c7c948a5a6ac958555c0265
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-09T13:07:15+02:00
uac: debug message if contact not matched for 200ok and jump to done
---
Modified: modules/uac/uac_reg.c
---
Diff: https://github.com/kamailio/kamailio/commit/0ad04a5847ceb6709c7c948a5a6ac958555c0265.diff
Patch: https://github.com/kamailio/kamailio/commit/0ad04a5847ceb6709c7c948a5a6ac958555c0265.patch
---
diff --git a/modules/uac/uac_reg.c b/modules/uac/uac_reg.c
index e2226e8..fcfb6d2 100644
--- a/modules/uac/uac_reg.c
+++ b/modules/uac/uac_reg.c
@@ -822,6 +822,10 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
goto done;
}
}
+
+ LM_DBG("sip response %d while registering [%.*s] with no match\n",
+ ps->code, ri->l_uuid.len, ri->l_uuid.s);
+ goto done;
}
if(ps->code == 401 || ps->code == 407)
@@ -858,7 +862,7 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
}
}
cred.realm = auth.realm;
- cred.user = ri->auth_username;
+ cred.user = ri->auth_username;
cred.passwd = ri->auth_password;
cred.next = NULL;
@@ -927,8 +931,7 @@ void uac_reg_tm_callback( struct cell *t, int type, struct tmcb_params *ps)
ri->flags |= UAC_REG_AUTHSENT;
return;
- } else
- {
+ } else {
LM_ERR("got sip response %d while registering [%.*s]\n",
ps->code, ri->l_uuid.len, ri->l_uuid.s);
goto error;
More information about the sr-dev
mailing list