Antoine Megalla schrieb:
> 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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users