On Fri, Sep 16, 2011 at 9:56 AM, Akib Sayyed <[email protected]> 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


No, that's not right unless you want to manually calculate that variable.
Check the acc docs, you just need to set the cdr flag and the database field
will automatically be updated. Should not require it to be in db_extra

-Brett
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to