[OpenSIPS-Users] what parameter to use for duration in db extra
Brett Nemeroff
brett at nemeroff.com
Fri Sep 16 17:25:34 CEST 2011
On Fri, Sep 16, 2011 at 9:56 AM, Akib Sayyed <akibsayyed at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110916/f902180d/attachment.htm>
More information about the Users
mailing list