Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] show CODEC in CDR


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
aatef at rocketmail.com
Guest





PostPosted: Wed May 07, 2008 4:39 pm    Post subject: [asterisk-users] show CODEC in CDR Reply with quote

Hi,

In asterisk is there a way of saving the voice codec used in the call in the CDR.
I am having mostly SIP calls, with few H323 calls.

I have been trying for the past 2 weeks to figure it out on my own, but with no luck.
There are no channel variables that can give the current codec used in the call, or used in the channel.
I need it because I must charge the clients according to the codec for the?individual calls.

I even tried looking in the AGI commands for asterisk, and many external AGI packages, but with no luck.

Can this be done?

Your help is much appreciated.
Thank you and best regards,

Antoine Megalla.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Back to top
philipp.kempgen at amo...
Guest





PostPosted: Wed May 07, 2008 5:25 pm    Post subject: [asterisk-users] show CODEC in CDR Reply with quote

Antoine Megalla schrieb:

Quote:
In asterisk is there a way of saving the voice codec used in the call in the CDR.
I am having mostly SIP calls, with few H323 calls.

I have been trying for the past 2 weeks to figure it out on my own, but with no luck.
There are no channel variables that can give the current codec used in the call, or used in the channel.
I need it because I must charge the clients according to the codec for the individual calls.

I even tried looking in the AGI commands for asterisk, and many external AGI packages, but with no luck.

What happens if you put something like this in a macro

Verbose(1,${CHANNEL(audioreadformat)});
Verbose(1,${CHANNEL(audiowriteformat)});
Verbose(1,${CHANNEL(audionativeformat)});

and call the macro from Dial()

Dial(...,,M(my-codec-log-macro));
Gr??e,
Philipp Kempgen
--
Asterisk-Tag.org 2008, May 26th/27th -> http://www.asterisk-tag.org
amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services