[Asterisk-Users] Re: Auto-attendant with an IP trunk

apurohit at verizon.net apurohit at verizon.net
Wed Aug 4 13:54:34 MST 2004


Josh:

The configuration I have for the extensions.conf is the following:

[macro-oneline]
exten => s,1,Dial(${ARG1},20)
exten => s,2,Voicemail(u${MACRO_EXTEN})
exten => s,3,Hangup
exten => s,102,Voicemail(b${MACRO_EXTEN})
exten => s,103,Hangup

[from-sip]

ignorepat => 9

exten => _91XXXXXXXXXX,1,Dial(SIP/${EXTEN:1}@s00123456)
exten => _91XXXXXXXXXX,2,Playback(invalid)
exten => _91XXXXXXXXXX,3,Hangup

exten => s00123456,1,Wait,2
exten => s00123456,2,Answer
exten => s00123456,3,DigitTimeout,5
exten => s00123456,4,ResponseTimeout,30
exten => s00123456,5,Background(welcome-mainmenu)

; the welcome menu says "press 1 for sales, 3 for support, 9 for 
; directory and press the extension at any time to be directly 
; connected. It plays this greeting when the caller calls the voice
; -pulse number and will also goto sales etc. on user input. the
; problem is when the user tries to enter the extensions i.e. 2000,
; 2001, 2002 at this point

exten => 1,1,Goto(sales,s,1)
exten => 3,1,Goto(support,s,1)
exten => 9,1,Directory(from-sip)
exten => 0,1,Goto(from-sip,2000,1)



exten => 2000,1,Macro(oneline,SIP/2000);
exten => 2001,1,Macro(oneline,SIP/2001);
exten => 2002,1,Macro(oneline,SIP/2002);
exten => 2003,1,Macro(oneline,SIP/2003);
exten => 2004,1,Macro(oneline,SIP/2004);
exten => 2005,1,Macro(oneline,SIP/2005);
exten => 2006,1,Macro(oneline,SIP/2006);
exten => 2007,1,Macro(oneline,SIP/2007);
exten => 2008,1,Macro(oneline,SIP/2008);
exten => 2009,1,Macro(oneline,SIP/2009);
exten => 2010,1,Macro(oneline,SIP/2010);
exten => 2011,1,Macro(oneline,SIP/2011);
exten => 2012,1,Macro(oneline,SIP/2012);
exten => 2013,1,Macro(oneline,SIP/2013);
exten => 2014,1,Macro(oneline,SIP/2014);


> 
> From: <apurohit at verizon.net>
> Date: 2004/08/04 Wed PM 01:47:27 CDT
> To: <asterisk-users at lists.digium.com>
> Subject: Auto-attendant with an IP trunk
> 
> Hi:
> 
> I am trying to setup a simple auto attendant with Asterisk using SIP extensions. I have an IP trunk to voicepulse and my outgoing calls go over that. 
> 
> I can also receive calls on that voicepulse trunk and want it to an auto attendant. Everything works except on the following:
> 
> - one of the options is to allow the caller to press the extension that they would like to be connected to. I have extensions from 2000 - 2010. What happens is that Asterisk jumps out at the first digit '2' and says that nothing found with '2'. It doesn't even read the rest of the digits '000'.
> 
> I expect this to be a basic PBX function and I am sure I'm missing something. Any help would be greatly appreciated.
> 
> Regards,
> 
> Anil
> 




More information about the asterisk-users mailing list