Hello,
I don't recall any related issue. You can check the commit logs with git
log.
Anyhow, if you orint the caller_userid avp with xlog() before the avp db
store, what do you get?
Cheers,
Daniel
On 2/25/13 2:36 PM, Carsten Bock wrote:
Hi,
i use the AVPops module to store information about Call-Forwardings in
the database:
# Store new CF-Target in Database:
$avp(s:usr_cfnr) = $rU;
avp_db_store("$avp(s:caller_userid)",
"$avp(s:usr_cfnr)/usr_preferences");
$avp(s:usr_cfnr_delay) = 20;
avp_db_store("$avp(s:caller_userid)",
"$avp(s:usr_cfnr_delay)/usr_preferences");
(please not, that $avp(s:caller_userid) was not changed)
however this results into two different inserts, one for user 7736 (correct)
T 2013/02/25 14:25:11.704628 192.168.0.2:51460 -> 192.168.0.20:3306 [AP]
{....insert into usr_preferences
(uuid,attribute,value,type,username,domain ) values
('7736','usr_cfnr','491792021244',0,'','')
and one for user 7720 (20???, as in the delay, incorrect)
T 2013/02/25 14:25:11.705572 192.168.0.2:51460 -> 192.168.0.20:3306 [AP]
w....insert into usr_preferences
(uuid,attribute,value,type,username,domain ) values
('7720','usr_cfnr_delay','20',1,'','')
I am using Kamailio 3.3.2 from GIT-Trunk (nightly, checked out on
December 14th):
root@proxy1:/# kamailio -V
version: kamailio 3.3.2 (x86_64/linux)
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS,
USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM,
SHM_MMAP, PKG_MALLOC, F_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 01:57:11 Dec 14 2012 with gcc 4.4.5
Before i dig deeper into the code of the avpops module, has anyone
seen / fixed this issue?
Thanks,
Carsten
--
Daniel-Constantin Mierla -
http://www.asipto.com
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio World Conference, April 16-17, 2013, Berlin
-
http://conference.kamailio.com -