<p>Experimenting janssonrpc-c, I noticed that I can't get anythin in the result variable, if no "route" option is specified.<br>
1/ With "route" option, everything is OK:<br>
janssonrpc_request("local", "bar.PIC1", '{"cli": "$avp(cli)","en": "$avp(cld)"}', "route=RPC_Init_Resp,retry=1");<br>
route[RPC_Init_Resp] {<br>
xlog("JANSSON result:  $var(result)\n");</p>

<p>The "xlog" returns the json formatted results as expected:<br>
JANSSON result:  {"result":{"NetScenario":"PreCall","cli":"123456789","en":"9876543210Destination":"sip:<a href="mailto:xxx@xx.x.xx.xxx">xxx@xx.x.xx.xxx</a>:xxxx","NextRPC":"bar.PIC2"}}</p>

<p>2/ The exact same request, without the route option does not return anything:<br>
janssonrpc_request("local", "bar.PIC1", '{"cli": "$avp(cli)","en": "$avp(cld)"}');<br>
xlog("JANSSON result:  $var(result)\n");</p>

<p>The "xlog" returns 0 this time:<br>
JANSSON result:  0</p>

<p>A tshark trace indicates the same response is returned by the jsonrpc server, excluding a potential issue on this side.</p>

<p>I am available for futher information<br>
Best regards,</p>

<p>Laurent.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/256">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZUK_-tme3hV_GX4oRjjZfbxQ3DVLks5ofOfkgaJpZM4Fb6uL.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/256"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>