[SR-Users] weird dp_translate result
Juha Heinanen
jh at tutpro.com
Fri Aug 31 20:59:33 CEST 2012
Daniel-Constantin Mierla writes:
> Can you set $var(plan) to a static string value before dp_translate()
> just to see if the value is updated in the function?
i now have:
xlog("L_INFO", "Translating <$var(calling_number)> based on dpid 4\n");
$var(plan) = "something";
if (dp_translate("4", "$var(calling_number)")) {
xlog("L_INFO", "Found attrs <$var(plan)>\n");
and get:
Aug 31 21:57:21 wheezy2 /usr/sbin/sip-proxy[9733]: INFO: Translating <+35892345670> based on dpid 4
Aug 31 21:57:21 wheezy2 /usr/sbin/sip-proxy[9733]: INFO: Found attrs <598400320>
so looks like something happens to the pvar, but not the right thing.
-- juha
More information about the sr-users
mailing list