[Kamailio-Users] BYE packet is not received in siptrace module !!

Dinesh Gautam dinesh.gautam at coraltele.com
Wed Jan 20 08:34:08 CET 2010


Thanks Daniel, 

Now I am getting BYE packet by modifying .cfg file as you said.

I have one more problem,I am receiving almost all packets (Ok, REGISTER,
SUBSCRIBE, BYE) twice in database.

Why it is happening ??



Dinesh Gautam 




On Tue, 2010-01-19 at 14:25 +0100, Daniel-Constantin Mierla wrote:
> 
> 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:openserrw@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
> 
-- 






More information about the sr-users mailing list