<div dir="ltr">Hi Michael<div style>I already have the Freeswitch 1.2 book and it&#39;s been a great help so far (without it i&#39;d be lost completely).</div><div style>But even after reading the book I&#39;m not sure how to answer my second question (the one about correlating the originate call with later mod_httapi callback).</div>
<div style>Of course I could use the destination phone number as a correlation ID but this can cause some problems in future when the processes become more complex.</div><div style>So, to be more specific, i&#39;d like to share some unique ID between the originate ESL call and  mod_httapi callback later so I can identify these two calls as belonging to same process in my application.</div>
<div style>The session_id would be a nice candidate but i don&#39;t know if it&#39;s possible to get the session_id from the originate call. If not, maybe I could set some custom variable in the originate call so that the same variable would be sent back to me by mod_httapi? Do you have some &#39;best practices&#39; for such situation?</div>
<div style><br></div><div style>Rafal</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 9:51 PM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Welcome to FreeSWITCH!<br><br>Yes, inbound ESL is fine for originating the call. I recommend doing some tests with originate and dumping all of the information that comes into the HTTAPI request so that you can get an idea of what values you have to choose from.<br>

<br></div>As a shameless plug I will highly recommend the <a href="http://link.packtpub.com/nuIOlX" target="_blank">FreeSWITCH Cookbook</a> and <a href="http://www.packtpub.com/freeswitch-1-2/book" target="_blank">FreeSWITCH 1.2</a> book. They will get you up and running as quickly as possible.<br>

<br>Thanks,<br>Michael<br> <br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Jun 6, 2013 at 12:18 PM, Rafal Gwizdala <span dir="ltr">&lt;<a href="mailto:rafal.gwizdala@gmail.com" target="_blank">rafal.gwizdala@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><br><div class="gmail_quote"><br><div dir="ltr">Hi, i&#39;m just beginning to learn FreeSwitch and have a quick question to you<div>

I want to implement an automated IVR-like service that will be used for calling selected customers and performing a survey/collecting some data from them.</div>

<div>I decided to use mod_httapi for handling the calls, but since my application will be calling the customers I need to initiate the call too.</div><div>I&#39;d like to do that using an inbound event socket, by sending &#39;originate&#39; command.</div>



<div>And my questions are:</div><div>1. Is this a correct approach, or maybe there&#39;s a better method of initiating such call?</div><div>2. How to pass some correlation id when originating the call so that it would be delivered back to my application with mod_httapi request? I just need to correlate the initiation of the call with the call handler code that will be invoked later.</div>



<div><br></div><div>Thanks and best regards</div><span><font color="#888888"><span><font color="#888888"><div>Rafal</div><div><br></div></font></span></font></span></div>
</div><br></div>
<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>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <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>