[OpenSIPS-Users] fetch_event_params for E_UL_CONTACT_INSERT

Andreas Bøckmann monkeilas at gmail.com
Mon Jun 12 14:43:39 EDT 2017


Hello!

The same snippet used below worked in older versions and I couldn't see any
change in docs.
How should I correctly fetch event parameters? Even $ci is gone inside
event_route.

_version: opensips 2.4.0-dev (x86_64/linux)
flags: STATS: On, SHM_EXTRA_STATS, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
git revision: 99ebafd
main.c compiled on 12:20:24 Jun  7 2017 with gcc 4.9.2_

event_route[E_UL_CONTACT_INSERT] {
fetch_event_params("$avp(aor_param);$avp(addr_param);$avp(callid_param);$avp(rec_param);$avp(cseq_param)");
xlog("L_NOTICE","E_UL_INSERT cid=$avp(callid_param), $avp(aor_param),
$avp(rec_param), $avp(cseq_param) - callid=$ci\n");
}

DBG:core:evi_raise_event_msg: found subscriber E_UL_CONTACT_INSERT
DBG:core:parse_headers: flags=40
ERROR:core:pv_get_callid: cannot parse Call-Id header
DBG:event_route:scriptroute_fetch: Fetching parameters for event
E_UL_CONTACT_INSERT
DBG:event_route:scriptroute_fetch: Successfully fetched 5 parameters
DBG:core:parse_headers: flags=40
ERROR:core:pv_get_callid: cannot parse Call-Id header
DBG:core:subst_run: running. r=1
DBG:core:subst_str: no match
DBG:avpops:ops_subst: subst to 0 avps
DBG:core:parse_headers: flags=40
ERROR:core:pv_get_callid: cannot parse Call-Id header
E_UL_INSERT cid=sip:1.2.3.4:53875, +12345678 at cooldomain.aq, , -1 -
callid=<null>
DBG:core:parse_headers: flags=40
ERROR:core:pv_get_callid: cannot parse Call-Id header

The CallID header it complains about is
Call-ID: 142559_rel51ZjRhYWM2ZGZjNjdkZTgxYWU4ZDcxZWU1NjdiNTZmN2Q

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170612/ff7a521a/attachment.html>


More information about the Users mailing list