It is streamed to you over ESL.<br><br><div class="gmail_quote">On Fri, Sep 10, 2010 at 6:54 AM, 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">thanks<div><br></div><div>I meant how does Freeswitch save "as xml" data and what is the way to access it<div class="im">
<br><br>--- On <b>Fri, 10/9/10, Rupa Schomaker <i><<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px">
<div class="im"><br>From: Rupa Schomaker <<a href="mailto:rupa@rupa.com" target="_blank">rupa@rupa.com</a>><br>Subject: Re: [Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
</div>Date: Friday, 10 September, 2010, 11:19<div><div></div><div class="h5"><br><br><div><br><br><div>On Fri, Sep 10, 2010 at 5:27 AM, Nigel Kent <span dir="ltr"><<a rel="nofollow" href="http://mc/compose?to=ktngl@yahoo.co.uk" target="_blank">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"><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 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 style="font-size:small"> </span></div></div></div></div></td></tr></tbody></table>
</blockquote><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"><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 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><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 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" href="http://mc/compose?to=rupa@rupa.com" target="_blank">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" href="http://mc/compose?to=rupa@rupa.com" target="_blank">rupa@rupa.com</a>><br>
Subject: Re:
[Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" <<a rel="nofollow" href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>><br>
Date: Thursday, 9 September, 2010, 23:21<div>
<div></div><div><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" href="http://mc/compose?to=ktngl@yahoo.co.uk" target="_blank">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 style="font-size:small"><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></div></div><div class="im">-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div></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>