<div dir="ltr"><div>I would like to know if there's a way to do parallel forking via lua code. <br><br></div>So specifically, I'd like to be able to do something like this: <br><pre class="">  seturi("<a href="mailto:sip%3Aa@example.com">sip:a@example.com</a>");
  append_branch("<a href="mailto:sip%3Ab@example.com">sip:b@example.com</a>");
  append_branch("<a href="mailto:sip%3Ac@example.com">sip:c@example.com</a>");
  append_branch("<a href="mailto:sip%3Ad@example.com">sip:d@example.com</a>");

  t_relay();<br><br></pre><pre class="">except via lua, because the list of branches is dynamic. I've tried the following: <br><br></pre><pre class="">   sr.modf("append_branch","sip:10.x.x.x")<br><br></pre><pre class="">but the error message I'm getting is: <br>/usr/sbin/kamailio[7437]: ERROR: app_lua [app_lua_sr.c:177]: lua_sr_modf(): function 'append_branch' is not available <br><br></pre><pre class="">Just wondering if I "should" be able to do this. <br>I've been reading <a href="http://www.kamailio.org/wiki/embeddedapi/devel/lua#srtm_package">http://www.kamailio.org/wiki/embeddedapi/devel/lua#srtm_package</a> but haven't seen any references to append_branch. <br><br>The other alternative I'm looking at is to just use lua to generate the list of destinations and pass back a hashtable of sorts to<br>the cfg file. Then from there I will try to loop through the hashtable and do the append_branch command for each entry<br>in the table. <br><br></pre><pre class="">If you have other suggestions, I'd appreciate it. <br></pre><pre class="">Thanks. </pre></div>