Jeez, I need to work out the shortcut to send an email which I keep pressing
by accident!!
-----Original Message-----
From: C. Tomlinson [mailto:asterisk_list@burntwires.com]
Sent: 27 February 2005 22:48
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] DISA and a long delay; ideas?
Many thanks, that was the problem.
I didn't paste the context that forwards the call into the DISA context; it
had this in:
...DigitTimeout,5
..ResponseTimeout,10
Doh!
It works great with the mobile number, as I can pattern match 10 digits:
exten => _07XXXXXXXXX,1,Playback(pbx-invalid)
However I need to play with the 01 and 02 numbers as they can either be 10
or 11 digits I think (Uk landline numbers can be either?!)
Think I need to read this
http://www.voip-info.org/wiki-Asterisk+config+extensions.conf+sorting
And work out the best way to proceed...
If I match 10 digits it immediately dials, even if I want 11. I don't really
want a delay, even if I set timeout down to 5 or something!
Cheers
C
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Greg Hill
Sent: 27 February 2005 21:23
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] DISA and a long delay; ideas?
On Sun, 27 Feb 2005, C. Tomlinson wrote:
> I have just setup a DISA setup whereby people can dial in, authenticate,
are> given a dialtone and can then call out.
>
> Everything works however there is a 10 second delay after the user enters
> the number and presses #, until the system does anything.
>
> Here is the relevant section from my extensions.conf:
>
> [dialtone]
> exten => s,1,Authenticate(1234)
> exten => s,2,DISA(no-password|dialtone_outgoing)
>
> [dialtone_outgoing]
> exten => _01.,1,Dial(${OUTGOING}/44${EXTEN:1},30,L(60000:30000:10000))
> exten => _07.,1,Playback(pbx-invalid)
<snip>> HOWEVER there is a 10 second delay between the dialing (followed by #) and
> the system doing anything.
My first guess would be digit timeouts. Your patterns are _01. and _07..
These don't give asterisk any hints about how many digits to expect, so
its only choice is to wait for the maximum digit timeout period to be sure
that it doesn't make a decision early before you've entered all your
digits.
The "best" thing (in my view) would be to completely specify the digit
patterns you want users to be able to use. This gives you the opportunity
to control which numbers may be called and which may not, and it also
gives asterisk hints about what kinds of digit patterns it should expect.
These hints allow it to make faster decisions about whether a digit
pattern is complete and/or valid. An alternative would be to use the
DigitTimeout application to set a lower timeout period.
Greg
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users