Thanks much David....


________________________________
From: David Kerr <da...@kerr.net>
To: AstLinux Users Mailing List <astlinux-users@lists.sourceforge.net>
Sent: Wed, May 12, 2010 6:37:05 PM
Subject: Re: [Astlinux-users] Asterisk extensions.conf question

you should also enter a extension for 't' (for timeout)... action to take if no 
one presses a key within designated time.
exten => t,1,Goto(bypass,s,1)

other special extensions are 'i' for invalid and 'h' for hangup.

David



On Wed, May 12, 2010 at 4:52 PM, Ionel Chila <ionelch...@yahoo.com> wrote:

>
>It worked perfectly Chris.  Thanks much.....
>
>
>> 
>
>
>>----- Original Message ----
>>From: Chris Abnett <eldorado...@yahoo.com>
>>To: AstLinux Users Mailing List <astlinux-users@lists.sourceforge.net>
>>Sent: Wed, May 12, 2010 3:08:22 PM
>>Subject: Re: [Astlinux-users] Asterisk extensions.conf question
>
>>How about in the bottom of homepbx put
>
>>exten => i,1,Goto(bypass,s,1)
>>-Christopher
>
>
>>-----Original Message-----
>>From: Ionel Chila [mailto:ionelch...@yahoo.com]
>>Sent: Wednesday, May 12, 2010 3:42 PM
>>To: astlinux-users@lists.sourceforge.net
>>Subject: [Astlinux-users] Asterisk extensions.conf question
>
>>I am not an expert at Asterisk and I have basic skills to find my way around
>>the configuration files.
>>I setup the extensions.conf in my home PBX running Astlinux in such way that
>>fuction almost like a menu but in a very transparent fashion.
>>This is on my home number and I don't want too much interaction that will
>>confuse callers they call my home number.
>
>>When I dial my own number I wanted to set this as a way for me to execute a
>>script (1 or 2) when I enter a specific code. Each script is asociated to a
>>specific code as you can see. Very simple.  If no code is enetered will go
>>straight to my extension. It wall work fine except if I enter the wrong code
>>it doesn't take me anywhere, it dies. Maybe like a loop function where if I
>>dial in the wrong code will take me to the [bypass] context since no script
>>was executed. See attached config portion.  I think I need some extra line
>>to do that in the [homepbx] context.
>
>>Any help or guidance please?
>
>>Thanks much
>
>
>>[homepbx]
>>;
>>;INCOMING TO USA NUMBER & DIAL OUT SCRIPTS
>>exten => s,1,Playback(wait-moment) ; 2 seconds of ringing music
>>exten => s,2,Waitexten(2)
>>exten => s,3,Goto(bypass,s,1)
>>exten => 1234,1,Goto(script1,s,1)
>>exten => 5678,1,Goto(script2,s,1)
>>;
>>;
>>;INCOMING IF NO CODE ENTERED
>>[bypass]
>>exten =>
>>s,1,GotoIf(${DB_EXISTS(blacklist/${CALLERID(num)})}?blacklisted,s,1)
>>exten => s,2,DIAL(SIP/101) ; to my PAP2-NA Sip BOX
>>exten => s,3,Voicemail(u101)
>>exten => s,101,Hangup()
>>;
>>;
>>;DIAL OUT SCRIPT WHEN 1234 CODE ENETERED
>>[script1]
>>exten => s,1,Answer
>>exten => s,2,AGI(script1.agi)
>>;
>>;
>>;DIAL OUT SCRIPT WHEN 5678 CODE ENETERED
>>[script2]
>>exten => s,1,Answer
>>exten => s,2,AGI(script2.agi)
>>;
>>;
>>;BLACKLIST
>>[blacklisted]
>>exten => s,1,Answer
>>exten => s,n,Wait(2)
>>exten => s,n,Playback(vm-nobodyavail)
>>exten => s,n,Wait(1)
>>exten => s,n,Hangup
>>;
>>;
>
>
>>----------------------------------------------------------------------------
>>--
>
>>_______________________________________________
>>Astlinux-users mailing list
>Astlinux-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
>>Donations to support AstLinux are graciously accepted via PayPal to
>pay...@krisk.org.
>
>
>>------------------------------------------------------------------------------
>
>>_______________________________________________
>>Astlinux-users mailing list
>Astlinux-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
>>Donations to support AstLinux are graciously accepted via PayPal to 
>>pay...@krisk.org.
>
>
>------------------------------------------------------------------------------
>
>
>>_______________________________________________
>>Astlinux-users mailing list
>Astlinux-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
>>Donations to support AstLinux are graciously accepted via PayPal to 
>>pay...@krisk.org.
>
------------------------------------------------------------------------------

_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to