[asterisk-users] CDR timing

Rob Schall rschall at callone.net
Mon Jun 4 06:50:06 MST 2007


Our call detail is located in 2 places. The master.csv file and in a
mysql database. All outbound calls have:
exten => _91NXXNXXXXXX,1,Set(CALLERID(all)=000-000-0000)
     (the zeros being our number)

Right after that, it moves to the Dial command. The problem we are
seeing, is in both the csv file and the mysql database, the src and clid
are set to our main line's number. I need to to read the correct src. I
don't care what the clid says.

Rob

Steve Murphy wrote:
> On Thu, 2007-05-31 at 15:44 -0500, Rob Schall wrote:
>   
>> A simple question but one I can't seem to find easily...
>>
>> I have 90 or so DIDs. For all outbound calls, I edit the callerid so
>> that it will always read out main line's number. This poses a problem
>> though, because the CDR detail isn't written until after everything is
>> done. So when you look at the detail, the number you are calling is over
>> written with this new caller id for some reason.
>>
>> Any thoughts how to better get an accurate reading of the calls, or
>> another way to mask the caller id?
>>
>> Rob
>>     
>
>
>  Rob--
>
> You've left out some details, like where the callerid info you want to
> see is stored. Every channel keeps track of ani, rdnis, and dnid as
> well, and depending on the driver, usually only the ani or the plain
> callerid name/num end up in the CDR records.
>
> In the dialplan, you can attach other info onto a CDR by setting, for
> example, the CDR userfield, to one of these values, and hopefully, you
> can get this info out into a CDR so you can arrange your billing info
> accordingly...
>
> Also, keep in mind that the CDR is a separate data structure, and only
> gets updated at certain times, and you are only allowed to set certain
> fields via dialplan funcs. (and the CID info isn't on that list!).
>
>
> murf
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070604/2b1327a5/attachment.htm


More information about the asterisk-users mailing list