<div dir="ltr">Hi Sir,<div>Thanks a ton for the patch, I was just trying to figure out this "switch_channel_set_variable" functionality. Just one quick noob question, how can this variable be accessed? Isn't the dialplan blocking when we execute the valet_park. </div>
<div><br></div><div>I've a distributed Parking lot scenario in multiple FS Servers so this can save my lua code processing alot.</div><div><br></div><div>Thank You,</div><div>Sammy</div><div><br></div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 10:52 AM, Michael Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">If a channel variable would make your life easier then I recommend trying the patch I just did. Quite literally it's one line plus a blank line for readability. I've attached it so you can download it without all the email formatting, but for the sake of future searches here it is:<br>
<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 10:38 AM, SamyGo <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi again,<div><br></div><div>I've found out exactly the same situation with another user at this thread:</div>
<div><a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2012-December/090044.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2012-December/090044.html</a><br>
</div><div><br></div><div>Using '<span>valet_info' </span>might probably not be 100% workable for me as I have to deal with a parking lot distributed among 2 or more FreeSWITCH Servers. The SIP proxy might load balance and send a parking request to server-C and hence pulling out an XML from server-A or B won't help in determining that a particular parking lot position is already in use.<br>
</div><div><br></div><div>I think I'll have to do the manual parking algorithm as I used previously and Nitin Tomer in the above mentioned thread tried the same as well suing his test.lua code.</div><div><br></div><div>
Any new ideas are always welcome.</div><div><br></div><div>Thanks,</div><div>Sammy</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 10:26 AM, SamyGo <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mike, <div><br></div><div>I'll take a look at the source code or the other way as discussed in previous mailing-list thread is using ESL to capture the parking event and do as required.<div>
<br></div>
<div>
I can't imagine to access a variable after I park the call, could there be anything like execute_on_answer, or api_on_bridge..something like execute_on_park so that whenever a call is parked user has the control to perform some lua code or anyother XML dialplan where the event variables are accessible to be played with?</div>
<div><br></div><div>Its been long time but now I'm recalling that for distributed parking lots among multiple Asterisk servers I had to share a common memcache table where I manually loop from starting parking extension and using a parking slot which is not already saved there.</div>
<div><br></div><div>Please share your thoughts.</div><div><br></div><div>Thanks,</div><div>Sammy</div><div><br></div><div><div><br></div></div></div></div><div><div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Mon, Jul 22, 2013 at 9:41 AM, Michael Jerris <span dir="ltr"><<a href="mailto:mike@jerris.com" target="_blank">mike@jerris.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There isn't one right now, just an event. you could add it right near where that event is at mod_valet_parking.c:645.<br>
<br>
Mike<br>
<div><div><br>
On Jul 22, 2013, at 12:30 PM, SamyGo <<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>> wrote:<br>
<br>
> Dear Users,<br>
><br>
> I've my valet_parking working very well, now I need to know which parking lot my call got parked at in a variable.<br>
><br>
> I need that variable in order to save it in memcache for my SIP proxy to know which FS Server to route the call to for a particular parked call retrieval.<br>
><br>
> Any help would be really appreciated.<br>
><br>
> Thanks,<br>
> Sammy.<br>
<br>
</div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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>
<br></blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</font></span></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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></div>