[Users] How to log the username of caller and callee to acc table?

Charles Wang lazy.charles at gmail.com
Fri May 18 16:10:45 CEST 2007


Dear Bogdan,

Thank you for your important information.
It helps me to solve my problems.
I add four fields to DB and use db_extra to insert them.

modparam("acc", "db_extra", "from_uri=$fu ; sip_from=$hdr(From) ; to_uri=$tu
; sip_to=$hdr(To)")



Best regards,
Charles



2007/5/18, Bogdan-Andrei Iancu <bogdan at voice-system.ro>:
>
> Hi Charles,
>
> in openser 1.2 only a few mandatory info about the SIP transaction are
> accounted. If you want something more, use the the extra accounting.
> For, example, for db, to get the from uri, so:
>
> modparam("acc","db_extra","from_uri=$fu ; sip_from=$hdr(From)")
>
> Note, you need to create the new columns in the acc table. See
>    http://www.openser.org/docs/modules/1.2.x/acc.html#ACC-EXTRA-ID
>
> regards,
> bogdan
>
> Charles Wang wrote:
> > Hi all,
> >
> > I ever used SER and I know it will save the From information such as
> > 101 at 192.168.11.200 <mailto:101 at 192.168.11.200> to sip_from or from_uri
> > in its acc table.
> > But in my openser, I also setup the acc module. Where is my caller info?
> >
> > I can find a lot of number such as "2806655523" in my from_tag.
> > I wanna store the caller and callee info in my acc table when I make
> > an internal call or an external call.
> >
> > Can anybody kind to help me to solve it? or give me some tips please.
> > PS: I got this openser.cfg from http://www.sipwise.com/wizard.
> >
> > Best regards,
> > Charles
>
>


-- 

Best Regards
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20070518/477ff6ec/attachment.htm 


More information about the Users mailing list