Hi
You should not have to be explicitly end the activity - it should end when the underlying credit control session ends - i.e. goes back to IDLE.
When a server receives a CCR INIT the credit control session goes from IDLE to OPEN and when the server receives a CCR TERM it goes back to IDLE resulting in the activity being removed.
I've tested this briefly with the Gx RA (i.e. sending Gx CCR INIT and then Gx CCR TERM) and the activity is correctly removed.
Check your log file and confirm that the CCR TERM is successfully received at your server and the state goes back to IDLE.
The negative TTL is another issue. I don't think this is correct, I would assume that eventually the activity would expire and be removed (to prevent stale data from building up) and with negative TTL this doesn't seem to happen. I am investigating this now.
Does anyone else have some insights on whether the Diameter session based activities (Ro, Gx, Rx, etc.) ever expire or will they only be removed if a CCR TERM is received?
Regards
Richard.
This email is subject to the disclaimer of Smile Communications (PTY) Ltd. at http://www.smilecoms.com/disclaimer