Hi Tito,
The registrar module (responsible for extracting the contacts from SIP
msg and storing into USRLOC) takes the q value from the Contact header
(as SIP RFC requires).
Currently there is no way to change the q value (from script level)
before saving into USRLOC.
But what you can do is to change the q values after the lookup (when
loaded into msg from USRLOC).
Take a look at branch variable $branch(q) :
http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc22
and $ru_q (q value for RURI) :
http://www.opensips.org/Documentation/Script-CoreVar-2-1#toc77
and you may change the q values and do a serialize_branches() after that.
Best regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 01.07.2015 19:57, Tito Cumpen wrote:
Group,
Is it possible to set the q value upon registration? I need to set ws
destinations to a lower q value as rtpengine has a limitation on
sending different media params on a per branch basis in parallel. Or
should I loop into the branches with a certain attribute and order
them before serializing them?
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users