[asterisk-users] hostname in MySQL CDR records

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Nov 1 00:48:57 CDT 2007


On Wednesday 31 October 2007 19:49:24 Jim Gottlieb wrote:
> I would like to send the CDR records from all our machines around the
> world to a single database.  But I need the hostname included with each
> record for monitoring purposes.
>
> Is there a better way than using the userfield and adding
> SetCDRUserfield for every call to set the userfield to the name of the
> host?

If you set systemname in asterisk.conf, that prefix will become part of the
uniqueid field.  You'll probably need to widen that field, though.

-- 
Tilghman



More information about the asterisk-users mailing list