<div>Hi again <img style="MARGIN: 0px 0.2ex; VERTICAL-ALIGN: middle" src="cid:330@goomoji.gmail" width="12" height="12" goomoji="330">,</div>
<div> </div>
<div>Simple question,</div>
<div> </div>
<div>In the dialplan there is a Local_Extension to handle calls.</div>
<div> </div>
<div>In this example, you have an action;</div>
<div> </div>
<div><strong><action application="set" data="ringback=${us-ring}"/></strong></div>
<div> </div>
<div>As api command (from ESL java outbound example) I put this like;</div>
<div> </div>
<div><font>
<p align="left">String result = doAction(</p></font><font color="#2a00ff"><font color="#2a00ff">"global_getvar"</font></font><font>, </font><font color="#2a00ff"><font color="#2a00ff">"us-ring"</font></font><font>);// using CLI (inbound), result <font><strong>%(2000,4000,440,480)</strong> as defined in vars.xml</font>
<p align="left"></p>
<p align="left">SendMsg sendMsg = </p></font><b><font color="#7f0055"><font color="#7f0055">new</font></font></b><font> SendMsg();
<p align="left">sendMsg.addCallCommand(</p></font><font color="#2a00ff"><font color="#2a00ff">"execute"</font></font><font>);
<p align="left">sendMsg.addExecuteAppName(</p></font><font color="#2a00ff"><font color="#2a00ff">"set"</font></font><font>);
<p>sendMsg.addExecuteAppArg(</p></font><font color="#2a00ff"><font color="#2a00ff">"ringback="</font></font><font> + result);</font>
<p><font>but I don't hear sound. I don't know if the string argument "${us-string}", can be parsed directly.</font></p>
<p><font>I tried everything but no sound.</font></p>
<p><font>Only thing that I got working is by using "execute" and "ring_ready"</font></p>
<p><font>What I'm doing wrong with ringback argument?</font></p>
<p><font>Kind regards,</font></p>
<p><font>Peter</font></p></div>