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

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 27 17:59:18 CEST 2015


Hello,

reading the documentation, the avp is for setting a value in order to
control the behavior of rtpproxy module. It is not something that the
rtpproxy is setting inside the avp.

Maybe if you describe what you need to get, then we may have some hints
for you how to do it.

Cheers,
Daniel

On 25/04/15 18:04, Filip Malenka wrote:
> 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.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - http://www.kamailioworld.com




More information about the sr-users mailing list