[Kamailio-Users] BYE packet is not received in siptrace module !!
Daniel-Constantin Mierla
miconda at gmail.com
Tue Jan 19 14:25:48 CET 2010
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
--
Daniel-Constantin Mierla
* http://www.asipto.com/
More information about the sr-users
mailing list