<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Again, I can't help on using app_java.<br>
    <br>
    As for app_mono, which I developed more as an experiment, not really
    using it, sending a reply from a mono script is not possible at this
    moment. I exported just a few functions to the mono module, sending
    replies are not among them. If someone wants to take the lead and
    add new features to app_mono, I would happily assist.<br>
    <br>
    The limitation of executing only config functions without parameter
    comes from the design of the config functions which do so called
    'fixup' at startup -- this is a mechanism that pre-compile the
    parameters in a binary form, which is then used for executing the
    functions during runtime. Thus executing a function with string
    parameter can lead to a crash.<br>
    <br>
    But you can return values back to the script via config variables
    and use them as parameter to sl send reply functions. See:<br>
    <br>
    - <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/embeddedapi/4.1.x/mono#class_pv">http://www.kamailio.org/wiki/embeddedapi/4.1.x/mono#class_pv</a><br>
    <br>
    In terms of embedded interpreters, app_lua has the largest set of
    Kamailio functions exported to Lua -- see its API in the wiki.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 11/09/14 22:03, Tom Johnson wrote:<br>
    </div>
    <blockquote
cite="mid:24010f0260f34b67857d4e56f282802f@CO1PR07MB221.namprd07.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Is there a way to call the send_reply
          method of the route from either Java or csharp?   As I have
          been having issues with the app_java, I have been looking at
          app_mono and it seems to have better access to the variables,
          etc.   However, the SR.core.ModF only seems to take methods
          that do not take parameters.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Or for that matter, is there a way to
          return something back to the route in the config file which it
          can use to call send_reply?  I have a strange requirement to
          return 202 rather than 200 from subscription requests and a
          603 if it fails.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><span style="font-size:8.0pt"><a
              moz-do-not-send="true"
              href="mailto:tjohnson@microautomation.com"><span
                style="color:blue">Tom Johnson</span></a> |  Senior
            Software Engineer<br>
            O: 703-543-2118  |  F: 703-543-2099 <br>
            5870 Trinity Parkway, Suite 600, Centreville, VA  20120<br>
          </span><a moz-do-not-send="true"
            href="http://www.microautomation.com/"><span
              style="color:windowtext;text-decoration:none"><img
                id="Picture_x0020_1"
                src="cid:part2.05020609.08020004@gmail.com"
                alt="cid:image001.png@01CE18AF.8F231EB0" height="49"
                border="0" width="319"></span></a><span
            style="font-size:8.0pt;color:white"><br>
            <br>
          </span><o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Next Kamailio Advanced Trainings 2014 - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Sep 22-25, Berlin, Germany</pre>
  </body>
</html>