Re: [Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread beonice
--- Andrew Thompson <[EMAIL PROTECTED]> wrote: ... snip ... > Back to your original post... > > > As of yesterday, though, when I have this format, > > asterisk won't accept incoming calls. It barfs > with > > the message: > > Feb 16 21:53:14 NOTICE[4330]: chan_iax2.c:5757 > > socket_read:

Re: [Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread beonice
I've finally figured the problem. It turns out that it had nothing to do with the include file. When I was commenting out unnecessary extensions in the main extensions.conf, I commented out the line: exten => _NXXNXX,1,Background(welcome) ; I did not realise (it's not mentioned anywhere) that

Re: [Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread Andrew Thompson
beonice wrote: Yes, I see what you are saying. This sounds backwards, but it's actually doing what I _want_ it to do. :) From what I see in the dialplan, what asterisk does is, it loads the handlers for '#', 't' and 'i' as part of vp_context, not as part of main_vp_context. That actually happens to

Re: [Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread beonice
--- Andrew Thompson <[EMAIL PROTECTED]> wrote: --- snip --- > > The only thing that seems out of place to me is your > #include in > [main_vp_context]. It looks to me like you intend > for the s, #, t, and i > extensions to be in [main_vp_context]. The way you > layed out this > example, that

Re: [Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread Andrew Thompson
beonice wrote: The resulting extensions_from_mysql.conf file looks something like this: [vp_context] exten => 1000,1,Record(/tmp/rec:gsm); exten => 1000,2,Playback(/tmp/rec) ; exten => 1000,3,Background(goodbye) ; exten => 1000,4,Hangup(); I decided to #include this in my main exte

[Asterisk-Users] Having trouble with extensions in an include file and retrieve_extensions_from_mysql.pl

2005-02-17 Thread beonice
Folks, I've been running asterisk successfully using the extensions.conf and voicemail.conf. Now that I've got asterisk happily looking up MySQL tables for the VM configuration, I decided to try out the contributed script /usr/src/asterisk/contrib/scripts/retrieve_extensions_from_mysql.pl I ed