On 1/20/10 8:34 AM, Dinesh Gautam wrote:
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 ??
Do you get 'in' and 'out' or two times 'in' two times 'out'? If you look at the network with ngrep, what is received/sent?
Cheers, Daniel
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