Hi. I have scheme:
User -> Kamailio -> Asterisk -> PSTN | V Radius Server
At the beginning dialog (INVITE) kamailio send to radius server START packet which indicates Called, Calling, Accounting Session ID, connect_time, setup_time. When the terminating call (BYE) kamailio forms STOP package. How can I get on kamailio Called, Calling, connect_time that I have in kamailio for START packet if I only match Accounting Session ID? Thank.
Hi Никитенко ,
Couple of Suggestions: - Go through the AAA protocol. - Understand RADIUS packets for Authorization, Authentication & Accounting and the information they have specially for caller/callee.
Regarding your question, apparently you have to have caller/callee and other information in some storage (cache, DB etc) to be retrieved based on acct session id. Go for a unique call-id or in conjunction with FROM/TO Tags for uniqueness of the call.
On Thu, Apr 9, 2015 at 8:36 AM, Никитенко Виталий v1t83@yandex.ru wrote:
Hi. I have scheme:
User -> Kamailio -> Asterisk -> PSTN | V Radius Server
At the beginning dialog (INVITE) kamailio send to radius server START packet which indicates Called, Calling, Accounting Session ID, connect_time, setup_time. When the terminating call (BYE) kamailio forms STOP package. How can I get on kamailio Called, Calling, connect_time that I have in kamailio for START packet if I only match Accounting Session ID? Thank.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
On 09/04/15 05:36, Никитенко Виталий wrote:
Hi. I have scheme:
User -> Kamailio -> Asterisk -> PSTN | V Radius Server
At the beginning dialog (INVITE) kamailio send to radius server START packet which indicates Called, Calling, Accounting Session ID, connect_time, setup_time. When the terminating call (BYE) kamailio forms STOP package. How can I get on kamailio Called, Calling, connect_time that I have in kamailio for START packet if I only match Accounting Session ID?
a short description for sake of completion: acc module for Kamailio is sending START and STOP events, it is up to you to mitigate in the radius backend side and get the call duration.
On the other hand, if you want to get Called, Calling, connect_time values from INVITE at BYE time you have to use dialog module and store those values in dialog variables. Then send those values to radius via extra accounting. However, you will get duplicates in START record.
If you are not bound to radius, by using acc+dialog modules, you can get one cdr per call in database (or syslog). With a bit of c coding, this should be possible to be extended for RADIUS. Not using RADIUS myself I wasn't able to code it myself.
Cheers, Daniel