Re: [asterisk-users] Realtime Context

2010-08-18 Thread Ishfaq Malik
Unless I've got some massive misunderstanding, yes we do as described here http://www.voip-info.org/wiki/view/Asterisk+RealTime Why do you ask? On 17/08/10 17:27, Zeeshan Zakaria wrote: Ishfaq, do you use the asterisk real-time architecture? Zeeshan A Zakaria -- www.ilovetovoip.com

Re: [asterisk-users] Realtime Context

2010-08-18 Thread Zeeshan Zakaria
So why you need a reload when you are using the real-time architecture? Are you adding contexts in extensions.conf? If yes then where are you using the real-time? I asked because to me it seems you didn't understand what Dan is asking, and also seems you don't know how real-time works in regards

Re: [asterisk-users] Realtime Context

2010-08-18 Thread Ishfaq Malik
Hi I'll give you an example process flow Our customer logs onto our VoIP Portal and orders a SIP Geographic number Geo number is successfully ordered which inserts an entry into our extensions table in MySQL DB in the default context which has a goto command to a newly created specific

Re: [asterisk-users] Realtime Context

2010-08-18 Thread Zeeshan Zakaria
Thanks for the details. I Agreed you know what you are doing. As for doing it more elegantly, it is not possible to do a fruitful discussion without knowing all the details of how your dialplan works, neither is this the goal here. But I offer similar hosted PBX service, just use one context for

Re: [asterisk-users] Realtime Context

2010-08-18 Thread Matt Riddell
We don't use a context for that. We set up dialplan code in a non asterisk part of MySQL called routing types. When a customer selects a DDI number they can choose a routing type to use with it. These routing types allow for variable substitution - i.e. if someone adds the routing type

Re: [asterisk-users] Realtime Context

2010-08-18 Thread Zeeshan Zakaria
Hi Matt, That's somewhat closer to what I do in my dialplan as well. But Dan apparantly wants to add new contexts in his `extensions` table. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-18 6:02 PM, Matt Riddell li...@venturevoip.com wrote: We don't use a context for that. We set up

Re: [asterisk-users] Realtime Context

2010-08-17 Thread Zeeshan Zakaria
Hi, As nobody has answered it yet, and long time ago I also seeked answer to this exact same question, so I guess there is still no way to do it. What I ended up doing was defining 100 contexts in extensions.conf, all with the switch statements, so I didn't have to do a reload everytime. And then

Re: [asterisk-users] Realtime Context

2010-08-17 Thread Ishfaq Malik
We use a script on a cron which runs from a table/queue that only has an entry placed in it if a new context is added. If that is the case the script writes a new extenions.conf generating all the contexts and switch statements by doing a distinct select of contexts in the table. It also

Re: [asterisk-users] Realtime Context

2010-08-17 Thread Zeeshan Zakaria
The whole point of using real-time, as the word 'real' says, is to avoid the reloads. If one is ok with the reloads, then why bother with real-time at all. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-17 10:50 AM, Ishfaq Malik i...@pack-net.co.uk wrote: We use a script on a cron which

Re: [asterisk-users] Realtime Context

2010-08-17 Thread Ishfaq Malik
So that we can create a custom interface for our customers to be able to do simple stuff like adding extensions, changing dialplans without our (for our read my!) intervention. The DB storage is the main thing for us. On 17/08/10 16:09, Zeeshan Zakaria wrote: The whole point of using

Re: [asterisk-users] Realtime Context

2010-08-17 Thread Zeeshan Zakaria
Ishfaq, do you use the asterisk real-time architecture? Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-08-17 11:45 AM, Ishfaq Malik i...@pack-net.co.uk wrote: So that we can create a custom interface for our customers to be able to do simple stuff like adding extensions, changing dialplans

[asterisk-users] Realtime Context

2010-08-15 Thread Dan Journo
Hi, I'd like to be able to create contexts in real-time when I add new clients to my asterisk box. Currently, I have to create a blank context in extensions.conf and add:- switch = Realtime/@ Is there any way to avoid the step of creating the blank context and simply include all the entries

[asterisk-users] Realtime context

2007-10-29 Thread Enrico Pasqualotto
Hi all, I use asterisk with realtime features for extension, sip and iax. In extensions.conf I have put these lines: [from-internal] include = parkedcalls switch = Realtime/@ [fromiax] switch = Realtime/@ There is a way for put in my database the context also? Now if I want to add a new

Re: [asterisk-users] Realtime context

2007-10-29 Thread JR Richardson
Hi all, I use asterisk with realtime features for extension, sip and iax. In extensions.conf I have put these lines: [from-internal] include = parkedcalls switch = Realtime/@ [fromiax] switch = Realtime/@ There is a way for put in my database the context also? Now if I want to add a

Re: [asterisk-users] Realtime context

2007-10-29 Thread Brian Hutchinson
Maybe I'm not following the problem here ... couldn't he just rework his extensions in a way that uses macros so he doesn't have to change 50 things? On 10/30/07, JR Richardson [EMAIL PROTECTED] wrote: Hi all, I use asterisk with realtime features for extension, sip and iax. In