Hi,
if i print the according value just before the avp_db_strore(), i see,
that my value seems correct:
[...]
# Store new CF-Target in Database:
$avp(s:usr_cfnr) = $rU;
xlog("L_ERR", "1) $$avp(s:caller_userid) = $avp(s:caller_userid)\n");
avp_db_store("$avp(s:caller_userid)",
"$avp(s:usr_cfnr)/usr_preferences");
$avp(s:usr_cfnr_delay) = 20;
xlog("L_ERR", "2) $$avp(s:caller_userid) = $avp(s:caller_userid)\n");
avp_db_store("$avp(s:caller_userid)",
"$avp(s:usr_cfnr_delay)/usr_preferences");
# Rewrite URI to according announcement:
[...]
Feb 26 11:03:43 proxy1 /usr/sbin/kamailio[4247]: ERROR: <script>: 1)
$avp(s:caller_userid) = 7611
Feb 26 11:03:43 proxy1 /usr/sbin/kamailio[4247]: DEBUG: avpops
[avpops_impl.c:728]: 1 avps were stored
Feb 26 11:03:43 proxy1 /usr/sbin/kamailio[4247]: ERROR: <script>: 2)
$avp(s:caller_userid) = 7611
Feb 26 11:03:43 proxy1 /usr/sbin/kamailio[4247]: DEBUG: avpops
[avpops_impl.c:728]: 1 avps were stored
If i put the "20" as a String and not as a number, it works correct.
I'll dig into the code now, to see what went wrong, debug output is
not helping...
Kind regards,
Carsten
2013/2/25 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
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 -
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Carsten Bock
CEO (Geschäftsführer)
=============================================================
Visit us on the Kamailio World 2013, 16./17. April 2013
=>
See
you there!
=============================================================
ng-voice GmbH
Schomburgstr. 80
D-22767 Hamburg / Germany
mailto:carsten@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: