[OpenSIPS-Users] what parameter to use for duration in db extra
Razvan Crainea
razvan.crainea at opensips.org
Fri Sep 16 17:09:34 CEST 2011
Hi Akib,
In order to get the call duration, you will have to use the new cdr
accounting, found in both OpenSIPS 1.7 and trunk.
To do that, you will only have to set the 'cdr_flag' on all the initial
Invites and the duration will be automatically inserted into the
database. Therefore the extra field should no longer be present into the
db_extra list.
Regards,
Răzvan Crainea
OpenSIPS Developer
On 09/16/2011 05:56 PM, Akib Sayyed wrote:
> hello guys please tell me what parameter to add in modparam of acc to
> get duration
> modparam("acc", "db_extra","caller_id=$fu; callee_id=$tu; \
> rpid=$avp(s:rpid); \
> duration=$avp(s:duration)\
> src_ip=$avp(s:source_ip); \
> src_port=$avp(s:source_port); \
>
> sip_proxy_ip=$avp(s:sip_proxy_ip); \
> user_agent=$hdr(user-agent); \
> contact=$hdr(contact)
> ")
>
> is it correct
>
> --
> Akib Sayyed
> Matrix-Shell
> akibsayyed at gmail.com <mailto:akibsayyed at gmail.com>
> akibsayyed at matrixshell.com <mailto:akibsayyed at matrixshell.com>
> Mob:- +91-966-514-2243
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110916/42183623/attachment-0001.htm>
More information about the Users
mailing list