[SR-Users] How to dump or log the value of $avp(ice_priority) with xlog

Filip Malenka filip.malenka at gmail.com
Sat Apr 25 18:04:03 CEST 2015


Hi all,

I am adding the
modparam("rtpproxy", "ice_candidate_priority_avp", "$avp(ice_priority)")
to my kamailio.cfg and I would like to know, what this
"$avp(ice_priority)" returns, either 1, or 2 or anything else..

I tried with xlog
xlog("The ICE priority is: $avp(ice_priority)");
and placed it right before the
rtpproxy_manage()
function call in my routing and did a grep on /var/log/syslog but I only
get a "<null>" as returned value when attempting to make a call:

Apr 25 17:47:03 localhost /usr/sbin/kamailio[19600]: ERROR: <script>:
The ICE priority is: <null>

I expected values 1 or 2 according to the rtpproxy module docu.
http://kamailio.org/docs/modules/4.0.x/modules/rtpproxy.html#idp18746912

Thank you.
Filip.



More information about the sr-users mailing list