Hello, What version are you using? Is it happening to get the right value from time to time?
If you set higher debug mode, is it printing the message that a rule was matched? Cheers, Daniel -- Daniel-Constantin Mierla http://www.asipto.com On 31 Aug 2012, at 18:15, Juha Heinanen <j...@tutpro.com> wrote: > i have this piece of config code: > > modparam("dialplan", "attrs_pvar", "$var(plan)") > ... > xlog("L_INFO", "Translating <$var(calling_number)> based on dpid 4\n"); > > if (dp_translate("4", "$var(calling_number)")) { > xlog("L_INFO", "Found attrs <$var(plan)>\n"); > ... > > dpid 4 has three entries: > > 109 4 10 1 ^\+1 0 na > 107 4 10 1 ^\+358 0 fi > 108 4 10 1 ^\+46 0 se > > thus in each entry attrs field has some two letter value. > > when the above piece of code is executed, i get to syslog > > Aug 31 19:06:51 wheezy2 /usr/sbin/sip-proxy[7162]: INFO: Translating > <+35892345670> based on dpid 4 > Aug 31 19:06:51 wheezy2 /usr/sbin/sip-proxy[7162]: INFO: Found attrs <0> > > if i restart the proxy, attrs value may change to some other bogus > value. > > any ideas? > > -- juha > > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users