<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Andreas,<br>
<br>
The pv_get_callid() function (which triggers the error) is
exclusively used when evaluating the $ci variable. Also, based on
the position in the flow of logs, it looks like being generated when
the event route is executed.<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/21/2017 11:16 PM, Andreas
Bøckmann wrote:<br>
</div>
<blockquote
cite="mid:CAN1RbiB13Tv9FOBbM89b=5w9ULF_nm5rzx2LvUD2CMMkrpejZQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hello
<div><br>
</div>
<div>Not that I can see no, as shown in the examples above both
xlog statements use the avp fetched from event params. </div>
<div>I only believe it's related to event_param_set as it
happens right after E_UL_CONTACT_INSERT.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>DBG:core:parse_headers: flags=ffffffffffffffff</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:destroy_avp_list: destroying list (nil)</div>
<div>DBG:core:parse_headers: flags=8000000</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding int param</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding int param</div>
<div>DBG:core:evi_param_set: adding int param</div>
<div>DBG:core:evi_param_set: adding string param</div>
<div>DBG:core:evi_param_set: adding int param</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_fetch: Fetching parameters
for event E_UL_CONTACT_INSERT</div>
<div>DBG:event_route:scriptroute_fetch: Successfully fetched
10 parameters</div>
<div>DBG:core:parse_headers: flags=40</div>
<div>ERROR:core:pv_get_callid: cannot parse Call-Id header</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 21, 2017 at 9:34 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:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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><span class="">
<pre class="m_-2361857873478312476moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-2361857873478312476moz-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="m_-2361857873478312476moz-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>
</span><div><div class="h5"><div class="m_-2361857873478312476moz-cite-prefix">On 06/21/2017 07:22 PM, Andreas
Bøckmann wrote:
</div>
<blockquote type="cite">
<div dir="ltr">Sorry!
<div>
</div>
<div>I wasn't aware the parameters had to be ordered
specifically. Works better again now.</div>
<div>
<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" class="m_-2361857873478312476moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues/1126" target="_blank">https://github.com/<wbr>OpenSIPS/opensips/issues/1126</a>
?</span></div>
</div>
</div>
<div><span style="font-size:12.8px">
</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">
</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">
</span></div>
<div>
<div><span style="font-size:12.8px"><i>fetch_event_params("$avp(1);$<wbr>avp(2);$avp(3);$avp(4);$avp(5)<wbr>;$avp(6);$avp(7);$avp(8);$avp(<wbr>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(<wbr>aor_param);uri=$avp(uri_param)<wbr>;received=$avp(received_param)<wbr>;path=$avp(path_param);qval=$<wbr>avp(qval_param);socket=$avp(<wbr>socket_param);bflags=$avp(<wbr>bflags_param);expires=$avp(<wbr>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">
</span></div>
<div><span style="font-size:12.8px">Thanks again!</span></div>
<div><span style="font-size:12.8px">
</span></div>
<div><span style="font-size:12.8px">//Andreas</span></div>
<div><span style="font-size:12.8px">
</span></div>
<div class="gmail_extra">
<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" class="m_-2361857873478312476moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span>
wrote:
<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,
Note that the number and order of parameters provided by
the E_UL_CONTACT_INSERT event changed starting with 2.3.
See:
<a moz-do-not-send="true" class="m_-2361857873478312476gmail-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/d<wbr>ocs/modules/2.4.x/usrloc.html#<wbr>idp5808768</a>
Regards,
<pre class="m_-2361857873478312476gmail-m_8614579100410921627moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" class="m_-2361857873478312476gmail-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="m_-2361857873478312476gmail-m_8614579100410921627moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2017.html" target="_blank">http://opensips.org/training/O<wbr>penSIPS_Bootcamp_2017.html</a>
</pre><div><div class="m_-2361857873478312476gmail-h5">
<div class="m_-2361857873478312476gmail-m_8614579100410921627moz-cite-prefix">On 06/12/2017 09:43 PM, Andreas
Bøckmann wrote:
</div>
</div></div>
</div></blockquote></div></div></div></blockquote></div></div></div></blockquote></div></div></blockquote>
</body></html>