<div dir="ltr">sir ,i want to know how to write a lua script for recording a call...<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Sep 6, 2014 at 6:56 PM,  <span dir="ltr">&lt;<a href="mailto:freeswitch-users-request@lists.freeswitch.org" target="_blank">freeswitch-users-request@lists.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">Send FreeSWITCH-users mailing list submissions to<br>
        <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:freeswitch-users-request@lists.freeswitch.org">freeswitch-users-request@lists.freeswitch.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:freeswitch-users-owner@lists.freeswitch.org">freeswitch-users-owner@lists.freeswitch.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of FreeSWITCH-users digest...&quot;<br>
<br>Today&#39;s Topics:<br>
<br>
   1. Re: Where can I find the documentation for mod_xml_curl<br>
      biding=directory api (Michael Collins)<br>
   2. Re: Where can I find the documentation for mod_xml_curl<br>
      biding=directory api (Cal Leeming [<a href="http://iops.io" target="_blank">iops.io</a>])<br>
   3. Re: Where can I find the documentation for mod_xml_curl<br>
      biding=directory api (Yosi Taguri)<br>
<br><br>---------- Forwarded message ----------<br>From: Michael Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Fri, 5 Sep 2014 15:08:10 -0700<br>Subject: Re: [Freeswitch-users] Where can I find the documentation for mod_xml_curl biding=directory api<br><div dir="ltr"><div>I&#39;m not sure it&#39;s that complicated. FWIW, in the FreeSWITCH 1.2 book there is a good explanation starting on page 220. The wiki page you reference looks like it&#39;s still a work in progress so I would check the <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory" target="_blank">old wiki mod_xml_curl page</a> for possible other information. However, as long as the request has enough information for your server to act upon and respond with the appropriate XML then you&#39;re good. If you still feel like there&#39;s something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn&#39;t find on the wiki.<br><br></div><div>-MC<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <span dir="ltr">&lt;<a href="mailto:yosi@taguri.com" target="_blank">yosi@taguri.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I want to implement the directory binding using a web service like documented in : <a href="https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl" target="_blank">https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl</a></div><div><br></div><div>I&#39;m missing the api documentation that is expected to be implemented by the webservice. On the web I found some old samples but none of them contained the details for the api.</div><div><br></div><div>Did anyone implement this on their system and can share the api documentation they found?</div><div><br></div><div>Thanks,</div>
</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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></div>
<br><br>---------- Forwarded message ----------<br>From: &quot;Cal Leeming [<a href="http://iops.io">iops.io</a>]&quot; &lt;<a href="mailto:cal@iops.io">cal@iops.io</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Sat, 6 Sep 2014 12:15:02 +0100<br>Subject: Re: [Freeswitch-users] Where can I find the documentation for mod_xml_curl biding=directory api<br><div dir="ltr">I&#39;m also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation.<div><br></div><div>I re-wrote those docs a year or two ago, but reading back over them now, they are not as clear as they should be.</div><div><br></div><div>The difficulty is not getting mod_xml_curl configured, it&#39;s understanding how to properly interpret the result. I&#39;ve done my best to list which variables to expect in which scenarios, but ultimately it depends on your use case. For example, things get very tricky when you start doing transfers, you have to inspect different variables for your values depending on the context in which it&#39;s being called. And it gets even harder when you go into multi-tenancy. If you have any specific questions about this, feel free to ask.</div><div><br></div><div>My best advice would be to unit test the crap out of it, and generate a bunch of test traffic by using something like [1]. I spent several months writing an API parser for this, and I still wasn&#39;t happy with the end result (it&#39;s on my todo to re-write this and public release). </div><div><br></div><div>Cal</div><div><br></div><div>[1] <a href="http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/" target="_blank">http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 11:08 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>I&#39;m not sure it&#39;s that complicated. FWIW, in the FreeSWITCH 1.2 book there is a good explanation starting on page 220. The wiki page you reference looks like it&#39;s still a work in progress so I would check the <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory" target="_blank">old wiki mod_xml_curl page</a> for possible other information. However, as long as the request has enough information for your server to act upon and respond with the appropriate XML then you&#39;re good. If you still feel like there&#39;s something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn&#39;t find on the wiki.<br><br></div><div>-MC<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <span dir="ltr">&lt;<a href="mailto:yosi@taguri.com" target="_blank">yosi@taguri.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div>I want to implement the directory binding using a web service like documented in : <a href="https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl" target="_blank">https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl</a></div><div><br></div><div>I&#39;m missing the api documentation that is expected to be implemented by the webservice. On the web I found some old samples but none of them contained the details for the api.</div><div><br></div><div>Did anyone implement this on their system and can share the api documentation they found?</div><div><br></div><div>Thanks,</div>
</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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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>
<br><br>---------- Forwarded message ----------<br>From: Yosi Taguri &lt;<a href="mailto:yosi@taguri.com">yosi@taguri.com</a>&gt;<br>To: FreeSWITCH Users Help &lt;<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>Cc: <br>Date: Sat, 6 Sep 2014 15:39:55 +0300<br>Subject: Re: [Freeswitch-users] Where can I find the documentation for mod_xml_curl biding=directory api<br><div dir="ltr">Hi Cal,<div>First thank you very much for contributing!</div><div><br></div><div>My end goal is simple, to be able to authenticate user from credentials in my database (Redis) and only that.</div><div>So in that respect mod_xml_curl known how to do many many things, I&#39;m looking for the directory binding.</div><div><br></div><div>So I think what would make it easier is simply listing some of the endpoints that my web server is supposed to implement:</div><div>1. Which urls gets called and how (get, post). </div><div>2. When is each url gets called.</div><div>3. What parameters each call is expecting.</div><div>4. Sample responses for each call.</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Sep 6, 2014 at 2:15 PM, Cal Leeming [<a href="http://iops.io" target="_blank">iops.io</a>] <span dir="ltr">&lt;<a href="mailto:cal@iops.io" target="_blank">cal@iops.io</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">I&#39;m also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation.<div><br></div><div>I re-wrote those docs a year or two ago, but reading back over them now, they are not as clear as they should be.</div><div><br></div><div>The difficulty is not getting mod_xml_curl configured, it&#39;s understanding how to properly interpret the result. I&#39;ve done my best to list which variables to expect in which scenarios, but ultimately it depends on your use case. For example, things get very tricky when you start doing transfers, you have to inspect different variables for your values depending on the context in which it&#39;s being called. And it gets even harder when you go into multi-tenancy. If you have any specific questions about this, feel free to ask.</div><div><br></div><div>My best advice would be to unit test the crap out of it, and generate a bunch of test traffic by using something like [1]. I spent several months writing an API parser for this, and I still wasn&#39;t happy with the end result (it&#39;s on my todo to re-write this and public release). </div><div><br></div><div>Cal</div><div><br></div><div>[1] <a href="http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/" target="_blank">http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/</a></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 11:08 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>I&#39;m not sure it&#39;s that complicated. FWIW, in the FreeSWITCH 1.2 book there is a good explanation starting on page 220. The wiki page you reference looks like it&#39;s still a work in progress so I would check the <a href="https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory" target="_blank">old wiki mod_xml_curl page</a> for possible other information. However, as long as the request has enough information for your server to act upon and respond with the appropriate XML then you&#39;re good. If you still feel like there&#39;s something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn&#39;t find on the wiki.<br><br></div><div>-MC<br></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <span dir="ltr">&lt;<a href="mailto:yosi@taguri.com" target="_blank">yosi@taguri.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div><div dir="ltr"><div>I want to implement the directory binding using a web service like documented in : <a href="https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl" target="_blank">https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl</a></div><div><br></div><div>I&#39;m missing the api documentation that is expected to be implemented by the webservice. On the web I found some old samples but none of them contained the details for the api.</div><div><br></div><div>Did anyone implement this on their system and can share the api documentation they found?</div><div><br></div><div>Thanks,</div>
</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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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></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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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>
<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>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.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>
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><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><br></div>Yosi Taguri | Founder &amp; CTO | Yalo | <a href="http://t.signauxtrois.com/link?url=http%3A%2F%2Fyaloapp.com%2F&amp;ukey=agxzfnNpZ25hbHNjcnhyGAsSC1VzZXJQcm9maWxlGICAwIOM0uoIDA&amp;k=c5aad0c6-c460-4cdc-fe8f-522ec00fa1ee" target="_blank">http://yaloapp.com</a> | Mobile: +972-54-4816020 | Google Voice US Mobile: +1 (415) 935-1126 | Email: <a href="mailto:yosi@taguri.com" target="_blank">yosi@taguri.com</a> <br><br><br></div>
</div><img src="http://t.signauxtrois.com/img.gif?ukey=agxzfnNpZ25hbHNjcnhyGAsSC1VzZXJQcm9maWxlGICAwIOM0uoIDA&amp;key=9c0f14ca-6280-4d9e-c994-3ae67e2e42dd" height="1" width="1"></div>
<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>