<div dir="ltr">Ouh See it just now. Thanks! I will try!</div><div class="gmail_extra"><br><div class="gmail_quote">2015-10-19 17:31 GMT+03:00 Waite, Hugh <span dir="ltr"><<a href="mailto:hugh.waite@xura.com" target="_blank">hugh.waite@xura.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Lua has the modf() function which allows calling any function that is available to the config file (<a href="http://www.kamailio.org/wiki/embeddedapi/devel/lua#srmodf" rel="noreferrer" target="_blank">http://www.kamailio.org/wiki/embeddedapi/devel/lua#srmodf</a>). It has the limitation that it can't handle functions that require 'fixup' of the parameters, so you will have to try it out to see. It will show an ERROR level log "function 'rtpengine_manage' has fixup - cannot be used" if this is the case.<br>
<br>
sr.modf("rtpengine_manage", "trust-address replace-session-connection ICE=force SRTP AVPF")<br>
<br>
Regards,<br>
Hugh<br>
<div><div class="h5"><br>
-----Original Message-----<br>
From: sr-dev [mailto:<a href="mailto:sr-dev-bounces@lists.sip-router.org">sr-dev-bounces@lists.sip-router.org</a>] On Behalf Of Victor Seva<br>
Sent: 19 October 2015 14:10<br>
To: <a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
Subject: Re: [sr-dev] Use rtpengine lua question<br>
<br>
On 10/19/2015 02:54 PM, Yuriy Gorlichenko wrote:<br>
> Hello. I want to rewrite some my configs by using lua scripts. At<br>
> examples I saw that I can use constructions like<br>
> sr.some_module.module_api("options")<br>
> Can I use with this method rtpengine module api because many of<br>
> projects that I have uses Webrtc and  use rtpengine and ofcourse I<br>
> dont want "to jump" from config file to  scripts.<br>
<br>
AFAIK rtpengine doesn't export any API to lua. So, no.<br>
<br>
</div></div>________________________________<br>
This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Xura, Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to <a href="mailto:security@xura.com">security@xura.com</a>. Thank You.<br>
<br>
_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
</blockquote></div><br></div>