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
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