Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] reload user data


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
juanbackson at gmail.com
Guest





PostPosted: Tue Aug 25, 2009 3:32 am    Post subject: [Freeswitch-users] reload user data Reply with quote

Hello,
 
I would like to dynamically add user to freeswitch.  If I add a new file to the directory dir, is there anyway to have freeswitch to read the new user xml file without having to restart freeswitch?
 
Other than using flat file, is there anyway to add user to freeswitch user api command?
 
Thanks,
JB
Back to top
krice at freeswitch.org
Guest





PostPosted: Tue Aug 25, 2009 3:38 am    Post subject: [Freeswitch-users] reload user data Reply with quote

You just need to reloadxml you don’t have to restart the whole thing. You can also use xml_curl to feed the users from a database see my contrib directory (contrib/swk) for some example scripts and db code From: Juan Backson <juanbackson@gmail.com> Reply-To: <freeswitch-users@lists.freeswitch.org> Date: Tue, 25 Aug 2009 16:21:58 +0800 To: <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] reload user data Hello,   I would like to dynamically add user to freeswitch.  If I add a new file to the directory dir, is there anyway to have freeswitch to read the new user xml file without having to restart freeswitch?   Other than using flat file, is there anyway to add user to freeswitch user api command?   Thanks, JB _______________________________________________ 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
Back to top
juanbackson at gmail.com
Guest





PostPosted: Tue Aug 25, 2009 4:35 am    Post subject: [Freeswitch-users] reload user data Reply with quote

Hi Ken,

xml_curl is a great idea.  Is there anyway to not having to setup another HTTP server?  For instance, can I have freeswitch to call an api or call a lua or php or c script that will return the xml response?  That way, I don't need to maintain yet another service.

Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice <krice@freeswitch.org (krice@freeswitch.org)> wrote:
Quote:
You just need to reloadxml you don’t have to restart the whole thing. You can also use xml_curl to feed the users from a database see my contrib directory (contrib/swk) for some example scripts and db code


From: Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)>
Reply-To: <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: [Freeswitch-users] reload user data


Hello,
 
I would like to dynamically add user to freeswitch.  If I add a new file to the directory dir, is there anyway to have freeswitch to read the new user xml file without having to restart freeswitch?
 
Other than using flat file, is there anyway to add user to freeswitch user api command?
 
Thanks,
JB



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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

Back to top
jim at evolutiontel.net
Guest





PostPosted: Tue Aug 25, 2009 4:35 am    Post subject: [Freeswitch-users] reload user data Reply with quote

Is this what you are after?

http://wiki.freeswitch.org/wiki/Mod_xml_odbc

Cheers,
Jim

On Tue, Aug 25, 2009 at 7:22 PM, Juan Backson<juanbackson@gmail.com> wrote:
Quote:
Hi Ken,

xml_curl is a great idea.  Is there anyway to not having to setup another
HTTP server?  For instance, can I have freeswitch to call an api or call a
lua or php or c script that will return the xml response?  That way, I don't
need to maintain yet another service.

Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice <krice@freeswitch.org> wrote:
Quote:

You just need to reloadxml you don’t have to restart the whole thing. You
can also use xml_curl to feed the users from a database see my contrib
directory (contrib/swk) for some example scripts and db code


________________________________
From: Juan Backson <juanbackson@gmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] reload user data

Hello,

I would like to dynamically add user to freeswitch.  If I add a new file
to the directory dir, is there anyway to have freeswitch to read the new
user xml file without having to restart freeswitch?

Other than using flat file, is there anyway to add user to freeswitch user
api command?

Thanks,
JB

________________________________
_______________________________________________
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

_______________________________________________
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



_______________________________________________
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





--
Jim Burke
Director Evolutiontel.
http://www.evolutiontel.net

_______________________________________________
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
Back to top
leon at scarlet-intern...
Guest





PostPosted: Tue Aug 25, 2009 5:05 am    Post subject: [Freeswitch-users] reload user data Reply with quote

Hi,

I wrote that module, but been on vacation for a while Smile It's not
really finished yet, but it worked well for generating user directory
xml..

Some things that still need to be done:
- Fix it so that reloadxml works
- Don't write the generated xml always to disk before returning it to fs
- Surely there are bugs that need to be fixed

Did anyone try it yet ? If so, what is your experience ?

Regards,

Leon




On Aug 25, 2009, at 11:30 AM, Jim Burke wrote:

Quote:
Is this what you are after?

http://wiki.freeswitch.org/wiki/Mod_xml_odbc

Cheers,
Jim

On Tue, Aug 25, 2009 at 7:22 PM, Juan Backson<juanbackson@gmail.com>
wrote:
Quote:
Hi Ken,

xml_curl is a great idea. Is there anyway to not having to setup
another
HTTP server? For instance, can I have freeswitch to call an api or
call a
lua or php or c script that will return the xml response? That
way, I don't
need to maintain yet another service.

Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice <krice@freeswitch.org>
wrote:
Quote:

You just need to reloadxml you don’t have to restart the whole
thing. You
can also use xml_curl to feed the users from a database see my
contrib
directory (contrib/swk) for some example scripts and db code


________________________________
From: Juan Backson <juanbackson@gmail.com>
Reply-To: <freeswitch-users@lists.freeswitch.org>
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] reload user data

Hello,

I would like to dynamically add user to freeswitch. If I add a
new file
to the directory dir, is there anyway to have freeswitch to read
the new
user xml file without having to restart freeswitch?

Other than using flat file, is there anyway to add user to
freeswitch user
api command?

Thanks,
JB

________________________________
_______________________________________________
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

_______________________________________________
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



_______________________________________________
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





--
Jim Burke
Director Evolutiontel.
http://www.evolutiontel.net

_______________________________________________
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


_______________________________________________
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
Back to top
mike at jerris.com
Guest





PostPosted: Tue Aug 25, 2009 10:38 am    Post subject: [Freeswitch-users] reload user data Reply with quote

You can also do xml config hooks in perl and some of the other embedded languages.

Mike

On Aug 25, 2009, at 5:22 AM, Juan Backson wrote:
Quote:
Hi Ken,

xml_curl is a great idea. Is there anyway to not having to setup another HTTP server? For instance, can I have freeswitch to call an api or call a lua or php or c script that will return the xml response? That way, I don't need to maintain yet another service.

Thanks,
JB

On Tue, Aug 25, 2009 at 4:30 PM, Ken Rice <krice@freeswitch.org (krice@freeswitch.org)> wrote:
Quote:
You just need to reloadxml you don’t have to restart the whole thing. You can also use xml_curl to feed the users from a database see my contrib directory (contrib/swk) for some example scripts and db code


From: Juan Backson <juanbackson@gmail.com (juanbackson@gmail.com)>
Reply-To: <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Date: Tue, 25 Aug 2009 16:21:58 +0800
To: <freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)>
Subject: [Freeswitch-users] reload user data


Hello,

I would like to dynamically add user to freeswitch. If I add a new file to the directory dir, is there anyway to have freeswitch to read the new user xml file without having to restart freeswitch?

Other than using flat file, is there anyway to add user to freeswitch user api command?

Thanks,
JB




Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Aug 25, 2009 11:24 am    Post subject: [Freeswitch-users] reload user data Reply with quote

On Tue, Aug 25, 2009 at 8:29 AM, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
Quote:
You can also do xml config hooks in perl and some of the other embedded languages.


FYI, here's a page to go you started:
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML



-MC
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services