Where can I find the documentation for mod_xml_curl biding=directory api
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl I'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. Did anyone implement this on their system and can share the api documentation they found? Thanks,
I'm not sure it'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's still a work in progress so I would check the old wiki mod_xml_curl page <https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory> 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're good. If you still feel like there's something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn't find on the wiki. -MC On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <yosi@taguri.com> wrote:
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl
I'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.
Did anyone implement this on their system and can share the api documentation they found?
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I'm also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation. 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. The difficulty is not getting mod_xml_curl configured, it's understanding how to properly interpret the result. I'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'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. 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't happy with the end result (it's on my todo to re-write this and public release). Cal [1] http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/ On Fri, Sep 5, 2014 at 11:08 PM, Michael Collins <msc@freeswitch.org> wrote:
I'm not sure it'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's still a work in progress so I would check the old wiki mod_xml_curl page <https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory> 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're good. If you still feel like there's something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn't find on the wiki.
-MC
On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <yosi@taguri.com> wrote:
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl
I'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.
Did anyone implement this on their system and can share the api documentation they found?
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Cal, First thank you very much for contributing! My end goal is simple, to be able to authenticate user from credentials in my database (Redis) and only that. So in that respect mod_xml_curl known how to do many many things, I'm looking for the directory binding. So I think what would make it easier is simply listing some of the endpoints that my web server is supposed to implement: 1. Which urls gets called and how (get, post). 2. When is each url gets called. 3. What parameters each call is expecting. 4. Sample responses for each call. On Sat, Sep 6, 2014 at 2:15 PM, Cal Leeming [iops.io] <cal@iops.io> wrote:
I'm also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation.
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.
The difficulty is not getting mod_xml_curl configured, it's understanding how to properly interpret the result. I'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'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.
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't happy with the end result (it's on my todo to re-write this and public release).
Cal
[1] http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/
On Fri, Sep 5, 2014 at 11:08 PM, Michael Collins <msc@freeswitch.org> wrote:
I'm not sure it'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's still a work in progress so I would check the old wiki mod_xml_curl page <https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory> 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're good. If you still feel like there's something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn't find on the wiki.
-MC
On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <yosi@taguri.com> wrote:
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl
I'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.
Did anyone implement this on their system and can share the api documentation they found?
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Yosi Taguri | Founder & CTO | Yalo | http://yaloapp.com <http://t.signauxtrois.com/link?url=http%3A%2F%2Fyaloapp.com%2F&ukey=agxzfnNpZ25hbHNjcnhyGAsSC1VzZXJQcm9maWxlGICAwIOM0uoIDA&k=c5aad0c6-c460-4cdc-fe8f-522ec00fa1ee> | Mobile: +972-54-4816020 | Google Voice US Mobile: +1 (415) 935-1126 | Email: yosi@taguri.com
Maybe you could kindly transition it to confluence? I've added sleepycal to the confluence editors group ;) On Sat, Sep 6, 2014 at 6:15 AM, Cal Leeming [iops.io] <cal@iops.io> wrote:
I'm also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation.
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.
The difficulty is not getting mod_xml_curl configured, it's understanding how to properly interpret the result. I'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'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.
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't happy with the end result (it's on my todo to re-write this and public release).
Cal
[1] http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/
On Fri, Sep 5, 2014 at 11:08 PM, Michael Collins <msc@freeswitch.org> wrote:
I'm not sure it'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's still a work in progress so I would check the old wiki mod_xml_curl page <https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory> 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're good. If you still feel like there's something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn't find on the wiki.
-MC
On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <yosi@taguri.com> wrote:
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl
I'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.
Did anyone implement this on their system and can share the api documentation they found?
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Shamefully I didn't even know we had a confluence wiki, been working on a non-voip project for about 6 months now :( I'll get this done - thanks for the heads up! Cal On Sat, Sep 6, 2014 at 8:35 PM, Brian West <brian@freeswitch.org> wrote:
Maybe you could kindly transition it to confluence? I've added sleepycal to the confluence editors group ;)
On Sat, Sep 6, 2014 at 6:15 AM, Cal Leeming [iops.io] <cal@iops.io> wrote:
I'm also happy to answer any questions about mod_xml_curl or take suggestions on how to improve the documentation.
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.
The difficulty is not getting mod_xml_curl configured, it's understanding how to properly interpret the result. I'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'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.
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't happy with the end result (it's on my todo to re-write this and public release).
Cal
[1] http://iops.io/blog/better-approach-multi-tenant-sip-testing-part-1/
On Fri, Sep 5, 2014 at 11:08 PM, Michael Collins <msc@freeswitch.org> wrote:
I'm not sure it'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's still a work in progress so I would check the old wiki mod_xml_curl page <https://wiki.freeswitch.org/wiki/Mod_xml_curl#Section:_directory> 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're good. If you still feel like there's something lacking for documentation then perhaps you could pose a very specific question here whose answer you didn't find on the wiki.
-MC
On Fri, Sep 5, 2014 at 4:23 AM, Yosi Taguri <yosi@taguri.com> wrote:
I want to implement the directory binding using a web service like documented in : https://confluence.freeswitch.org/display/FREESWITCH/mod_xml_curl
I'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.
Did anyone implement this on their system and can share the api documentation they found?
Thanks,
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Sun, Sep 7, 2014 at 4:57 AM, Cal Leeming [iops.io] <cal@iops.io> wrote:
Shamefully I didn't even know we had a confluence wiki, been working on a non-voip project for about 6 months now :(
You're right - that is quite shameful! ;) No worries, the docs team is slowly but steadily building up the Confluence-based wiki. Any help you can offer would be greatly appreciated I'm sure. -MC
I'll get this done - thanks for the heads up!
Cal
participants (4)
-
Brian West
-
Cal Leeming [iops.io]
-
Michael Collins
-
Yosi Taguri