Hi Uwe.<br><br>I faced a similar problem; what I tried was applying a transformation on the AVP and assign it to another AVP:<br><br>$avp(i:10)=$(avp(s:billing){<a href="http://s.int">s.int</a>});<br><br>and then, use $avp(i:10) for dp_translate.<br>
<br>Regards.<br><br>Sergio.<br><br><div class="gmail_quote">On Thu, May 28, 2009 at 6:26 AM, Uwe Kastens <span dir="ltr"><<a href="mailto:kiste@kiste.org">kiste@kiste.org</a>></span> 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>
If I call dp_translate with an integer, everything is working as expected:<br>
<br>
if (!dp_translate("12345", "$fU/$avp(s:service)")) {<br>
<br>
If I try the same with an AVP, I will get the following error:<br>
<br>
xlog (" billingid $avp(s:billing)");<br>
if (!dp_translate("$avp(s:billing)", "$fU/$avp(s:service)")) {<br>
<br>
May 28 13:20:21 osip /usr/sbin/opensips[13676]: billingid 12345<br>
May 28 13:20:21 osip /usr/sbin/opensips[13676]:<br>
DBG:dialplan:dp_get_ivalue: searching 4<br>
May 28 13:20:21 osip /usr/sbin/opensips[13676]:<br>
ERROR:dialplan:dp_get_ivalue: no AVP or SCRIPTVAR found (error in scripts)<br>
May 28 13:20:21 osip /usr/sbin/opensips[13676]:<br>
ERROR:dialplan:dp_translate_f: n<br>
o dpid value<br>
<br>
Any hints?<br>
<br>
BR<br>
<br>
Uwe<br>
<font color="#888888"><br>
<br>
<br>
--<br>
<br>
kiste lat: 54.322684, lon: 10.13586<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Sergio Gutiérrez<br>