[SR-Users] Transaction flags and branch_routes

Daniel-Constantin Mierla miconda at gmail.com
Tue Jun 5 09:01:21 CEST 2018


Hello,

yes, flags should be available in the branch route, they are stored in
the transaction structure and made available in branch_route,
onreply_route, failure_route.

iirc, $mf should print the value for all flags, try to log it an see if
the corresponding bits are set.

Cheers,
Daniel


On 05.06.18 04:23, Alex Balashov wrote:
> Hi,
>
> Given:
>
>    flags
>            PROXY_MEDIA_SET    : 10,
>            SIPPING         : 11,
>            DUMMY2          : 12
>
> And:
>
>    request_route { 
>        ...
>
>        route(XYZ);
>    }
>
>    route[XYZ] {
>       setflag(PROXY_MEDIA_SET);
>
>       t_on_branch("BRANCH_ROUTE");
>
>       if(!t_relay())
>          sl_reply_error();
>    }
>
>    branch_route[BRANCH_ROUTE] {
>       if(isflagset(PROXY_MEDIA_SET)) {
>           ...
>       }
>
>       ...
>    }
>
> Is PROXY_MEDIA_SET meant to be visible inside the branch_route? Because
> it doesn't seem to be.
>
> Thanks!
>
> -- Alex
>

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference -- www.kamailioworld.com




More information about the sr-users mailing list