Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-23 Thread James H. Cloos Jr.
> "Mark" == Mark Spencer <[EMAIL PROTECTED]> writes:

Mark> The problem with this and MySQL is letting MySQL understand
Mark> Asterisk-style pattern matching,

Didn't someone post some code that converts * patterns to regexen?
That seems like it would be useful for this kind of stuff, yes?

-JimC

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-22 Thread Mark Spencer
> Well, I'd certainly be willing to pick up the project from you. I think it
> should be done in the core, rather than in a module, but that's just my
> observation, and I've only taken a very cursory look at certain parts of
> the Asterisk source.

The "proper" way to link extensions from a database, LDAP, etc. would be
via the switch interface, where you implement canexist, exists, matchmore,
and exec for each channel.  Note how the IAX and IAX2 switches work.  The
problem with this and MySQL is letting MySQL understand Asterisk-style
pattern matching, although I suppose one could do something like:

for 6000:

select * from extens where exten='6000' or exten rlike '[6XN][0X][0X][0X]'

Anyway if anyone knows an easy fix that would be cool.

Mark

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-22 Thread Anton Tinchev
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
> 


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Martin Pycko
Yes, you can contact over the manager interface (you need to setup a
user/pass in /etc/asterisk/manager.conf). I've sent a short perl script
how to do that some time ago.

Now notice that "extensions reload" only renews extensions without
touching other modules.

regards
Martin

On Mon, 21 Jul 2003, Steve Sobol wrote:

> 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
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Steve Sobol
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
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Martin Pycko
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.

regards
Martin

On Tue, 22 Jul 2003, Jeremy McNamara wrote:

>
> 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
> >
> >
> >
>
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Steven J. Sobol
On Tue, 22 Jul 2003, Jeremy McNamara wrote:

> 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.

Well, I'd certainly be willing to pick up the project from you. I think it
should be done in the core, rather than in a module, but that's just my
observation, and I've only taken a very cursory look at certain parts of
the Asterisk source.

> Find either one of us on IRC or search the mailing list archives. > 

Yes, sir.

-- 
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

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Jeremy McNamara
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
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Steven J. Sobol

Hey!

On 21 Jul 2003, Armand A. Verstappen wrote:

> 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?

http://andreasotto.net/asterisk/

 
> PS: We never finished the Aegir Addon stuff. Maybe we can do that over
> iaxtel sometime?

I haven't forgotten about it, I just haven't had time to do it. I moved 
about 2,500 miles across the US from Ohio to California at the end of last 
month. I also have to do a reinstall of my Aegir/Midgard setup since I 
managed to break it. I'll start on this this week.

-- 
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

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Armand A. Verstappen
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
[EMAIL PROTECTED]   3531 AH Utrecht
tel: +31 (0)30 298 2255Postbus 19127
fax: +31 (0)30 298 21113501 DC Utrecht


signature.asc
Description: This is a digitally signed message part


[Asterisk-Users] Dynamically setting up/tearing down extensions

2003-07-21 Thread Steven J. Sobol

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

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users