Jeff Roberts
2004-Feb-06 13:58 UTC
[Asterisk-Users] is it possible to turn auto answer off and on in the dialplan?
Is it possible to turn auto answer for the console off and on in the dialplan? If so would someone be so kind as to post a short example. I'd like to use the same sound card for external ringing over the paging system that I'm using for overhead paging. So my idea was to put the console in the group of phones to ring when a call comes in, which would ring over the speakers. But I'd like to keep being able to do over head paging by dialing an extension. I'd to have autoanswer=no in alsa.conf, and do something like ; overhead paging exten => 4600,1,SetMusicOnHold(silence) exten => 4600,2,SetAutoAnswerOff(CONSOLE/dsp) exten => 4600,3,Dial(CONSOLE/dsp) exten => 4600,4,Hangup instead of what i have now: ; overhead paging exten => 4600,1,SetMusicOnHold(silence) exten => 4600,2,Dial(CONSOLE/dsp) exten => 4600,3,Hangup Otherwise, I'd need to add another soundcard as console2 and run both outputs into the input of the paging system, correct? Thanks ahead, Jeff
Dear All, I have a very simple question but could not find any information from the internet. Is there anyway to match code on extensions.conf without having to specify the number of digits? For example, if I want to send 01163 (Philippines to a certain IP address), is there anyway simpler to do than exten => _01163XXXXXXXXXXXX,1,..... exten => _01163XXXXXXXXXXX,1,..... exten => _01163XXXXXXXXXX,1,..... exten => _01163XXXXXXXXX,1,..... exten => _01163XXXXXXXX,1,..... exten => _01163XXXXXXX,1,..... Is there any one line command that could replace having to use XXXXXX... to match exact number of digits? Thanks TC --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004
T. Chan wrote:> Dear All, > > I have a very simple question but could not find any information from the > internet. > > Is there anyway to match code on extensions.conf without having to specify > the number of digits? > > For example, if I want to send 01163 (Philippines to a certain IP address), > is there anyway simpler to do than > > exten => _01163XXXXXXXXXXXX,1,..... > exten => _01163XXXXXXXXXXX,1,..... > exten => _01163XXXXXXXXXX,1,..... > exten => _01163XXXXXXXXX,1,..... > exten => _01163XXXXXXXX,1,..... > exten => _01163XXXXXXX,1,..... > > Is there any one line command that could replace having to use XXXXXX... to > match exact number of digits? > > Thanks > > TCTC, Just do something like: exten => _01163.,1,Application() Cheers, Chris. iax700.824.0300
Dear Chris, Thanks for your lesson, it sort of works but not perfect. I tried exten => _01163.,1,Application() exten => _011.,1,Application() because I want to send Philippines to a different IP address than the rest of the world, but if I configure that way, even 01163 calls will all go to the second IP address as per 011.,1,Application(). If I take out the 011., then calls WILL go to 01163., if I put the two together it will always go to 011. extension. Any idea please? Thanks again TC -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of Chris Craft Sent: Friday, February 06, 2004 4:31 PM To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Fast question on extension matching T. Chan wrote:> Dear All, > > I have a very simple question but could not find any information from the > internet. > > Is there anyway to match code on extensions.conf without having to specify > the number of digits? > > For example, if I want to send 01163 (Philippines to a certain IPaddress),> is there anyway simpler to do than > > exten => _01163XXXXXXXXXXXX,1,..... > exten => _01163XXXXXXXXXXX,1,..... > exten => _01163XXXXXXXXXX,1,..... > exten => _01163XXXXXXXXX,1,..... > exten => _01163XXXXXXXX,1,..... > exten => _01163XXXXXXX,1,..... > > Is there any one line command that could replace having to use XXXXXX...to> match exact number of digits? > > Thanks > > TCTC, Just do something like: exten => _01163.,1,Application() Cheers, Chris. iax700.824.0300 _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.576 / Virus Database: 365 - Release Date: 1/30/2004