~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/ims_charging/diameter_ro.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "../cdp/diameter_epc.h"
 
2
#include "Ro_data.h"
 
3
#include "diameter_ro.h"
 
4
 
 
5
int AAASendCCR(AAASession *session) {
 
6
 
 
7
    return 1;
 
8
}
 
9
 
 
10
/**
 
11
 * Handler for incoming Diameter requests.
 
12
 * @param request - the received request
 
13
 * @param param - generic pointer
 
14
 * @returns the answer to this request
 
15
 */
 
16
void RoChargingResponseHandler(AAAMessage *response, void *param) {
 
17
    switch (response->applicationId) {
 
18
        case IMS_Ro:
 
19
            switch (response->commandCode) {
 
20
                case Diameter_CCA:
 
21
                    break;
 
22
                default:
 
23
                    LM_ERR("ERR:"M_NAME":RoChargingResponseHandler: - "
 
24
                            "Received unknown response for Ro command %d, flags %#1x endtoend %u hopbyhop %u\n",
 
25
                            response->commandCode, response->flags,
 
26
                            response->endtoendId, response->hopbyhopId);
 
27
                    return;
 
28
            }
 
29
            break;
 
30
        default:
 
31
            LM_ERR("DBG:"M_NAME":RoChargingResponseHandler(): - Received unknown response for app %d command %d\n",
 
32
                    response->applicationId,
 
33
                    response->commandCode);
 
34
            LM_ERR("Reponse is [%s]", response->buf.s);
 
35
            return;
 
36
 
 
37
    }
 
38
    return;
 
39
}
 
40