[sr-dev] assigning $rd buggy?

Klaus Darilion klaus.mailinglists at pernau.at
Mon Jul 4 15:21:34 CEST 2011


Am 04.07.2011 15:10, schrieb Alex Balashov:
> On 07/04/2011 08:57 AM, Martin Hoffmann wrote:
> 
>> Am I the only one who cringes at $(ru{s.select,0,:}) and a few other PV
>> constructs?
> 
> On an aesthetic basis purely?
> 
>> SER 2.x had this nice concept of hierarchic select. What happened
>> to that?
> 
> For those coming from the OpenSER/Kamailio universe, can you elaborate
> on how these worked?

They are still available, e.g I use selects to get RR cookies:

if (@msg.header.Route[1].nameaddr.uri.params["nat"] == "both") {


Full list of selects is available here:
http://sip-router.org/docbook/sip-router/branch/master/select_list/select_list.html

I guess the uri subelement "type" would be the URI scheme, e.g: @ruri.type

Note: selects are read-only.

regards
Klaus



More information about the sr-dev mailing list