Hi,all

  I've tried to use RADIUS(freeradius-0.9.1) to account with SER(ser-0.9.3).But I can't account BYE or CANCEL messages,while I can account INVITE and ACK.

  In ser.cfg I write as follows:

  ...

  modparam("acc", "log_level", 4)
  modparam("acc", "radius_flag", 2)
  modparam("acc", "radius_missed_flag", 3)

  ...

  if (method=="INVITE") {

    log(1, "INVITE\n");
    if (!radius_proxy_authorize("")) {
      proxy_challenge("", "0");
      setflag(3);
      break;
    };
    setflag(2); 
  };
  if (method=="BYE" || method=="CANCEL") {
     log (1, "BYE or CANCEL\n");\
     setflag(2);
  };

  ...

 

  What's wrong with it?Is there anything I miss to configure?

  Please give me any hint and thanks a lot.










想 要 一 个 快 n 倍 的 免 费 邮 箱 吗 ?
126 专 业 电 子 邮 局 —— 全 球 领 先 的 中 文 邮 箱 服 商 带 你 进 入 极 速 之 旅