Thanks Daniel<br><br>I figured this but was just confirming that there wasn&#39;t an &#39;easier&#39; way that I may have missed.<br><br>thanks for the prompt response.<br><br>Cheers<br>Jason<br><br><div class="gmail_quote">
On Thu, Jun 26, 2008 at 10:52 AM, Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div><div></div><div class="Wj3C7c"><br>
<br>
On 06/26/08 11:45, Jason Penton wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi *<br>
<br>
how do you pass AVP values to script functions in openser.<br>
<br>
if I do -<br>
<br>
myFunction(&quot;somestring&quot;,$avp(s:someotherstring)); - openser fails to load, and<br>
<br>
myFunction(&quot;somestring&quot;,&quot;$avp(s:someotherstring)&quot;); - passes the actual AVP string to the script and not the evaluation of the AVP string<br>
</blockquote></div></div>
myFunction is something you have developed, I guess. The first format is not allowed as module functions accept only string parameters. The second is valid, but the conversion to different other types can be done using so called fixup functions -- you can find some common such functions in mod_fix.{c,h}. Some details that can help at:<br>

<br>
<a href="http://www.asipto.com/pub/openser-devel-guide/#c16moduledev" target="_blank">http://www.asipto.com/pub/openser-devel-guide/#c16moduledev</a><br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Kind regards<br>
Jason<br>
</blockquote>
-- <br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</blockquote></div><br>