[asterisk-users] Not able to get remote channel variables containing RTCP values

Thomas Rechberger t.rechberger at gmail.com
Mon Dec 2 10:54:00 CST 2013

I am not sure if its just me, but i am able to get only local channel 
variables containing RTCP QOS values.
The Version is 1.8.14.
I want to store values of bridged channel in CDR.

Phone is Cisco 7941 SIP and with sip show channelstats i see all the 
relevant information (jitter,packet loss) i want to get. It even 
calculates packet loss in %. But i am not able to store it to CDR.

Asterisk 1.4 seems to have had a function ast_rtp_get_quality but i cant 
find any information about that in sources from 1.8, only a short 
reference in 1.4.

Channel variables like CHANNEL(rtpqos,audio,rxjitter) show only 
information about the local channel. So not really usefull.
In some old version they seemed to have it changed from remote_jitter to 
rxjitter, local_jitter to txjitter and so on. Was not even documented.

The 2 variables RTPAUDIOQOSBRIDGED and RTPAUDIOQOS show exactly the 
things i want, but all information is stored in one field so its not 
really usable because it looks ugly in CDR report and doesnt show packet 
loss in %.

The following interesting variables are completely empty (show 0), here 
is how i write it to CDR in h:
exten => s,n,Set(CDR(txj)=${RTPAUDIOQOSJITTER})
exten => s,n,Set(CDR(txpl)=${RTPAUDIOQOSLOSS})
exten => s,n,Set(CDR(rxpl)=${RTPAUDIOQOSLOSSBRIDGED})
exten => s,n,Set(CDR(txrtt)=${RTPAUDIOQOSRTT})
exten => s,n,Set(CDR(rxrtt)=${RTPAUDIOQOSRTTBRIDGED})

I also checked variables during call with featurecode, but also empty.

Did i oversee something? Is it the same in Version 11 ?
I dont want to mess with Voipmonitor because i only need 2 variables of 
remote channel. If sip show channelstats is showing everything 
correctly, it should be not that hard to get that information.

More information about the asterisk-users mailing list