Hello *'s, First Of all Marry Christmas, I want to setup asterisk at large means "my main asterisk server placed in my office(in Pakistan), and some offices outside Pakistan and i want to connect these locations to my main * server (in Pakistan) on remote locations i'll used asterisk can i do this or may be i changed my plans kindly guides me. Thanks In Advance. Adnan Ahmed.
> Hello *'s, > First Of all Marry Christmas, > I want to setup asterisk at large means "my main asterisk server placed > in my office(in Pakistan), and some offices outside Pakistan and i want > to connect these locations to my main * server (in Pakistan) on remote > locations i'll used asterisk can i do this or may be i changed my plansYes you can. Register your remote servers to your main server and choose different numbers for different Asterisk servers. Detailed informations are available at http://www.voip-info.org/wiki-Asterisk+-+dual+servers Regards Lamine> kindly guides me. > > Thanks In Advance. > Adnan Ahmed. >
Hi Group, I was able to install Asterisk and its addons successfully. Now I want to eliminate sip.conf and extensions.conf and use everything from Mysql DB, Is this possible? I have seen this page http://www.voip-info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql and learnt that we still get the data from Mysql DB and write it as sub file to actual sip or extensions.conf before starting Asterisk. Can we eliminate config files completely? If it is possible then please point me to the links explaing how can we do this? I also found very less information on using Asterisk with Mysql, if there are any articles discussing this please send me those links. Thanks for your help all the time, Manoj.
Hi Group, Please read my previous message below, I want to configure Asterisk with Mysql and make Asterisk dynamic so that Asterisk will read everything from Mysql and we can make changes to mysql data directly. Please tell how can we do this and point me to related documentation. Thanks for your help and time, Manoj. Quoting mkumar@mantragroup.com:> Hi Group, > > I was able to install Asterisk and its addons successfully. Now I want to > eliminate sip.conf and extensions.conf and use everything from Mysql DB, Is > this possible? I have seen this page > > http://www.voip-info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql > > and learnt that we still get the data from Mysql DB and write it as > sub file to > actual sip or extensions.conf before starting Asterisk. Can we > eliminate config > files completely? If it is possible then please point me to the links > explaing > how can we do this? I also found very less information on using Asterisk with > Mysql, if there are any articles discussing this please send me those links. > > Thanks for your help all the time, > Manoj. >
Can you explain why you would want asterisk only thru realtime? and not thru the /etc/asterisk/ ? The wiki is located at: http://www.voip-info.org/ the archives for this list is located at: http://lists.digium.com/ The asterisk irc channel is at: irc://irc.freenode.net/#asterisk Google is located at: http://www.google.com/ The asterisk docs project is located at: http://www.asteriskdocs.org/ On 3/2/06, mkumar@mantragroup.com <mkumar@mantragroup.com> wrote:> Hi Group, > > Please read my previous message below, I want to configure Asterisk with Mysql > and make Asterisk dynamic so that Asterisk will read everything from Mysql and > we can make changes to mysql data directly. Please tell how can we do this and > point me to related documentation. > > Thanks for your help and time, > Manoj. > > Quoting mkumar@mantragroup.com: > > > Hi Group, > > > > I was able to install Asterisk and its addons successfully. Now I want to > > eliminate sip.conf and extensions.conf and use everything from Mysql DB, Is > > this possible? I have seen this page > > > > http://www.voip-info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql > > > > and learnt that we still get the data from Mysql DB and write it as > > sub file to > > actual sip or extensions.conf before starting Asterisk. Can we > > eliminate config > > files completely? If it is possible then please point me to the links > > explaing > > how can we do this? I also found very less information on using Asterisk with > > Mysql, if there are any articles discussing this please send me those links. > > > > Thanks for your help all the time, > > Manoj. > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Yikes. Managability! It's a lot easier to manage multiple Asterisk systems configuration from a single MySQL database then it is to manage .conf files on several redundant Asterisk boxes. I can't believe you asked that question. I'll apologise in advance because I must be missing part of this thread. -----Original Message----- From: C F [mailto:shmaltz@gmail.com] Sent: Thursday, March 02, 2006 10:16 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Re: Asterisk at large Can you explain why you would want asterisk only thru realtime? and not thru the /etc/asterisk/ ? The wiki is located at: http://www.voip-info.org/ the archives for this list is located at: http://lists.digium.com/ The asterisk irc channel is at: irc://irc.freenode.net/#asterisk Google is located at: http://www.google.com/ The asterisk docs project is located at: http://www.asteriskdocs.org/ On 3/2/06, mkumar@mantragroup.com <mkumar@mantragroup.com> wrote:> Hi Group, > > Please read my previous message below, I want to configure Asterisk with Mysql > and make Asterisk dynamic so that Asterisk will read everything from Mysql and > we can make changes to mysql data directly. Please tell how can we do this and > point me to related documentation. > > Thanks for your help and time, > Manoj. > > Quoting mkumar@mantragroup.com: > > > Hi Group, > > > > I was able to install Asterisk and its addons successfully. Now I want to > > eliminate sip.conf and extensions.conf and use everything from Mysql DB, Is > > this possible? I have seen this page > > > > http://www.voip-info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql > > > > and learnt that we still get the data from Mysql DB and write it as > > sub file to > > actual sip or extensions.conf before starting Asterisk. Can we > > eliminate config > > files completely? If it is possible then please point me to the links > > explaing > > how can we do this? I also found very less information on using Asterisk with > > Mysql, if there are any articles discussing this please send me those links. > > > > Thanks for your help all the time, > > Manoj. > > > > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Ok then, a single Asterisk server. It's still going to be easier to manage from a database. This is especially true when you factor in self provisioning, ie providing users with a way to make changes to their own configuration. -----Original Message----- From: C F [mailto:shmaltz@gmail.com] Sent: Thursday, March 02, 2006 12:19 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Re: Asterisk at large Douglas, a lot easier? If it's like you say with multiple servers. But the OP did not indicate this in his/her question, in fact s/he sounded clueless. Also, what is the purpose of NOT having *any* configs from /etc/asterisk/???????? On 3/2/06, Douglas Garstang <dgarstang@oneeighty.com> wrote:> Yikes. Managability! It's a lot easier to manage multiple Asterisk systems configuration from a single MySQL database then it is to manage .conf files on several redundant Asterisk boxes. I can't believe you asked that question. I'll apologise in advance because I must be missing part of this thread. > > -----Original Message----- > From: C F [mailto:shmaltz@gmail.com] > Sent: Thursday, March 02, 2006 10:16 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Re: Asterisk at large > > > Can you explain why you would want asterisk only thru realtime? and > not thru the /etc/asterisk/ ? > > The wiki is located at: > http://www.voip-info.org/ > the archives for this list is located at: > http://lists.digium.com/ > The asterisk irc channel is at: > irc://irc.freenode.net/#asterisk > Google is located at: > http://www.google.com/ > The asterisk docs project is located at: > http://www.asteriskdocs.org/ > > > > > On 3/2/06, mkumar@mantragroup.com <mkumar@mantragroup.com> wrote: > > Hi Group, > > > > Please read my previous message below, I want to configure Asterisk with Mysql > > and make Asterisk dynamic so that Asterisk will read everything from Mysql and > > we can make changes to mysql data directly. Please tell how can we do this and > > point me to related documentation. > > > > Thanks for your help and time, > > Manoj. > > > > Quoting mkumar@mantragroup.com: > > > > > Hi Group, > > > > > > I was able to install Asterisk and its addons successfully. Now I want to > > > eliminate sip.conf and extensions.conf and use everything from Mysql DB, Is > > > this possible? I have seen this page > > > > > > http://www.voip-info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql > > > > > > and learnt that we still get the data from Mysql DB and write it as > > > sub file to > > > actual sip or extensions.conf before starting Asterisk. Can we > > > eliminate config > > > files completely? If it is possible then please point me to the links > > > explaing > > > how can we do this? I also found very less information on using Asterisk with > > > Mysql, if there are any articles discussing this please send me those links. > > > > > > Thanks for your help all the time, > > > Manoj. > > > > > > > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
The best way to achieve maximum manageability is to design a MySQL database and develop AGI scripts (in your language of choice) that work to that design. I've found that it has been far easier to develop complex routing logic in python than it is in the horrible assembler-like Asterisk extensions.conf language. In a perfect world, there would be _ONE_ line in your extensions.conf, and it would be: exten => _.,1,AGI(routing_script) You'd also replicate your databases and put logic into your application such that upon failure to connect to the primary database, the application can seamlessly start performing reads from the secondary, replicated server. Doug. -----Original Message----- From: Cosmin Prund [mailto:cosmin@adicomsoft.ro] Sent: Thursday, March 02, 2006 1:26 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] Re: Asterisk at large I'm no Asterisk genie but if you're running on one server you're probably not dealing with lots of users (for what I'm trying to say 100 users are not a lot of users). Factoring in the VERY simple format of both sip.conf and extensions.conf, isn't it possible to create an php "page" that would generate those two files from the database? You'll next need to run a basic script that would call the php's + asterisk -rx "reload" and you'd be done! If you're trying to skip the reload step (ie: make the changes available immediately / transparently) I don't think it can be done, and this has nothing to do with Asterisk and a lot more to do with databases. Asterisk is something outside the database, using the database as nothing more but a source for data. Asterisk will not know the data in the database has changed, it needs to be told! On the other hand I am a newbie to Asterisk and I don't really like/know mySql so I might be very wrong and far from the truth.> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of C F > Sent: Thursday, March 02, 2006 9:19 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Re: Asterisk at large > > Douglas, a lot easier? If it's like you say with multiple servers. But > the OP did not indicate this in his/her question, in fact s/he sounded > clueless. > Also, what is the purpose of NOT having *any* configs from > /etc/asterisk/???????? > > On 3/2/06, Douglas Garstang <dgarstang@oneeighty.com> wrote: > > Yikes. Managability! It's a lot easier to manage multiple Asterisk > systems configuration from a single MySQL database then it is to manage > .conf files on several redundant Asterisk boxes. I can't believe you asked > that question. I'll apologise in advance because I must be missing part of > this thread. > > > > -----Original Message----- > > From: C F [mailto:shmaltz@gmail.com] > > Sent: Thursday, March 02, 2006 10:16 AM > > To: Asterisk Users Mailing List - Non-Commercial Discussion > > Subject: Re: [Asterisk-Users] Re: Asterisk at large > > > > > > Can you explain why you would want asterisk only thru realtime? and > > not thru the /etc/asterisk/ ? > > > > The wiki is located at: > > http://www.voip-info.org/ > > the archives for this list is located at: > > http://lists.digium.com/ > > The asterisk irc channel is at: > > irc://irc.freenode.net/#asterisk > > Google is located at: > > http://www.google.com/ > > The asterisk docs project is located at: > > http://www.asteriskdocs.org/ > > > > > > > > > > On 3/2/06, mkumar@mantragroup.com <mkumar@mantragroup.com> wrote: > > > Hi Group, > > > > > > Please read my previous message below, I want to configure Asterisk > with Mysql > > > and make Asterisk dynamic so that Asterisk will read everything from > Mysql and > > > we can make changes to mysql data directly. Please tell how can we do > this and > > > point me to related documentation. > > > > > > Thanks for your help and time, > > > Manoj. > > > > > > Quoting mkumar@mantragroup.com: > > > > > > > Hi Group, > > > > > > > > I was able to install Asterisk and its addons successfully. Now I > want to > > > > eliminate sip.conf and extensions.conf and use everything from Mysql > DB, Is > > > > this possible? I have seen this page > > > > > > > > http://www.voip- > info.org/wiki/index.php?page=Asterisk%20extensions%20from%20mysql > > > > > > > > and learnt that we still get the data from Mysql DB and write it as > > > > sub file to > > > > actual sip or extensions.conf before starting Asterisk. Can we > > > > eliminate config > > > > files completely? If it is possible then please point me to the > links > > > > explaing > > > > how can we do this? I also found very less information on using > Asterisk with > > > > Mysql, if there are any articles discussing this please send me > those links. > > > > > > > > Thanks for your help all the time, > > > > Manoj. > > > > > > > > > > > > > > > > _______________________________________________ > > > --Bandwidth and Colocation provided by Easynews.com -- > > > > > > Asterisk-Users mailing list > > > To UNSUBSCRIBE or update options visit: > > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > Asterisk-Users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Oops. Yes, Actually I do have _X. .... I didn't copy and paste what I had, I just typed it from memory. Thanks for the tip. -----Original Message----- From: Eric "ManxPower" Wieling [mailto:eric@fnords.org] Sent: Friday, March 03, 2006 9:48 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] Re: Asterisk at large> On Thu, Mar 02, 2006 at 04:14:34PM -0700, Douglas Garstang wrote: >> The best way to achieve maximum manageability is to design a MySQL database and develop AGI scripts (in your language of choice) that work to that design. I've found that it has been far easier to develop complex routing logic in python than it is in the horrible assembler-like Asterisk extensions.conf language. In a perfect world, there would be _ONE_ line in your extensions.conf, and it would be: >> >> exten => _.,1,AGI(routing_script)I assume your routing script handles exten => h (which is called when the call disconnects), exten => i (which is handled when an invalid number is dialed), as well as extens "a", "o" and others? Because the above pattern match also matches the extensions I just mentioned. Perhaps you would condsider using exten => _X. that will only match extensions that are all numbers AND are at least 2 digits long. _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users