Hi,
yes, in handle_subscribe the branch flags are set in the subscription.
you can check them in tm:local-request and/or presence:notify-reply.
not sure what its possible to change in tm:local-request (before notify is sent) but you
can try to set different values in $du? depending on the $subs(flags) value.
Cheers
Luis
________________________________________
From: sr-dev [sr-dev-bounces(a)lists.sip-router.org] on behalf of Daniel-Constantin Mierla
[miconda(a)gmail.com]
Sent: Friday, February 05, 2016 11:38 AM
To: Kamailio (SER) - Development Mailing List
Subject: Re: [sr-dev] active_watchers flags field
It should keep the branch flags at the time of handling the subscribe -
that was the plan discussed with Luis, not sure it was here on sr-dev or
irc channel.
Cheers,
Daniel
On 04/02/16 04:34, Juha Heinanen wrote:
I noticed that active_watchers table now has a new
flags field. The only
reference I found to it in README is this:
7.1. $subs(attr)
Access the attributes of handled subscription. It must be used after a
successful call of “handle_subscription()” or in the following events.
* tm:local-request - before notify is sent
* present:notify-reply - after notify is sent
The “attr” can be:
...
* flags
When I call handle_subscribe, how can I set the flags field?
-- Juha
Ps. There is a typo in above README text. The name of the function is
handle_subscribe.
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio -
http://www.asipto.com
http://miconda.eu
_______________________________________________
sr-dev mailing list
sr-dev(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev