On 1/19/10 2:07 PM, Dinesh Gautam wrote:

I am using sip_trace function.But I am not getting how to set the flag
for BYE packet. These are my settings  for siptrace module.


# to enable siptrace in database.
modparam("siptrace", "db_url",
"mysql://openser:opense...@localhost/openser")

# Table to store sip trace, provide table name here is default sip_trace
modparam("siptrace", "table", "sip_trace").
modparam("siptrace", "trace_flag", 0)
here:

modparam("siptrace", "trace_flag", 18)

- or any other flag you don't use for something else.


# Set on(1)/off(0) sip trace data
modparam("siptrace", "trace_on", 1)



Please suggest me if any modifications required.

In your route block, where you handle the within dialog requests (search for loose_route() )

if(loose_route()) {
  # add this block
  if(is_method("BYE")) {
     sip_trace();
     setflag(18);
  }
}

Cheers,
Daniel

--
Daniel-Constantin Mierla
* http://www.asipto.com/


_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

Reply via email to