[SR-Users] sip_trace unable to capture after next_branches()

Seudin Kasumovic seudin.kasumovic at gmail.com
Tue Apr 23 15:46:46 CEST 2013


Hi,

Try next snippet:

#!define FLT_SIPTRACE 22
...
#!define WITH_SIPTRACE
#!define WITH_AVPOPS
#!define WITH_MYSQL

....

#!ifdef WITH_AVPOPS
loadmodule "avpops.so"
#!endif
#!ifdef WITH_SIPTRACE
loadmodule "siptrace.so"
#!endif

...

#!ifdef WITH_SIPTRACE
# --- sip trace settings ---
modparam("siptrace","db_url", DBURL);
modparam("siptrace","trace_flag", FLT_SIPTRACE);
modparam("siptrace","traced_user_avp","$avp(s:traceuser)");
#!endif

#!ifdef WITH_AVPOPS
#!ifdef WITH_MYSQL
modparam("avpops", "db_url", DBURL);
modparam("avpops","avp_table","usr_preferences");
#!endif
#!endif

...

route {
...

#!ifdef WITH_SIPTRACE
#!ifdef WITH_AVPOPS
#!ifdef WITH_MYSQL
        if (avp_db_load("$fu","$avp(s:trace)")) {
                $avp(s:traceuser) = $avp(s:trace);
                setflag(FLT_SIPTRACE);
                sip_trace();
                xlog("L_INFO","  User $fu being traced ci=$ci\n");
        }
#!endif
#!endif
#!endif
}

you will be able to trace single user if add trace option into user
preferences:

kamctl avp add -T usr_preferences user at domain.tld trace 0 1

--
Seudin


On Tue, Apr 9, 2013 at 8:08 PM, Ramaseshi reddy kolli <
ramaseshireddy at gmail.com> wrote:

> Hi,
>
> Outbound SIP invite is not captured even after setting flag only.Can
> anyone help with this issue please ?
>
> Thanks
> Ram
>
>
> On Sun, Apr 7, 2013 at 3:33 AM, Ramaseshi reddy kolli <
> ramaseshireddy at gmail.com> wrote:
>
>> Hi,
>>
>> Once in a while it captures outbound SIP Invite but it captures always
>> 100 trying, 180 and 200 OK and some times it captures inbound SIP INVITE as
>> well.
>>
>> Thanks
>> Ram
>>
>>
>>
>>
>>
>
>
> --
> Cheers
>
> Ramaseshi
>
> Mobile : 9949875064
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
MSC Seudin Kasumovic
Tuzla, Bosnia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20130423/ee6ad4dd/attachment-0001.html>


More information about the sr-users mailing list