Hi Bogdan,

its working exactly as you suggested.

Thank you!

BR
Simon

Bogdan-Andrei Iancu je 10.03.2025 ob 17:20 napisal:
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
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

--
Lep pozdrav / Best regards!

Simon Gajski

P: +386 1 8100 100 <tel:+38618100100> E: [email protected] A: Borovec 2, 1236 Trzin, Slovenia, EU
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to