[asterisk-users] Variables error in 1.8.6.0.

Leandro Dardini ldardini at gmail.com
Mon Sep 5 14:58:23 CDT 2011


2011/9/5 Catalin S. <jonsonplayer at gmail.com>

> Hello,
>
> I have a problem with some variables in 1.8.6.0. I set on extension the
> following lines:
>
> exten => h, n, Set (CDR (LLP) = $ {CHANNEL (rtpqos, audio,
> local_lostpackets)})          ; lost packets by local end **
> exten => h, n, Set (CDR (PCR) = $ {CHANNEL (rtpqos, audio,
> remote_lostpackets)})     ; lost packets by remote end
> exten => h, n, Set (CDR (ljitt) = $ {CHANNEL (rtpqos, audio,
> local_jitter)})                          ; the Same for jitter
>
> Theoretically this should  throw these variables in a table in MySQL but
> these values ​​cannot  be readed. I think it's a different syntax in 1.8.
>
> I gave this error:
>
>     - Executing [h @ macro-special1: 11] Set ("SIP/1010-00000002", "CDR
> (LLP) =") in new stack
> [September 5 22:39:33] WARNING [14432]: SIP / dialplan_functions.c: 221
> sip_acf_channel_read: Unrecognized argument 'rtpqos, audio,
> remote_lostpackets' to CHANNEL
> [September 5 22:39:33] WARNING [14432]: func_channel.c: 393
> func_channel_read: Unknown or unavailable item Requested 'rtpqos, audio,
> remote_lostpackets'
>
>     - Executing [h @ macro-special1: 12] Set ("SIP/1010-00000002", "CDR
> (PCR) =") in new stack
> [September 5 22:39:33] WARNING [14432]: SIP / dialplan_functions.c: 221
> sip_acf_channel_read: Unrecognized argument 'rtpqos, audio, local_jitter' to
> CHANNEL
> [September 5 22:39:33] WARNING [14432]: func_channel.c: 393
> func_channel_read: Unknown or unavailable item Requested 'rtpqos, audio,
> local_jitter'
>
>     - Executing [h @ macro-special1: 13] Set ("SIP/1010-00000002", "CDR
> (ljitt) =") in new stack
> [September 5 22:39:33] WARNING [14432]: SIP / dialplan_functions.c: 221
> sip_acf_channel_read: Unrecognized argument 'rtpqos, audio, remote_jitter'
> to CHANNEL
> [September 5 22:39:33] WARNING [14432]: func_channel.c: 393
> func_channel_read: Unknown or unavailable item Requested 'rtpqos, audio,
> remote_jitter'
>
> Any idea how I can fix?
>
> Best regards,
> Jonson.
>
> --
>


 It is really simple, a patch of few months ago renamed the vars, but forget
to update the documentation. You have to "use the source" for finding the
new variable names. I paste here the part of the code for your easy
viewing...

                               { "txcount",               INT, { .i4 =
&stats.txcount, }, },
                                { "rxcount",               INT, { .i4 =
&stats.rxcount, }, },
                                { "txjitter",              DBL, { .d8 =
&stats.txjitter, }, },
                                { "rxjitter",              DBL, { .d8 =
&stats.rxjitter, }, },
                                { "remote_maxjitter",      DBL, { .d8 =
&stats.remote_maxjitter, }, },
                                { "remote_minjitter",      DBL, { .d8 =
&stats.remote_minjitter, }, },
                                { "remote_normdevjitter",  DBL, { .d8 =
&stats.remote_normdevjitter, }, },
                                { "remote_stdevjitter",    DBL, { .d8 =
&stats.remote_stdevjitter, }, },
                                { "local_maxjitter",       DBL, { .d8 =
&stats.local_maxjitter, }, },
                                { "local_minjitter",       DBL, { .d8 =
&stats.local_minjitter, }, },
                                { "local_normdevjitter",   DBL, { .d8 =
&stats.local_normdevjitter, }, },
                                { "local_stdevjitter",     DBL, { .d8 =
&stats.local_stdevjitter, }, },
                                { "txploss",               INT, { .i4 =
&stats.txploss, }, },
                                { "rxploss",               INT, { .i4 =
&stats.rxploss, }, },
                                { "remote_maxrxploss",     DBL, { .d8 =
&stats.remote_maxrxploss, }, },
                                { "remote_minrxploss",     DBL, { .d8 =
&stats.remote_minrxploss, }, },
                                { "remote_normdevrxploss", DBL, { .d8 =
&stats.remote_normdevrxploss, }, },
                                { "remote_stdevrxploss",   DBL, { .d8 =
&stats.remote_stdevrxploss, }, },
                                { "local_maxrxploss",      DBL, { .d8 =
&stats.local_maxrxploss, }, },
                                { "local_minrxploss",      DBL, { .d8 =
&stats.local_minrxploss, }, },
                                { "local_normdevrxploss",  DBL, { .d8 =
&stats.local_normdevrxploss, }, },
                                { "local_stdevrxploss",    DBL, { .d8 =
&stats.local_stdevrxploss, }, },
                                { "rtt",                   DBL, { .d8 =
&stats.rtt, }, },
                                { "maxrtt",                DBL, { .d8 =
&stats.maxrtt, }, },
                                { "minrtt",                DBL, { .d8 =
&stats.minrtt, }, },
                                { "normdevrtt",            DBL, { .d8 =
&stats.normdevrtt, }, },
                                { "stdevrtt",              DBL, { .d8 =
&stats.stdevrtt, }, },
                                { "local_ssrc",            INT, { .i4 =
&stats.local_ssrc, }, },
                                { "remote_ssrc",           INT, { .i4 =
&stats.remote_ssrc, }, },

Leandro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110905/93903093/attachment.htm>


More information about the asterisk-users mailing list