<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">thanks<div><br></div><div>I meant how does Freeswitch save "as xml" data and what is the way to access it<br><br>--- On <b>Fri, 10/9/10, Rupa Schomaker <i><rupa@rupa.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rupa Schomaker <rupa@rupa.com><br>Subject: Re: [Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org><br>Date: Friday, 10 September, 2010, 11:19<br><br><div id="yiv316421528"><br><br><div class="yiv316421528gmail_quote">On Fri, Sep 10, 2010 at 5:27 AM, Nigel Kent <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ktngl@yahoo.co.uk" target="_blank" href="/mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>></span> wrote:<br><blockquote class="yiv316421528gmail_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;"><div><div><div><div>Hi</div><div><br></div><div>I am not clear when you say api version because I am calling lcr through the esl @con.execute method, do you mean when used from event socket. </div>
</div></div></div></td></tr></tbody></table></blockquote><div><br></div><div>API version is the version that is used via event socket and is what you get when called from the fs_cli or console. </div><div> </div><blockquote class="yiv316421528gmail_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;"><div><div><div><div><span class="yiv316421528Apple-style-span" style="font-size:small;"> </span></div></div></div></div></td></tr></tbody></table>
</blockquote><blockquote class="yiv316421528gmail_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;"><div><div>
<div><div></div><div>If that is the case then I think I would need to look into the as xml option because I am doing everthing from event socket.</div></div></div></div></td></tr></tbody></table></blockquote><div><br></div>
<div>Right.</div><div> </div><blockquote class="yiv316421528gmail_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;">
<div><div><div><div>What is does 'default' set and which module is needed to handle xml because I have not used xml for any other part of my code</div><div class="yiv316421528im"><div><br></div><div>lcr 15555551212 default as xml</div>
</div></div></div></div></td></tr></tbody></table></blockquote><div><br></div><div>the "default" is the lcr profile you are using. If you don't specify one then default is the profile used. However, in order to specify "as xml" a profile name must be specified. In this case I suggested default.</div>
<div><br></div><div>As for module to process the xml, that depends on what language you are using on the client side, no?</div><div> </div><blockquote class="yiv316421528gmail_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;"><div><div><div><br></div><div><br></div></div>--- On <b>Thu, 9/9/10, Rupa Schomaker <i><<a rel="nofollow" ymailto="mailto:rupa@rupa.com" target="_blank" href="/mc/compose?to=rupa@rupa.com">rupa@rupa.com</a>></i></b> wrote:<br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Rupa Schomaker <<a rel="nofollow" ymailto="mailto:rupa@rupa.com" target="_blank" href="/mc/compose?to=rupa@rupa.com">rupa@rupa.com</a>><br>Subject: Re:
[Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" <<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="/mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>Date: Thursday, 9 September, 2010, 23:21<div>
<div></div><div class="yiv316421528h5"><br><br><div>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><br></div><div>On Thu, Sep 9, 2010 at 2:49 PM, Nigel Kent <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>></span> wrote:<br><blockquote 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><span class="yiv316421528Apple-style-span" style="font-size:small;"><span class="yiv316421528Apple-style-span" style="font-size:medium;"><br>
</span></span></blockquote></div></div></div></div></div></blockquote></div></td></tr></tbody></table></blockquote></div>-- <br>-Rupa<br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="/mc/compose?to=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></div></blockquote></div></td></tr></table><br>