[OpenSIPS-Users] fetch_event_params for E_UL_CONTACT_INSERT

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Jun 16 11:03:54 EDT 2017


Hi Andreas,

Note that the number and order of parameters provided by the 
E_UL_CONTACT_INSERT event changed starting with 2.3. See:
http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768

Regards,

Bogdan-Andrei Iancu
   OpenSIPS Founder and Developer
   http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
   http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 06/12/2017 09:43 PM, Andreas Bøckmann wrote:
> 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 <http://1.2.3.4:53875>, 
> +12345678 at cooldomain.aq <mailto: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!
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170616/0802fbb4/attachment.html>


More information about the Users mailing list