[Asterisk-Users] i extension
Benjamin on Asterisk Mailing Lists
benjk.on.asterisk.ml at gmail.com
Wed Oct 20 02:31:18 MST 2004
On Wed, 20 Oct 2004 04:15:21 -0500, Eric Wieling <eric at fnords.org> wrote:
> Extensions like i, h, and the rest do not seem to be included with
> "include =>". These extensions seem to have to be in the context they
> are called from.
Even so, they seem to only be called from within an IVR menu where the
channel has been answered already, for example from a
Backgroun(enter-a-number) statement.
If you have this ...
[office]
;
include => local
include => national
include => international
;
exten => _20XX,1,NoOp(call for extension ${EXTEN})
exten => _20XX,2,Dial(SIP/${EXTEN},60,r)
exten => _20XX,3,Hangup
;
exten => i,1,NoOp(invalid number/extension dialled)
exten => i,2,Playback(pbx-invalid)
exten => i,3,Hangup
;
; END of this context
while all your SIP clients have context=office assigned to them in sip.conf, ...
then if somebody dials a number that doesn't match anything in the
office context nor in any included context, it will still not go to
the i extension.
It seems this is only meant for IVR menus. So, the bogons context with
the catch all _. extension seems to be the only way to catch the
misdialled numbers.
rgds
benjk
--
Sunrise Telephone Systems, 9F Shibuya Daikyo Bldg., 1-13-5 Shibuya,
Tokyo, Japan.
NB: Spam filters in place. Messages unrelated to the * mailing lists
may get trashed.
More information about the asterisk-users
mailing list