<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Andreas,<br>
      <br>
      I guess the error is triggered by the usage of $ci, right ?<br>
      <br>
      Best regards,<br>
    </tt>
    <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/21/2017 07:22 PM, Andreas
      Bøckmann wrote:<br>
    </div>
    <blockquote
cite="mid:CAN1RbiBig13q=7NYF+iudaJbAD2QDFzcJ=hH51-EZ--FjzNd4g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Sorry! 
        <div><br>
        </div>
        <div>I wasn't aware the parameters had to be ordered
          specifically. Works better again now.</div>
        <div><br>
          <div>
            <div>I am still seeing the <span style="font-size:12.8px">ERROR:core:pv_get_callid:
                cannot parse Call-Id header error on E_UL_CONTACT_INSERT
                but I wonder if that might be related to <a
                  moz-do-not-send="true"
                  href="https://github.com/OpenSIPS/opensips/issues/1126"><a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues/1126">https://github.com/OpenSIPS/opensips/issues/1126</a></a>
                ?</span></div>
          </div>
        </div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Didn't see this error using
            E_UL_CONTACT_INSERT event in 2.2. </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">xlog correctly prints the
            CallID from the fetch_event_params parameter and I also
            tried with simple syntax of 1,2,3,4 etc. which also yields
            the same error but is able but param contains correct
            CallID.. so everything seems to work anywho.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div>
          <div><span style="font-size:12.8px"><i>fetch_event_params("$avp(1);$avp(2);$avp(3);$avp(4);$avp(5);$avp(6);$avp(7);$avp(8);$avp(9);$avp(10)");</i></span></div>
          <div><span style="font-size:12.8px"><i>xlog("L_NOTICE","L40.01,
                E_UL_INSERT $avp(1), $avp(2), $avp(3), $avp(4), $avp(5),
                $avp(6), $avp(7), $avp(8), $avp(9), $avp(10)\n");      
                 </i></span></div>
          <div><span style="font-size:12.8px"><i>        </i></span></div>
          <div><span style="font-size:12.8px"><i>fetch_event_params("aor=$avp(aor_param);uri=$avp(uri_param);received=$avp(received_param);path=$avp(path_param);qval=$avp(qval_param);socket=$avp(socket_param);bflags=$avp(bflags_param);expires=$avp(expires_param);callid=$av$</i></span></div>
          <div><span style="font-size:12.8px"><i>xlog("L_NOTICE","L40.01,
                E_UL_INSERT cid=$avp(callid_param), $avp(aor_param),
                $avp(uri_param), $avp(received_param),
                $avp(bflags_param), $avp(cseq_param),
                $avp(socket_param), $avp(expires_param),
                $avp(path_param)\n");</i></span></div>
        </div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Thanks again!</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">//Andreas</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Fri, Jun 16, 2017 at 5:03 PM,
            Bogdan-Andrei Iancu <span dir="ltr"><<a
                moz-do-not-send="true" href="mailto:bogdan@opensips.org"
                target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">bogdan@opensips.org</a></a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px
              0.8ex;border-left:1px solid
              rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"> 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 moz-do-not-send="true"
                  class="gmail-m_8614579100410921627moz-txt-link-freetext"
href="http://www.opensips.org/html/docs/modules/2.4.x/usrloc.html#idp5808768"
                  target="_blank">http://www.opensips.org/html/<wbr>docs/modules/2.4.x/usrloc.<wbr>html#idp5808768</a><br>
                <br>
                Regards,<br>
                <pre class="gmail-m_8614579100410921627moz-signature" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="gmail-m_8614579100410921627moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>

OpenSIPS Bootcamp 2017, Houston, US
  <a moz-do-not-send="true" class="gmail-m_8614579100410921627moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" target="_blank">http://opensips.org/training/<wbr>OpenSIPS_Bootcamp_2017.html</a>
</pre><div><div class="gmail-h5">
    <div class="gmail-m_8614579100410921627moz-cite-prefix">On 06/12/2017 09:43 PM, Andreas
      Bøckmann wrote:

    </div>
    </div></div><blockquote type="cite"><div><div class="gmail-h5">
      <div dir="ltr">
        <div>Hello!</div>
        <div>

        </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>

        </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>

        </div>
        <div>event_route[E_UL_CONTACT_<wbr>INSERT] {

        </div>
        <div><span class="gmail-m_8614579100410921627gmail-Apple-tab-span" style="white-space:pre-wrap">        </span>fetch_event_params("$avp(aor_<wbr>param);$avp(addr_param);$avp(<wbr>callid_param);$avp(rec_param);<wbr>$avp(cseq_param)");</div>
        <div><span class="gmail-m_8614579100410921627gmail-Apple-tab-span" style="white-space:pre-wrap">        </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>

        </div>
        <div>DBG:core:evi_raise_event_msg: found subscriber
          E_UL_CONTACT_INSERT

        </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_<wbr>fetch: Fetching parameters for
          event E_UL_CONTACT_INSERT</div>
        <div>DBG:event_route:scriptroute_<wbr>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" target="_blank">1.2.3.4:53875</a>, +<a moz-do-not-send="true" class="gmail-m_8614579100410921627moz-txt-link-abbreviated" href="mailto:12345678@cooldomain.aq" target="_blank">12345678@cooldomain.aq</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>

        </div>
        <div>The CallID header it complains about is</div>
        <div>Call-ID:
          142559_<wbr>rel51ZjRhYWM2ZGZjNjdkZTgxYWU4Z<wbr>DcxZWU1NjdiNTZmN2Q</div>
        <div>

        </div>
        <div>Thanks!</div>
      </div>
      

      <fieldset class="gmail-m_8614579100410921627mimeAttachmentHeader"></fieldset>
      

      </div></div><pre>______________________________<wbr>_________________
Users mailing list
<a moz-do-not-send="true" class="gmail-m_8614579100410921627moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="gmail-m_8614579100410921627moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    

  </div>

</blockquote></div>
</div></div>



</blockquote>
</body></html>