Hello:
I am using opensips 2.4.2, working with the rtpengine module trying to get
stats per call leg. I have tried using the $rtpstat(STAT)[index] function with
to-tag/from-tag but it seems to only return the first called stat... with
subsequent calls returning an empty string.
Example 1:
Script:
xlog("L_INFO", "Caller MOS-Avg: $(rtpstat(MOS-average)[$ft])");
xlog("L_INFO", "Caller MOS-Max: $(rtpstat(MOS-max)[$ft])");
xlog("L_INFO", "Caller MOS-Min: $(rtpstat(MOS-min)[$ft])");
xlog("L_INFO", "Callee MOS-Avg: $(rtpstat(MOS-average)[$tt])");
xlog("L_INFO", "Callee MOS-Max: $(rtpstat(MOS-max)[$tt])");
xlog("L_INFO", "Callee MOS-Min: $(rtpstat(MOS-min)[$tt])");
Output:
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Caller MOS-Avg: 43
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Caller MOS-Max:
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Caller MOS-Min:
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Callee MOS-Avg:
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Callee MOS-Max:
Oct 2 10:39:08 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27058]: Callee MOS-Min:
Example 2:
Script:
xlog("L_INFO", "Callee MOS-Avg: $(rtpstat(MOS-average)[$tt])");
xlog("L_INFO", "Callee MOS-Max: $(rtpstat(MOS-max)[$tt])");
xlog("L_INFO", "Callee MOS-Min: $(rtpstat(MOS-min)[$tt])");
xlog("L_INFO", "Caller MOS-Avg: $(rtpstat(MOS-average)[$ft])");
xlog("L_INFO", "Caller MOS-Max: $(rtpstat(MOS-max)[$ft])");
xlog("L_INFO", "Caller MOS-Min: $(rtpstat(MOS-min)[$ft])");
Output:
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Callee MOS-Avg: 42
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Callee MOS-Max:
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Callee MOS-Min:
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Caller MOS-Avg:
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Caller MOS-Max:
Oct 2 10:40:48 wahoo-osips3Core01
/usr/local/opensips_proxy/sbin/opensips[27172]: Caller MOS-Min:
Likewise, a call to $rtpquery after making a call to $rtpstat(STAT) results in
an empty string. I have also tried using $rtpquery to get call leg stats, but
am having a difficult time correlating to-tag/from-tag with the assigned SSRC.
Just listening on rtpengine's ng port, it appears that opensips is only sending
one "query" command for the above examples. Does opensips cache the 1st query
or should it be sending 1 query per command?
Any help would be appreciated, and as always thanks for the help / time!
Thanks,
John
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users