[SR-Users] Bug in AVPOps?

Carsten Bock carsten at ng-voice.com
Mon Feb 25 14:36:08 CET 2013


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 at 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





-- 
Carsten Bock
CEO (Geschäftsführer)

=============================================================
Visit us on the Kamailio World 2013, 16./17. April 2013
=> http://conference.kamailio.com/k01/                             See
you there!
=============================================================

ng-voice GmbH
Schomburgstr. 80
D-22767 Hamburg / Germany

http://www.ng-voice.com
mailto:carsten at ng-voice.com

Office +49 40 34927219
Fax +49 40 34927220

Sitz der Gesellschaft: Hamburg
Registergericht: Amtsgericht Hamburg, HRB 120189
Geschäftsführer: Carsten Bock
Ust-ID: DE279344284

Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
http://www.ng-voice.com/imprint/



More information about the sr-users mailing list