[asterisk-users] i extension not triggering

Danny Nicholas danny at debsinc.com
Thu Oct 25 11:31:23 CDT 2012


BOP! You don't need no stinkin "I" in this case!  Just put this in front of
the Dial()
Exten => 444,2,Gotoif("${DOCK_RECIPIENTS}" != "444"]?i,1)

This catches anything they dial that isn't the magic 444.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Tony
Mountifield
Sent: Thursday, October 25, 2012 11:25 AM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] i extension not triggering

In article <50895CAB.9080206 at claborn.net>, Mitch Claborn
<mitch_ml at claborn.net> wrote:
> I set logger.conf to
> console =>debug,notice,warning,error,verbose
> 
> and get the following output:
> 
>    == Using SIP RTP CoS mark 5
> [Oct 25 10:32:53] NOTICE[3501]: chan_sip.c:22622 handle_request_invite: 
> Call from 'Mitch295' (192.168.5.104:5060) to extension '123' rejected 
> because extension not found in context 'DockPhone'.
> 
> NoOp() is not a typo, and it shows up correctly with "dialplan show 
> DockPhone".
> 
> 
> [ Context 'DockPhone' created by 'pbx_config' ]
>    '444' =>          1. NoOp(Dock Phone) 
> [pbx_config]
>                      2. Dial(${DOCK_RECIPIENTS},30,kt) [pbx_config]
>                      3. Verbose(2,DIALSTATUS=${DIALSTATUS})
> [pbx_config]
>                      4. GotoIf($["${DIALSTATUS}" = "ANSWER"]?good) 
> [pbx_config]
>                      5. Playback(custom/dock-no-one-available)
> [pbx_config]
>                      6. Wait(2)
> [pbx_config]
>       [good]         7. Hangup() 
> [pbx_config]
>    'h' =>            1. NoOp(hangup extension from dock phone) 
> [pbx_config]
>                      2. Hangup()
> [pbx_config]
>    'i' =>            1. NoOp(invalid extension from dock phone i) 
> [pbx_config]
>                      2. Playback(custom/dock-invalid) [pbx_config]
>                      3. Hangup()
> [pbx_config]
>    Include =>        'emergency-services' 
> [pbx_config]

The 'i' extension is not used when entering a context. You can only enter a
context (with Dial(), Goto(), etc), at an extension that exists. If it
doesn't exist, the context cannot be entered.

The 'i' extension is only used when already in a context, and is mainly for
catching unmatched extensions dialled within a Background or WaitExten.

See http://www.voip-info.org/wiki/view/Asterisk+i+extension for further
details.

There has also been discussion about this in the mailing list over the
years.

Cheers
Tony
--
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list