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.
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
Try using|||dbg_pv_dump |from the kamailio debugger module. The output should also include your avp.
Alternatively, you could use interactive debugging with kamcmd: "kamcmd> dbg.bp eval 3016 $avp(myvar)" as described in the above module. To do this you need to "kamcmd> dbg.bp on" to set breakpoints in the kamailio procs, followed by "dbg.ls", "dbg.next", "dbg.eval" as the Usage example shows. You _must_ enter the kamcmd shell for "dbg.eval" to work; for me, it didn't worked otherwise(i.e. when trying non-interactively).
Alternatively, you could set the "breakpoint(1)" module param to enable line by line breakpoints or use "dbg_breakpoint(1)" function in .cfg file, though the latter didn't work for me and I belive is not yet implemented. (as w_dbg_breakpoint function says).
Regards, Stefan
On 25.04.2015 19: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..