You must handle in-dialog INVITEs (reINVITEs) differently. Look at onsip.org mediaproxy config to see how you can handle reINVITEs. Should be easy to add acc flags where you want it.
g-)
----- Original Message -----
From: Bjorn Asmul
To: serusers@lists.iptel.org
Sent: Tuesday, November 08, 2005 6:35 AM
Subject: [Serusers] Multiple INVITE's in acc table when putting caller onhold

Does anyone have a solution for eliminating multiple INVITE's in the accounting table (acc) as a result of the caller putting someone on hold?
 
Here's my accounting section:
 
...
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "failed_transactions", 1)
modparam("acc", "report_ack", 0)
...

route[1] {
 
 # -----------------------------------------------------------------
 # Default Message Handler
 # -----------------------------------------------------------------
 
 t_on_reply("1");
 
 if (method=="INVITE" || method=="ACK" || method=="BYE" || method=="CANCEL") {
  setflag(1);
 };
 
 if (!t_relay()) {
 
  if (method=="INVITE" || method=="ACK") {
   end_media_session();
  };
 
  sl_reply_error();
 };
}


_______________________________________________
Serusers mailing list
serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers