[SR-Users] Work with radius

Daniel-Constantin Mierla miconda at gmail.com
Thu Apr 9 10:31:21 CEST 2015


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

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-users mailing list