[OpenSIPS-Users] Call pickup issue in opensips 3.5

Simon Gajski simon at softnet.si
Mon Mar 10 17:12:30 UTC 2025


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
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-- 
Lep pozdrav / Best regards!

Simon Gajski

P: +386 1 8100 100 <tel:+38618100100> E: simon at softnet.si A: Borovec 2, 
1236 Trzin, Slovenia, EU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20250310/71302c2b/attachment.html>


More information about the Users mailing list