Module: sip-router Branch: master Commit: ea6d3205d06b8d9f67429ca43ea97a4dcd6a9f1f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ea6d3205...
Author: Richard Good richard.good@smilecoms.com Committer: Richard Good richard.good@smilecoms.com Date: Thu Oct 30 17:23:23 2014 +0200
modules/cdp: Changed state machine for process unsuccessful answer when pending When in state PENDING and receive ANS_UNSUCCESS correct behaviour is to cleanup and move to IDLE
---
modules/cdp/authstatemachine.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/cdp/authstatemachine.c b/modules/cdp/authstatemachine.c index a65bdc6..49a7cd4 100644 --- a/modules/cdp/authstatemachine.c +++ b/modules/cdp/authstatemachine.c @@ -243,10 +243,7 @@ inline int auth_client_statefull_sm_process(cdp_session_t* s, int event, AAAMess //LM_INFO("state machine: i was in pending and i am going to open\n"); break; case AUTH_EV_RECV_ANS_UNSUCCESS: - x->state = AUTH_ST_DISCON; - //LM_INFO("state machine: i was in pending and i am going to discon\n"); - Send_STR(s, msg); - break; + LM_DBG("In state AUTH_ST_PENDING and received AUTH_EV_RECV_ANS_UNSUCCESS - nothing to do but clean up session\n"); case AUTH_EV_SESSION_TIMEOUT: case AUTH_EV_SERVICE_TERMINATED: case AUTH_EV_SESSION_GRACE_TIMEOUT: