The api version of mod_lcr doesn't give you lcr_auto_route. You can do lcr 15555551212 default as xml 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 "|". I'd suggest transfering to the lcr/ endpoint instead. lcr/15555551212 The only way to get the channel var set is to use the application version of lcr. On Thu, Sep 9, 2010 at 2:49 PM, Nigel Kent <ktngl@yahoo.co.uk> wrote:
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.
My question is how do I acces the variable ${lcr_auto_route} from esl.
Previously in my script I have used this method to get variables which was set earlier in the script
@con.api("uuid_getvar", "#{@uuid} myvarible").getBody
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
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -Rupa