<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv2108825095"><table id="yiv2108825095bodyDrftID" class="yiv2108825095" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv2108825095drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none; font-family: arial; font-size: 10pt;">My code is set to receiving events as type plain. Changing the event type to xml makes the existing code not work . Is there a way&nbsp; I can use lcr with is scenario?<br><br>--- On <b>Fri, 10/9/10, Rupa Schomaker <i>&lt;rupa@rupa.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rupa Schomaker &lt;rupa@rupa.com&gt;<br>Subject: Re: [Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH
 Users Help" &lt;freeswitch-users@lists.freeswitch.org&gt;<br>Date: Friday, 10 September, 2010, 13:13<br><br><div id="yiv2108825095yiv480434881">It is streamed to you over ESL.<br><br><div class="yiv2108825095yiv480434881gmail_quote">On Fri, Sep 10, 2010 at 6:54 AM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote class="yiv2108825095yiv480434881gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">thanks<div><br></div><div>I meant how does Freeswitch save "as xml" data and what is the way to access it<div class="yiv2108825095yiv480434881im">
<br><br>--- On <b>Fri, 10/9/10, Rupa Schomaker <i>&lt;<a rel="nofollow">rupa@rupa.com</a>&gt;</i></b> wrote:<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">
<div class="yiv2108825095yiv480434881im"><br>From: Rupa Schomaker &lt;<a rel="nofollow">rupa@rupa.com</a>&gt;<br>Subject: Re: [Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
</div>Date: Friday, 10 September, 2010, 11:19<div><div></div><div class="yiv2108825095yiv480434881h5"><br><br><div><br><br><div>On Fri, Sep 10, 2010 at 5:27 AM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top"><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,&nbsp;do you mean when used from event socket.&nbsp;</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. &nbsp;</div><div>&nbsp;</div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top"><div><div><div><div><span style="font-size: small;">&nbsp;</span></div></div></div></div></td></tr></tbody></table>
</blockquote><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top"><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>&nbsp;</div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">
<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. &nbsp;If you don't specify one then default is the profile used. &nbsp;However, in order to specify "as xml" a profile name must be specified. &nbsp;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>&nbsp;</div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top"><div><div><div><br></div><div><br></div></div>--- On <b>Thu, 9/9/10, Rupa Schomaker <i>&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=rupa@rupa.com">rupa@rupa.com</a>&gt;</i></b> wrote:<br>

<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rupa Schomaker &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=rupa@rupa.com">rupa@rupa.com</a>&gt;<br>
Subject: Re:
 [Freeswitch-users] get lcr channel variable from esl<br>To: "FreeSWITCH Users Help" &lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<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. &nbsp;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. &nbsp;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. &nbsp;</div>


<div><div><br></div><div>On Thu, Sep 9, 2010 at 2:49 PM, Nigel Kent <span dir="ltr">&lt;<a rel="nofollow" target="_blank" href="http://mc/compose?to=ktngl@yahoo.co.uk">ktngl@yahoo.co.uk</a>&gt;</span> wrote:<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit;" valign="top">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&nbsp; ${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="yiv2108825095yiv480434881im">-----Inline Attachment Follows-----<br><br><div>_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow" target="_blank" href="http://mc/compose?to=FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></div></blockquote></div></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="yiv2108825095plainMail">_______________________________________________<br>FreeSWITCH-users mailing list<br><a rel="nofollow">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></blockquote></td></tr></tbody></table></div></td></tr></table><br>