Hi,

If I call dp_translate with an integer, everything is working as expected:

if (!dp_translate("12345", "$fU/$avp(s:service)")) {

If I try the same with an AVP, I will get the following error:

xlog (" billingid $avp(s:billing)");
if (!dp_translate("$avp(s:billing)", "$fU/$avp(s:service)")) {

May 28 13:20:21 osip /usr/sbin/opensips[13676]:  billingid 12345
May 28 13:20:21 osip /usr/sbin/opensips[13676]:
DBG:dialplan:dp_get_ivalue: searching 4
May 28 13:20:21 osip /usr/sbin/opensips[13676]:
ERROR:dialplan:dp_get_ivalue: no AVP or SCRIPTVAR found (error in scripts)
May 28 13:20:21 osip /usr/sbin/opensips[13676]:
ERROR:dialplan:dp_translate_f: n
o dpid value

Any hints?

BR

Uwe



-- 

kiste lat: 54.322684, lon: 10.13586

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to