[asterisk-users] Calls to sip extensions not defined
Eric Wieling
eric at fnords.org
Sun Mar 23 07:50:21 CDT 2008
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(${EXTEN}@default,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(${EXTEN}@default,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.
More information about the asterisk-users
mailing list