Hi,
I have the following ser.cfg code:
lookup_user("$tu.uid", "@ruri");
load_attrs("$tu", "$tu.uid");
if ($tu.forward_as_blind) {
the if statement gives the negative result what is I think wrong because the attribute is
present and it's value is 1.
here is the output from dump_attrs():
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:540: class=GLOBAL
Jul 6 08:35:13 sen ser[1445]: AVP["lang"]="en"
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:550: track=FROM class=DOMAIN
Jul 6 08:35:13 sen ser[1445]: AVP["did"]="voip.rd.touk.pl"
Jul 6 08:35:13 sen ser[1445]: AVP["digest_realm"]="voip.rd.touk.pl"
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:560: track=TO class=DOMAIN
Jul 6 08:35:13 sen ser[1445]: AVP["did"]="voip.rd.touk.pl"
Jul 6 08:35:13 sen ser[1445]: AVP["digest_realm"]="voip.rd.touk.pl"
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:570: track=FROM class=USER
Jul 6 08:35:13 sen ser[1445]: INFO: No AVP present
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:580: track=TO class=USER
Jul 6 08:35:13 sen ser[1445]: AVP["datetime_created"]="2007-04-18
07:51:34"
Jul 6 08:35:13 sen ser[1445]: AVP["email"]="tzl(a)touk.pl"
Jul 6 08:35:13 sen ser[1445]: AVP["forward_as"]="192.168.0.165:6060"
Jul 6 08:35:13 sen ser[1445]: AVP["forward_as_blind"]=1
Jul 6 08:35:13 sen ser[1445]: AVP["forward_as_default"]=0
Jul 6 08:35:13 sen ser[1445]: AVP["forward_as_invite"]=0
Jul 6 08:35:13 sen ser[1445]: AVP["forward_as_message"]=0
Jul 6 08:35:13 sen ser[1445]: AVP["forward_voicemail"]=0
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:590: track=FROM class=URI
Jul 6 08:35:13 sen ser[1445]: INFO: No AVP present
Jul 6 08:35:13 sen ser[1445]: INFO: avp.c:600: track=TO class=URI
Jul 6 08:35:13 sen ser[1445]: INFO: No AVP present
please point me what did I miss?
Thanks in advance
Tomasz
Show replies by date