Try quoting the pseudovariable?

   t_on_branch("$avp(broute_trigger)");


Kaufman

-----Original Message-----
From: Benoît Panizzon <benoit.paniz...@imp.ch> 
Sent: Friday, December 16, 2022 10:28 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] Re: How to make a branch trigger persistent (still being 
active after failure route is triggered)?

I tought I had found the solution:

 request_route
{

        $avp(dispgroup) = 2001;
        $avp(broute_trigger) = "BR_TO_NATIONAL";
        t_on_branch($avp(broute_trigger));
        route(DISPATCHCALL);

        [...]

        $avp(dispgroup) = 2002;
        $avp(broute_trigger) = "BR_TO_INT";
        t_on_branch($avp(broute_trigger));
        route(DISPATCHCALL);
}

failure_route[DISPATCH_FAILURE]
{
                        [...]
                        # Set desired Branch Trigger again to try next
                        # dispatcher in list.
                        t_on_branch($avp(broute_trigger));
                        route(RELAY);
                        exit;
}

But no...

function t_on_branch: parameter 1 is not constant

Any 'tricks'?

--
Mit freundlichen Grüssen

-Benoît Panizzon- @ HomeOffice und normal erreichbar
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  
https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.imp.ch%2F&amp;data=05%7C01%7Cbkaufman%40bcmone.com%7C7e7160292c034f881bea08dadfb3ad50%7Cafc1818e7b6848568913201b9396c4fc%7C1%7C0%7C638068260065887727%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=yfhnAfcj91Mk3cX7VwgpD9qIx3gZl0NEUTuLK%2Fy8HPo%3D&amp;reserved=0
______________________________________________________
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send 
an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:

Reply via email to