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
akibsay...@gmail.com <mailto:akibsay...@gmail.com>
akibsay...@matrixshell.com <mailto:akibsay...@matrixshell.com>
Mob:- +91-966-514-2243



_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to