This is not correct. Why do I get with

modparam("sipdump", "enable", 1)
modparam("sipdump", "mode", 2)
modparam("sipdump", "event_callback", "ksr_sipdump_event")

…

function  ksr_sipdump_event(evname)
    KSR.err("ksr_sipdump_event 1---------" .. evname .. "\n" .. KSR.pv.gete("$sipdump(buf)") .. "\n")
    KSR.err("ksr_sipdump_event 2---------" .. evname .. "\n" .. KSR.pv.gete("$mb") .. "\n")
    return 1
end

the output

 4(5) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event 1---------sipdump:msg                               [0/1905]
SIP/2.0 200 OK
Via: SIP/2.0/UDP 87.118.146.153:5060;branch=z9hG4bK2185331;received=192.168.0.199
From: sip:pinger@aegee.org;tag=uloc-2-63c1499f-9-3-3db88f54-392c7186 
To: <sip:snom-hol@192.168.0.171:3072;line=t498724u>;tag=la04c6hkmn
Call-ID: 0cbb03d1-fd427c26-04cb4e3@0.0.0.0
CSeq: 1 OPTIONS
User-Agent: snom870/8.7.5.35
Contact: <sip:7778628887@192.168.0.171:3072;line=85nwhl4l>;reg-id=1
Accept-Language: en
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, BYE, REFER, OPTIONS, NOTIFY, SUBSCRIBE, PRACK, MESSAGE, INFO, UPDATE
Allow-Events: talk, hold, refer, call-info
Supported: timer, 100rel, replaces, from-change
Content-Length: 0


 4(5) ERROR: <core> [core/kemi.c:96]: sr_kemi_core_err(): ksr_sipdump_event 2---------sipdump:msg
OPTIONS sip:you@kamailio.org SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1
From: <sip:you@kamailio.org>;tag=123
To: <sip:you@kamailio.org>
Call-ID: 123
CSeq: 1 OPTIONS
Content-Length: 0

so $mb is

OPTIONS sip:you@kamailio.org SIP/2.0
Via: SIP/2.0/UDP 127.0.0.1
From: <sip:you@kamailio.org>;tag=123                                                                                                    
To: <sip:you@kamailio.org>
Call-ID: 123
CSeq: 1 OPTIONS
Content-Length: 0


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3329/c1382048101@github.com>