Steven J. Sobol
2003-Jul-21 06:52 UTC
[Asterisk-Users] Dynamically setting up/tearing down extensions
Hello, * newbie here, I'm designing a setup that is to eventually be used in a production virtual PBX/VoIP service. Customers need to be able to change their setups over the web - I want them to be able to do simple things like setting up call forwarding, as well as more intricate stuff that will require me to re-generate their dialplans. Administration of the service is to be web-based. I'm looking at DynExtenDB (and have played with it). I love that it reads the dialplans out of a MySQL database - that is a critical issue for me. But it has some issues. I have a test dialplan with one call to Playback() - just plays a wav file then exits. When DynExtenDB() is called, it adds one extra step that calls DynExtenDB_Free()... --If I let the wav file play to the end, DynExtenDB_Free() is called properly. If I hang up prematurely, it isn't, and it also isn't called if I set the dialplan to dial out (for example, to forward the call to my cell phone). --If DynExtenDB_Free() *is* called properly, and I then make another call, DynExtenDB() doesn't seem to be called again. --I'm not sure that setting up a dialplan for extension 'h' is a good idea. What if I call, and then someone else calls and I hang up in the middle of the call? I am ready and willing to make changes to the source to DynExtenDB. In fact, I'd like to get it to a point where it could be used in a production environment. But I have a lot of questions before I can do that. BTW, I have looked in the archives, and it's been suggested that maybe AGI is a better way to handle this sort of thing - but wouldn't the same issues still exist?? Thanks SJS -- Steven J. Sobol, Geek In Charge, JustThe.net "Microsoft must think they're a navy, they open so many ports." --Ben Scott on the ISP-TECH mailing list, 18 June 2003
Armand A. Verstappen
2003-Jul-21 07:09 UTC
[Asterisk-Users] Dynamically setting up/tearing down extensions
Hi Steven! Small world isn't it? On Mon, 2003-07-21 at 15:52, Steven J. Sobol wrote:> Hello, * newbie here,I've been lurking on the list for a few months now.> I'm looking at DynExtenDB (and have played with it). I love that it reads > the dialplans out of a MySQL database - that is a critical issue for me. > But it has some issues.I haven't found this DynExtenDB however. Could you provide me with some pointers to it? PS: We never finished the Aegir Addon stuff. Maybe we can do that over iaxtel sometime? wkr, -- Envida http://www.envida.net/ Armand A. Verstappen Graadt van Roggenweg 328 armand@nl.envida.net 3531 AH Utrecht tel: +31 (0)30 298 2255 Postbus 19127 fax: +31 (0)30 298 2111 3501 DC Utrecht -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20030721/0ab167b3/attachment.pgp
Steve Sobol
2003-Jul-21 13:33 UTC
[Asterisk-Users] Dynamically setting up/tearing down extensions
At 02:06 PM 7/21/2003 -0500, you wrote:>One can use the retrieve_extensions_from_mysql.pl script and then issue a >"extensions reload" command to asterisk. The pending calls are unaffected >and the final substitution of the new dialplan is done in a very short >time.I want to explore truly dynamic extensions as a long-term project, but this might be an excellent short-term solution. Can the reload be done without being root? -- Steven J. Sobol, Geek In Charge, JustThe.net POTS: Toll Free from anywhere in the USA or Canada, 888.480.4NET (4638) HTTP: www.JustTheNetLLC.com MAIL: 5686 Davis Drive, Mentor on the Lake, OH 44060-2752
Jeremy McNamara
2003-Jul-21 23:25 UTC
[Asterisk-Users] Dynamically setting up/tearing down extensions
DynExtenDB is not even close to being the proper way to achieve dynamic extensions. Karl (klasstek) and myself (mainly Karl) has spent a few clock cycles figuring out how to make dynamic extensions happen, but we had no real motivation to finish the task. Find either one of us on IRC or search the mailing list archives. Jeremy McNamara Steven J. Sobol wrote:>Hello, * newbie here, > >I'm designing a setup that is to eventually be used in a production >virtual PBX/VoIP service. > >Customers need to be able to change their setups over the web - I want >them to be able to do simple things like setting up call forwarding, as >well as more intricate stuff that will require me to re-generate their >dialplans. > >Administration of the service is to be web-based. > >I'm looking at DynExtenDB (and have played with it). I love that it reads >the dialplans out of a MySQL database - that is a critical issue for me. >But it has some issues. > >I have a test dialplan with one call to Playback() - just plays a wav file >then exits. When DynExtenDB() is called, it adds one extra step that calls >DynExtenDB_Free()... > >--If I let the wav file play to the end, DynExtenDB_Free() is called >properly. If I hang up prematurely, it isn't, and it also isn't called if >I set the dialplan to dial out (for example, to forward the call to my >cell phone). > >--If DynExtenDB_Free() *is* called properly, and I then make another call, >DynExtenDB() doesn't seem to be called again. > >--I'm not sure that setting up a dialplan for extension 'h' is a good >idea. What if I call, and then someone else calls and I hang up in the >middle of the call? > >I am ready and willing to make changes to the source to DynExtenDB. In >fact, I'd like to get it to a point where it could be used in a production >environment. But I have a lot of questions before I can do that. > >BTW, I have looked in the archives, and it's been suggested that maybe AGI >is a better way to handle this sort of thing - but wouldn't the same >issues still exist?? > >Thanks > SJS > > >
Anton Tinchev
2003-Jul-22 03:06 UTC
[Asterisk-Users] Dynamically setting up/tearing down extensions
Is the problem same if I wonna to have dynamic mail boxes? Steven J. Sobol wrote:> Hello, * newbie here, > > I'm designing a setup that is to eventually be used in a production > virtual PBX/VoIP service. > > Customers need to be able to change their setups over the web - I want > them to be able to do simple things like setting up call forwarding, as > well as more intricate stuff that will require me to re-generate their > dialplans. > > Administration of the service is to be web-based. > > I'm looking at DynExtenDB (and have played with it). I love that it reads > the dialplans out of a MySQL database - that is a critical issue for me. > But it has some issues. > > I have a test dialplan with one call to Playback() - just plays a wav file > then exits. When DynExtenDB() is called, it adds one extra step that calls > DynExtenDB_Free()... > > --If I let the wav file play to the end, DynExtenDB_Free() is called > properly. If I hang up prematurely, it isn't, and it also isn't called if > I set the dialplan to dial out (for example, to forward the call to my > cell phone). > > --If DynExtenDB_Free() *is* called properly, and I then make another call, > DynExtenDB() doesn't seem to be called again. > > --I'm not sure that setting up a dialplan for extension 'h' is a good > idea. What if I call, and then someone else calls and I hang up in the > middle of the call? > > I am ready and willing to make changes to the source to DynExtenDB. In > fact, I'd like to get it to a point where it could be used in a production > environment. But I have a lot of questions before I can do that. > > BTW, I have looked in the archives, and it's been suggested that maybe AGI > is a better way to handle this sort of thing - but wouldn't the same > issues still exist?? > > Thanks > SJS >