exten => i is for IVRs.
You would need a wildcard catchall extension like the one below.
Unfortunately you are doing the classic newbie mistake of thinking you
can have a simple dialplan by making the SIP user/account ID be the same
as the extension. Eventually you will realize this is a bad idea.
If you think you have to use wildcards (you don't) then you would want
to check the value of DIALSTATUS or HANGUPCAUSE after the Dial, before
the Voicemail and handle the exception using a Goto.
[default]
exten = _1[1-3],1, dial(sip/${EXTEN},10)
exten = _1[1-3],n, voicemail([EMAIL PROTECTED],u)
exten = _1[1-3],n, hangup
exten = _XXX,1, playback(pbx-invalid)
exten = _XXX,n, hangup
Steve Edwards wrote:
> On Sat, 22 Mar 2008, R. B. wrote:
>
>> [default]
>> exten = _1[1-3],1, dial(sip/${EXTEN},10)
>> exten = _1[1-3],n, voicemail([EMAIL PROTECTED],u)
>> exten = _1[1-3],n, hangup
>> exten = i,1, playback(pbx-invalid)
>> exten = i,n, hangup
--
Consulting for Asterisk, Polycom, Sangoma, Digium, Cisco, LAN, WAN, QoS,
T-1, PRI, Frame Relay, Linux, and network design. Based near
Birmingham, AL. Now accepting clients worldwide.
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users