[OpenSIPS-Users] dp_translate with $avp(s:xyz) not working
Uwe Kastens
kiste at kiste.org
Thu May 28 13:26:27 CEST 2009
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
More information about the Users
mailing list