acc_db_request inserts information in a table that you mentioned in second parameter of the function with some comments mentioned in first parameter.
For example, acc_db_request("some information", "acc").
The function works only in request and failure route.
If you want put some information in acc table before call hang up then you
should make acc_db_request("some information", "acc") in any request route
where INVITE processed.
From: [email protected]
[mailto:[email protected]] On Behalf Of M.Khaled W Chehab
Sent: Wednesday, May 08, 2013 2:27 PM
To: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Database Record
version: opensips 1.8.2-notls (x86_64/linux)
flags: STATS: Off, EXTRA_DEBUG, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST,
SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
svnrevision: 2:9954M
@(#) $Id: main.c 9791 2013-02-15 10:15:25Z bogdan_iancu $
main.c compiled on 15:29:28 Apr 18 2013 with gcc 4.4.5
From: [email protected]
[mailto:[email protected]] On Behalf Of dpa
Sent: Wednesday, May 08, 2013 7:48 AM
To: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Database Record
The version of Opensips?
From: [email protected]
[mailto:[email protected]] On Behalf Of M.Khaled W Chehab
Sent: Tuesday, May 07, 2013 4:52 PM
To: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Database Record
Hello,
Please can you make it more clear or give me an example for the function
acc_log_request("Some comment", "Some table");
onreply_route[2] {
if (is_method("INVITE") && t_check_status("200") ) {
acc_log_request("coonect time ","acc"); ???????
}
From: [email protected]
[mailto:[email protected]] On Behalf Of dpa
Sent: Tuesday, May 07, 2013 1:06 PM
To: 'OpenSIPS users mailling list'
Subject: Re: [OpenSIPS-Users] Database Record
Hello
Try http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id293991
From: [email protected]
[mailto:[email protected]] On Behalf Of M.Khaled W Chehab
Sent: Tuesday, May 07, 2013 2:01 PM
To: [email protected]
Subject: [OpenSIPS-Users] Database Record
Dears,
I am using acc module and I am inserting two rows for each call (INVITE,BYE)
,
I have a problem such I want to update the record in acc table before the
calls ends which have a method = INVITE, and now that cant be done now
since opensips
Does not insert the invite record before the calls ends
How to let the invite record inserted in database before calls ends
Please advice
Khaled Chehab
Senior NGN Engineer
Description: icucall
Operations Office - Lebanon
Office : +961 1 515155 ext 300
Mobile : +961 3 045212
E-mail : [email protected]
MSN ID :[email protected]
Skype : k_chehab
Web Site: http://www.icucall.com
http://www.allohi.com
<<image001.png>>
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
