Hi,

We implemented the patch.
Issue number is XX-5933.

Regards,
Gabor

-----Original Message-----
From: Scott Lawrence [mailto:[email protected]] 
Sent: 03 June 2009 15:51
To: Gabor Paller
Cc: [email protected]
Subject: RE: [sipX-dev] Feature proposal: configurable q value regexp

On Wed, 2009-06-03 at 15:28 +0100, Gabor Paller wrote:
> One question: let's take your example.
> SIP_REGISTRAR_Q.NCH : 0.9=1.0
> 
> Would that "NCH" be matched against the User-Agent header of the
> REGISTER request?

You could define it that way, (see the
sipXregistry/lib/register_plugins/mwi/SipImpliedSubscriptions.cpp
registry plugin for an example of how), but I'm not sure it's worth the
trouble.  Do you really want to restrict it (and have it break when the
phone vendor changes the UA header) ?

The purpose of the .NCH is so that you can have multiple mappings:
SIP_REGISTRAR_Q.NCH : 0.9=1.0
SIP_REGISTRAR_Q.ABC : 0.85=1.0

The directive name (all non-blanks before the colon) must be unique;
these lines become entries in a hash table internally.  You can iterate
over all entries that have a common prefix to build up the q-value
translation table (again, look at that example for how to read the
entries).



_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to