Thanks<br><br>I will make some feature requests including some I came up with over night:<br> {s.subst,/regex/replace/flags}<br> {s.regex,/regex/}<br> avp_delete("$avp(s:name)/index")<br><br>Dave<br><br><div>
<span class="gmail_quote">On 12/14/07, <b class="gmail_sendername">Henning Westerholt</b> <<a href="mailto:henning.westerholt@1und1.de" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">henning.westerholt@1und1.de
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 13 December 2007, Dave Singer wrote:<br>> I'm a little confused. Are you saying there is a transformation {s.count}<br>> that can be applied to avp's to get the number of items in an avp<br>> list/stack?
<br>> I don't see any documentation for one at the link that you sent me. I had<br>> already scoured it looking for something to help me, but checked again in<br>> case something had changed.<br>> It sound more like you are saying that there is no such functionality and
<br>> suggesting that I code/create a new transformation.<br><br>Hi Dave,<br><br>yes, i wanted to say something like that. :-) Just wanted to start a<br>discussion about the possibility of a new transformation function.
<br><br>> Unfortunately my "Programing" experience is quite rusty, the last time I<br>> looked at C/C++ was in College almost 15 years ago. Not to mention already<br>> not enough time in a day to get done what I'm supposed to do. Maybe some
<br>> time in the future I/we will be able to contribute code to openser and/or<br>> modules, but not now. We are pushing hard to have a quality sell able<br>> product/service.<br>> Or company is planning to contribute back to openser in several ways. When
<br>> we get our servers setup and working, providing a stable, load-balanced,<br>> scalable platform that our sales team can sell our services with<br>> confidence, we are planning to post our openser.cfg files highly commented,
<br>> along with database structure changes(added tables, views, colums,<br>> indexes...), example data, and a way to manage the data.<br><br>Sounds great!<br><br>> So for now (assuming you are saying there isn't something there now) I'll
<br>> have to use what is currently available and hope that someone else with<br>> more experience and time finds these features valuable enough to implement<br>> them. I like the idea of a transformation but maybe like this:
<br>> $var(step_count) = $(avp(s:list){ary.count})<br>> while ( $var(step_count) != 0 ) {<br>> $var(working_var) = $(avp(s:list){ary.index,$var(step_count)});<br>> # do some stuff on this reverse process list.
<br>> # also we are not deleting list items to get to other list items.<br>> }<br>> and later used like...<br>> $var(step_count) = $(di{ary.count}); # if $di was a list/array of all<br>> the Diversion headers
<br>> # same as in avp example above with other PV that could be lists/arrays<br>><br>> Also as the original email for this conversation stated, we need a<br>> {s.count,seperator} to compliment {s.select,index,seperator}
<br><br>You could open a feature request on the tracker [1] with the proposed<br>enchancements.<br><br>Cheers,<br><br>Henning<br><br><br>[1] <a href="https://sourceforge.net/tracker/?group_id=139143&atid=743023" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
https://sourceforge.net/tracker/?group_id=139143&atid=743023
</a><br></blockquote></div><br>