The api version of mod_lcr doesn't give you lcr_auto_route. You can do<div><br></div><div>lcr 15555551212 default as xml</div><div><br></div><div>and get the lcr info as xml which can then be parsed on the client side. To build the equivalent of lcr_auto_route you can concatenate all the dialstrings separated by "|".</div>
<div><br></div><div>I'd suggest transfering to the lcr/ endpoint instead.</div><div><br></div><div>lcr/15555551212</div><div><br></div><div>The only way to get the channel var set is to use the application version of lcr. </div>
<div><div class="gmail_quote"><br></div><div class="gmail_quote">On Thu, Sep 9, 2010 at 2:49 PM, Nigel Kent <span dir="ltr"><<a href="mailto:ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">I have used mod_lcr application in my esl script, digits are passed to mod_lcr and a dial string is found successfully as seen on the debug log.<br>
<br>My question is how do I acces the variable ${lcr_auto_route} from esl.<br><br>Previously in my script I have used this method to get variables which was set earlier in the script <br><br>@con.api("uuid_getvar", "#{@uuid} myvarible").getBody<br>
<br>However this is not working for lcr_auto_route. If I do@con.api("uuid_getvar", "#{@uuid} lcr_auto_route").getBody I get a _undef_ error<br></td></tr></tbody></table><br>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div>