[asterisk-users] Log CODECS in CDR's

Morgan Gilroy morgan at telappliant.com
Fri May 11 02:32:35 MST 2007


Thanks for the pointers, I know about the Set(CDR..) function but I need
the codec that was negotiated in the Dial (once I have that its easy to
stick it into the cdrs as you pointed out).
Ie a call comes in as G729 Dial then negotiates GSM for the outbound
leg,
I want to log both these codecs in a CDR.

At the moment to find the codecs used I have to look though the sip
trace or show channels/show channel (annoying when you have 50+
channels).
Im just trying to find an easier and quicker way to keep track of the
codecs used to help with debug etc.

The closest variable iv found is, "${SIP_CODEC} Set the SIP codec for a
call"
Ill see if NoOp (${SIP_CODEC}) shows the codec that was used without me
setting it though I don't think it will.

Iv looked all over and I cant find anything so it looks like I may have
to hack a ast_set_var into app_dial or chan_sip



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of dave
cantera
Sent: 11 May 2007 03:24
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Log CODECS in CDR's

morgan,
I've seen some info on additional variables in the CDR... but haven't 
tried it... look to these pages:
daveC

http://www.asterisk.org/doxygen/1.2/AstCDR.html

In addition, you can set your own extra variables by using
Set(CDR(name)=value).
These variables can be output into a text-format CDR by using the
cdr_custom
CDR driver; see the cdr_custom.conf.sample file in the configs directory
for
an example of how to do this.

-and-

http://www.voip-info.org/wiki/view/Asterisk+Detailed+Variable+List




Morgan Gilroy wrote:
> Hi,
> Does anyone know how to get the codec that was negotiated for a call
> after a dial? I want to log them into CDR but can't find any way to do
> it without hacking the code.
> It would be good if I could get it in an asterisk variable I can log
off
> seperatly.
>
> Thanks!
> _______________________________________________
> --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
>
>
>
>   

-- 
Building Strong Relationships w/ Intelligent Customer Service
--

Interlocking Business Solutions, LLC
856-380-0894 x5000


_______________________________________________
--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

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


More information about the asterisk-users mailing list