[OpenSIPS-Users] Call pickup issue in opensips 3.5

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Mar 10 16:20:03 UTC 2025


Hi Simon,

Instead of
     if (lookup("location","", $avp(picker))) {

try
     if (lookup("location", , $avp(picker))) {

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 10.03.2025 18:11, Simon Gajski via Users wrote:
>
> Hello
>
> I have an issue with call pickup after migration from opensips 3.2 to 3.5
>
> I have been trying to use "1.6.2.  Call pickup" script from 
> https://opensips.org/docs/modules/3.5.x/event_routing.html
>
> and receiving this error that dont know how to deal with:
> ERROR:core:fixup_named_flags: Unknown flag:
> ERROR:core:reg_fixup_lookup_flags: Failed to parse flags
> ERROR:core:fix_cmd: Fixup failed for param [2]
> ERROR:core:fix_actions: Failed to fix command <lookup>
> ERROR:core:fix_actions: fixing failed (code=-1) at 
> /etc/opensips/opensips.cfg:1813
> CRITICAL:core:fix_expr: fix_actions error
> ERROR:core:main: failed to initialize routing lists!
>
> opensips.cfg:1813 is pointing to line "if(lookup("location","", 
> $avp(picker))) {" of bellow function
>
>
> route[handle_pickup]{
>     xlog("call picked by avp(picker): $avp(picker), fetching its 
> contacts\n");
> if(lookup("location","", $avp(picker))) {
> # take the contacts retured by lookup() (for Charlie)
> # and inject them into the original call, but also cancel
> # any existing ongoing branch (ringing to Bob)
>         t_inject_branches("msg","cancel");
>     }
> }
>
>
> Thank you for any tips on how to fix this
>
> BR
> Simon
>
>
> _______________________________________________
> 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/20250310/a3bd1ab9/attachment.html>


More information about the Users mailing list