<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Andreas,<br>
    <br>
    Note that the number and order of parameters provided by the
    E_UL_CONTACT_INSERT event changed starting with 2.3. See:<br>
       
    <a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768">http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768</a><br>
    <br>
    Regards,<br>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html">http://opensips.org/training/OpenSIPS_Bootcamp_2017.html</a>
</pre>
    <div class="moz-cite-prefix">On 06/12/2017 09:43 PM, Andreas
      Bøckmann wrote:<br>
    </div>
    <blockquote
cite="mid:CAN1RbiDE8_dtCg+33uTWPdyh-HohvE+ACmUQUUqCzqeJ=rg6AA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Hello!</div>
        <div><br>
        </div>
        <div>The same snippet used below worked in older versions and I
          couldn't see any change in docs.</div>
        <div>How should I correctly fetch event parameters? Even $ci is
          gone inside event_route.</div>
        <div><br>
        </div>
        <div>_version: opensips 2.4.0-dev (x86_64/linux)</div>
        <div>flags: STATS: On, SHM_EXTRA_STATS, DISABLE_NAGLE,
          USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC,
          FAST_LOCK-ADAPTIVE_WAIT</div>
        <div>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144,
          MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535</div>
        <div>poll method support: poll, epoll_lt, epoll_et, sigio_rt,
          select.</div>
        <div>git revision: 99ebafd</div>
        <div>main.c compiled on 12:20:24 Jun  7 2017 with gcc 4.9.2_</div>
        <div><br>
        </div>
        <div>event_route[E_UL_CONTACT_INSERT] {<br>
        </div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>fetch_event_params("$avp(aor_param);$avp(addr_param);$avp(callid_param);$avp(rec_param);$avp(cseq_param)");</div>
        <div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>xlog("L_NOTICE","E_UL_INSERT
          cid=$avp(callid_param), $avp(aor_param), $avp(rec_param),
          $avp(cseq_param) - callid=$ci\n");             </div>
        <div>}</div>
        <div><br>
        </div>
        <div>DBG:core:evi_raise_event_msg: found subscriber
          E_UL_CONTACT_INSERT<br>
        </div>
        <div>DBG:core:parse_headers: flags=40</div>
        <div>ERROR:core:pv_get_callid: cannot parse Call-Id header</div>
        <div>DBG:event_route:scriptroute_fetch: Fetching parameters for
          event E_UL_CONTACT_INSERT</div>
        <div>DBG:event_route:scriptroute_fetch: Successfully fetched 5
          parameters</div>
        <div>DBG:core:parse_headers: flags=40</div>
        <div>ERROR:core:pv_get_callid: cannot parse Call-Id header</div>
        <div>DBG:core:subst_run: running. r=1</div>
        <div>DBG:core:subst_str: no match</div>
        <div>DBG:avpops:ops_subst: subst to 0 avps</div>
        <div>DBG:core:parse_headers: flags=40</div>
        <div>ERROR:core:pv_get_callid: cannot parse Call-Id header</div>
        <div>E_UL_INSERT cid=sip:<a moz-do-not-send="true"
            href="http://1.2.3.4:53875">1.2.3.4:53875</a>, +<a
            moz-do-not-send="true" href="mailto:12345678@cooldomain.aq"><a class="moz-txt-link-abbreviated" href="mailto:12345678@cooldomain.aq">12345678@cooldomain.aq</a></a>,
          , -1 - callid=<null></div>
        <div>DBG:core:parse_headers: flags=40</div>
        <div>ERROR:core:pv_get_callid: cannot parse Call-Id header</div>
        <div><br>
        </div>
        <div>The CallID header it complains about is</div>
        <div>Call-ID:
          142559_rel51ZjRhYWM2ZGZjNjdkZTgxYWU4ZDcxZWU1NjdiNTZmN2Q</div>
        <div><br>
        </div>
        <div>Thanks!</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>