[OpenSIPS-Users] Conditional processing of branches after lookup

mayamatakeshi mayamatakeshi at gmail.com
Wed Feb 24 02:23:33 CET 2010


On Wed, Feb 24, 2010 at 2:28 AM, mayamatakeshi <mayamatakeshi at gmail.com>wrote:

> Hello,
> is it possible to do conditional processing for each branch after lookup()
> is called (branch_route) based on data saved with the contact?
> Specifically, I would like to add a different header like Alert-Info based
> on the field user_agent.
>

Reading the docs, I believe this cannot be done.
But a limited conditional processing could be done indirectly using bflags:
we can identify the User-Agent during registration and set bflags based on
it. Then those bflags will be available in the branches when lookup() is
performed.

regards,
takeshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100224/b9963365/attachment-0001.htm 


More information about the Users mailing list