[asterisk-users] Calls to sip extensions not defined
R. B.
ragb at mail.com
Sat Mar 22 12:26:51 CDT 2008
Thanks Steve, your solution works but I am looking for is something more
general. The example I posted is a simplified one and on the real one I
am using extensions on the 5XXX scenario so I can have 5000 to 5999
range. You answer for just 10 extension is great but for a 1000 and when
not all extensions on the 5XXX are set up then it is not optimal to
define each extension manually or add exceptions manually and I was
looking to see if there a command or state that I could use like
DIALSTATUS, etc to see if the dialled extension doesn't exist and then
jump to the invalid prompt.
Regards
Richard
----- Original Message -----
From: "Steve Edwards"
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
Subject: Re: [asterisk-users] Calls to sip extensions not defined
Date: Fri, 21 Mar 2008 15:12:43 -0700 (PDT)
On Fri, 21 Mar 2008, Ricardo B. wrote:
> On my example I have sip extensions 10, 11, 12, and 13
> on sip.conf. On a basic extension.conf I set up a pattern starting
with
> "1" and a second digit should dial the sip extension entered by the
user
> and if the user don't pick up or is unavailable the call goes to
the
> user voicemail and then hangup. This basic setup can be seen next:
>
> [default]
> exten => _1X,1,Dial(SIP/${EXTEN},10)
> exten => _1X,2,VoiceMail(${EXTEN}@default,u)
> exten => _1X,3,HangUp()
>
> Now, what happens if the user dials 15? Then the pattern is applied
and
> the asterisk tries to dial that sip extension that doesn't exist,
the
> next step that is the voicemail also fails as 15 is not defined on
> voicemail.conf and finally reaches the last step where it hang ups.
>
> What I am looking for is to play Playback(pbx-invalid) if a user
enters a
> sip extension not created.
While I didn't take the time to test it, the following should be
close:
[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
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
_______________________________________________
-- 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
--
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080322/834309b7/attachment.htm
More information about the asterisk-users
mailing list