Re: [asterisk-users] Include and Realtime
Looks like I have to go down that route. Ok, thanks Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
On Tue, 2010-08-24 at 18:53 -0400, Dan Journo wrote: > > Is your main concern changes being made to the extensions.conf or > > someone having to manually make changes to the extensions.conf? > > Someone having to manually change extensions.conf and then reload asterisk. > If you are allowing a secretary to create new clients/users I assume you have created an interface for him/her. Can you not add a routine to the client/user addition process that rewrites your extensions.conf dynamically from the contents of the context column in the extensions table and then trigger a dialplan reload. It would require no human intervention other than the initial client/user addition. This is pretty much how I have done it to allow includes in my extensions.conf -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
On Tue, Aug 24, 2010 at 5:48 AM, Dan Journo wrote: > Hi, > > I think I already know the answer to this question, but is there any way to > do the following using realtime? Or do I have to create a full dialplan for > each client without using includes? One way that I know works, as I used it on 1.6.2 is to create the contexts like you have listed below with all of the includes, then create a dummy context for each one using Realtime. For example, expanding on your existing Client1_phones context you could add: > [client1_phones] > include => client1_internal > include => client1_outgoing_calls > include => test_calls > include => parkedcalls [client1_internal] switch => Realtime [client1_outgoing_calls] switch => Realtime You would have to create the base contexts for each client. I put each client/site/logical group in a different file and #include that to keep the extensions.conf file short, and easy to remove a specific section without impacting others. Now this I have not tried, and have no idea if it would work. Maybe someone more familiar with the code can comment. You can specify the context in the switch statement, but can you have multiple switch statements under a context? It would be worth at least trying in a test environment. So to change client2_phones with an untested idea: > [client2_phones] > include => client2_internal > include => client2_outgoing_calls > include => test_calls > include => parkedcalls [client2_phones] switch => Realtime/client2_internal switch => Realtime/client2_outgoing_calls include => test_calls include => parkedcalls If that doesn't work, maybe just having one switch and an include? Again, I haven't tested any of that, but it seems like an interesting way to do what I think you want. Good luck! -Jonathan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
> Is your main concern changes being made to the extensions.conf or > someone having to manually make changes to the extensions.conf? Someone having to manually change extensions.conf and then reload asterisk. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
On Tue, 2010-08-24 at 08:48 -0400, Dan Journo wrote: > Hi, > > > > I think I already know the answer to this question, but is there any > way to do the following using realtime? Or do I have to create a full > dialplan for each client without using includes? > > > > [client1_phones] > > include => client1_internal > > include => client1_outgoing_calls > > include => test_calls > > include => parkedcalls > > > > [client2_phones] > > include => client2_internal > > include => client2_outgoing_calls > > include => test_calls > > include => parkedcalls > > > > I'm creating an application to allow a secretary to create new client > accounts. It uses mysql and realtime, and I want to avoid changing the > extensions.conf file. > > > > Thanks > > Dan > > > -- > _ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: >http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users Is your main concern changes being made to the extensions.conf or someone having to manually make changes to the extensions.conf? -- Ishfaq Malik Software Developer PackNet Ltd Office: 0161 660 3062 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
Sorry about that. You had the complete right for a new post. But there are some others who simply keep littering this mailing list with re-postings, as if forcing others to spit out answers for them. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-24 10:58 AM, "Dan Journo" wrote: > I think you asked this question earlier and there were good responses to it. There is nothing more... I think if you read my question properly, you'd see that I have one existing context (CLIENT1_PHONES) and I want to INCLUDE a number of other contexts into the CLIENT1_PHONES context. In the question that you are referring to, I was asking how I can create a totally new context in realtime. Nothing to do with the INCLUDE command. Thanks for trying to police this mailing list. Keep up the good work. Changing the world for the better, one post at a time. By the way, if you think someone is posting the same question again, maybe you should stop and re-read it before replying. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
> I think you asked this question earlier and there were good responses to it. > There is nothing more to it than what people already suggested. I think if you read my question properly, you'd see that I have one existing context (CLIENT1_PHONES) and I want to INCLUDE a number of other contexts into the CLIENT1_PHONES context. In the question that you are referring to, I was asking how I can create a totally new context in realtime. Nothing to do with the INCLUDE command. Thanks for trying to police this mailing list. Keep up the good work. Changing the world for the better, one post at a time. By the way, if you think someone is posting the same question again, maybe you should stop and re-read it before replying. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
Sorry, that was not me. Dan > I think you asked this question earlier and there were good responses to it. > There is nothing more to it than what people already suggested. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Include and Realtime
I think you asked this question earlier and there were good responses to it. There is nothing more to it than what people already suggested. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-24 8:56 AM, "Dan Journo" wrote: Hi, I think I already know the answer to this question, but is there any way to do the following using realtime? Or do I have to create a full dialplan for each client without using includes? [client1_phones] include => client1_internal include => client1_outgoing_calls include => test_calls include => parkedcalls [client2_phones] include => client2_internal include => client2_outgoing_calls include => test_calls include => parkedcalls I'm creating an application to allow a secretary to create new client accounts. It uses mysql and realtime, and I want to avoid changing the extensions.conf file. Thanks Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Include and Realtime
Hi, I think I already know the answer to this question, but is there any way to do the following using realtime? Or do I have to create a full dialplan for each client without using includes? [client1_phones] include => client1_internal include => client1_outgoing_calls include => test_calls include => parkedcalls [client2_phones] include => client2_internal include => client2_outgoing_calls include => test_calls include => parkedcalls I'm creating an application to allow a secretary to create new client accounts. It uses mysql and realtime, and I want to avoid changing the extensions.conf file. Thanks Dan -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users