<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello<br>
      <br>
      I have an issue with call pickup after migration from opensips 3.2
      to 3.5<br>
    </p>
    <p>I have been trying to use "1.6.2.  Call pickup" script from
      <a class="moz-txt-link-freetext" href="https://opensips.org/docs/modules/3.5.x/event_routing.html">https://opensips.org/docs/modules/3.5.x/event_routing.html</a><br>
    </p>
    and receiving this error that dont know how to deal with:<br>
    <font face="Courier New, Courier, monospace" size="2">ERROR:core:fixup_named_flags:
      Unknown flag:<br>
      ERROR:core:reg_fixup_lookup_flags: Failed to parse flags<br>
      ERROR:core:fix_cmd: Fixup failed for param [2]<br>
      ERROR:core:fix_actions: Failed to fix command <lookup><br>
      ERROR:core:fix_actions: fixing failed (code=-1) at
      /etc/opensips/opensips.cfg:1813<br>
      CRITICAL:core:fix_expr: fix_actions error<br>
      ERROR:core:main: failed to initialize routing lists!</font><br>
    <br>
    <font face="Courier New, Courier, monospace" size="2">opensips.cfg:1813</font>
    is pointing to line "<span style="color: #c586c0;">if</span><span
      style="color: #cccccc;"> (lookup(</span><span
      style="color: #ce9178;">"location"</span><span
      style="color: #cccccc;">,</span><span style="color: #ce9178;">""</span><span
      style="color: #cccccc;">, $avp(picker))) {</span>" of bellow
    function<br>
    <br>
    <br style="white-space: pre;">
    <div
style="color: #cccccc;background-color: #1f1f1f;font-family: Consolas, 'Courier New', monospace;font-weight: normal;font-size: 14px;line-height: 19px;white-space: pre;"><div><span
    style="color: #4ec9b0;">route</span><span style="color: #cccccc;">[handle_pickup]{</span></div><div><span
    style="color: #cccccc;">    xlog(</span><span
    style="color: #ce9178;">"call picked by avp(picker): $avp(picker), fetching its contacts</span><span
    style="color: #d7ba7d;">\n</span><span style="color: #ce9178;">"</span><span
    style="color: #cccccc;">);</span></div><div><span
    style="color: #cccccc;">    </span><span style="color: #c586c0;">if</span><span
    style="color: #cccccc;"> (lookup(</span><span
    style="color: #ce9178;">"location"</span><span
    style="color: #cccccc;">,</span><span style="color: #ce9178;">""</span><span
    style="color: #cccccc;">, $avp(picker))) {</span></div><div><span
    style="color: #cccccc;">        </span><span style="color: #6a9955;"># take the contacts retured by lookup() (for Charlie)</span></div><div><span
    style="color: #cccccc;">        </span><span style="color: #6a9955;"># and inject them into the original call, but also cancel</span></div><div><span
    style="color: #cccccc;">        </span><span style="color: #6a9955;"># any existing ongoing branch (ringing to Bob)</span></div><div><span
    style="color: #cccccc;">        t_inject_branches(</span><span
    style="color: #ce9178;">"msg"</span><span style="color: #cccccc;">,</span><span
    style="color: #ce9178;">"cancel"</span><span style="color: #cccccc;">);</span></div><div><span
    style="color: #cccccc;">    }</span></div><div><span
    style="color: #cccccc;">}</span></div></div>
    <p><br>
      Thank you for any tips on how to fix this<br>
      <br>
      BR<br>
      Simon<br>
    </p>
  </body>
</html>