[Serusers] avp_db_store
Glenn Dalgliesh
ser at techhat.com
Tue Apr 12 21:00:30 CEST 2005
I have almost all of the other parts of AVP functioning great but I can't
seem to get avp_db_store to work from CVSHEAD. Below is an example and the
debug. Not sure if it's my syntax or bug
Thanks for an help
if(uri=~"sip:\*78 at .*") {
log(1, "LOG: Enable DND\n");
avp_write("$to/username", "$to_id");
avp_write("$from/username", "s:fromuser");
avp_db_load("$from/username", "s:7879");
avp_print();
avp_db_store("$from/username","i:7879");
rewritehostport ("xxx.yyy.83.5:5060");
route(9);
break;
};
8(22938) DEBUG:avpops:load_avps: loaded avps = 1
8(22938) DEBUG:avpops:print_avp: p=0xb61a8340, flags=B
8(22938) DEBUG: name=<7879>
8(22938) DEBUG: val_str=<>
8(22938) DEBUG:avpops:print_avp: p=0xb61a82e4, flags=3
8(22938) DEBUG: name=<fromuser>
8(22938) DEBUG: val_str=<4107358551>
8(22938) DEBUG:avpops:print_avp: p=0xb61a82a0, flags=2
8(22938) DEBUG: id=<57920>
8(22938) DEBUG: val_str=<*78>
8(22938) DEBUG:avpops:store_avps: 0 avps were stored
More information about the sr-users
mailing list