Hi Members, I was able to install Asterisk and configure many of it's features. Currently I am using Extensions.conf for giving all my contexts and extensions. Whenever I change my extensions or add a new context I have to reload extensions.conf and practically it is not possible reloading many times as we update or add contexts many times. Please tell me what could be the best solution to avoid all this and if possible extensions.conf itself. I came to know about scripts using AGI but I am a newbie totally and I do not have any idea using them. I have seen a article in voip-info site showing some examples on AGI and PHP. I want to do something like this: Can I write a set of rules to Asterisk say from PHP using AGI and if the first rule fails then it must go to next rule and so on? If the first rule fails then Asterisk will go to the next rule or will I receive something from Asterisk that first rule failed and then I write the second rule and so on. If I do something like this then I can have a file for every context and update it and no reloading is necessary. I checked Mysql add on for Asterisk but if I add a new context then it is not going to work without reloading. Please tell me how can I do the above with Asterisk and please suggest me if there is any good alternative for doing this? Any help will be sincerely appreciated. Thanks, Venkat. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060313/0c2bc2c4/attachment.htm
On 3/13/06, venkat kumar <venkat.voip@gmail.com> wrote:> Hi Members, > > I was able to install Asterisk and configure many of it's features. > Currently I am using Extensions.conf for giving all my contexts and > extensions. Whenever I change my extensions or add a new context I have to > reload extensions.conf and practically it is not possible reloading many > times as we update or add contexts many times. Please tell me what could beWhy is it not possible to reload? whats wrong with reloading many times?> the best solution to avoid all this and if possible extensions.conf itself. > I came to know about scripts using AGI but I am a newbie totally and I do > not have any idea using them. I have seen a article in voip-info site > showing some examples on AGI and PHP. I want to do something like this: > > Can I write a set of rules to Asterisk say from PHP using AGI and if the > first rule fails then it must go to next rule and so on? If the first rule > fails then Asterisk will go to the next rule or will I receive something > from Asterisk that first rule failed and then I write the second rule and so > on. If I do something like this then I can have a file for every context and > update it and no reloading is necessary. > > I checked Mysql add on for Asterisk but if I add a new context then it is > not going to work without reloading. Please tell me how can I do the above > with Asterisk and please suggest me if there is any good alternative for > doing this? > > Any help will be sincerely appreciated. > > Thanks, > Venkat. > _______________________________________________ > --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 > > >
Hi ->> I was able to install Asterisk and configure many of it's features. >> Currently I am using Extensions.conf for giving all my contexts and >> extensions. Whenever I change my extensions or add a new context I have to >> reload extensions.conf and practically it is not possible reloading many >> times as we update or add contexts many times. Please tell me what could be > > Why is it not possible to reload? whats wrong with reloading many times?I think maybe there's some confusion here with the OP. Reloading does not interrupt calls in progress. They will keep on going through as many reloads as you want.>> the best solution to avoid all this and if possible extensions.conf itself. >> I came to know about scripts using AGI but I am a newbie totally and I do >> not have any idea using them. I have seen a article in voip-info site >> showing some examples on AGI and PHP. I want to do something like this:Actually, if you're talking about a large scale deployment, AGI scripts could conceivably be very bad. Depending on how they are implemented, they may add considerable processing overhead, which would be compounded on a heavily taxed server. Realtime is probably your best bet. - Noah