[Asterisk-Users] Pattern Matching
Mojo Jojo
mylist at lightwavetech.com
Sun May 1 09:21:00 MST 2005
I do this already with outgoing calls and it works fine as long as I am only using the Dial command.
Where I am running into trouble is when doing something like I have created below. I know the syntax is not 100% correct, just using it as a quicky example.
What happens here is if the DNIS matches one of the first two exact numbers, it plays the background, sets the timeouts then goes on and plays the sound in the include and hangs up.
What I want it to do is execute the stuff in the include ONLY if none of the exact matches ocurr. I would think this is the way it should work but I can't seem to make it happen.
[incoming]
Exten => 2145550001,1,Answer
Exten => 2145550001,2,Wait(1)
Exten => 2145550001,3,Background(MyGreeting)
Exten => 2145550001,4,Timeout(30)
Exten => 2145550001,5,DigitTimeout(3)
Exten => 2145550002,1,Answer
Exten => 2145550002,2,Wait(1)
Exten => 2145550002,3,Background(MyGreeting)
Exten => 2145550002,4,Timeout(30)
Exten => 2145550002,5,DigitTimeout(3)
Include => Pattern-Include
[Pattern-Include]
Exten => _8XXNXXXXXX,1,Answer
Exten => _8XXNXXXXXX,2,Wait(1)
Exten => _8XXNXXXXXX,3,Playback(NumNotConfigured)
Exten => _8XXNXXXXXX,4,Hangup
Private Label Wholesale Internet Access!
http://www.YourOwnISP.com
----- Original Message -----
From: Tim Connolly
To: 'Asterisk Users Mailing List - Non-Commercial Discussion' ; mike at shelcomm.com
Sent: Saturday, April 30, 2005 4:21 PM
Subject: RE: [Asterisk-Users] Pattern Matching
Like this:
[dids]
Exten => 2145550001,1,dial(SIP/6001)
Exten => 2145550002,1,dial(SIP/6002)
Exten => 2145550003,1,dial(SIP/6003)
Include => default-did
[default-did]
Exten => _.,1,dial(SIP/6000)
Seems pretty simple. I used this method of least/highest cost routing to choose my LD carrier. Should work the same though.
http://www.voip-info.org/tiki-index.php?page=Asterisk%20least%20cost%20routing%20using%20broadvoice
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mojo Jojo
Sent: Saturday, April 30, 2005 3:08 PM
To: mike at shelcomm.com; Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Pattern Matching
Not sure what you mean exactly... Can you give me a hint?
Private Label Wholesale Internet Access!
http://www.YourOwnISP.com
----- Original Message -----
From: "Michael D Schelin" <mike at shelcomm.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Friday, April 29, 2005 10:10 PM
Subject: Re: [Asterisk-Users] Pattern Matching
> Hey Mojo, I'm thinking you might try using priorty 's to set some kind
> routing. just a thought..
>
>
>
> Mojo Jojo wrote:
>
>> We recently had our PRI installed, we currently have 100 toll-free's
>> pointing to it.
>>
>> I have almost everything working great but..
>>
>> I have setup the first few numbers we want to use coming in from the PRI
>> and they work great, but..
>>
>> What I want to do is setup an extension with pattern matching to answer
>> for any numbers called that are pointed to our system and PRI but not yet
>> in use/configured.
>>
>> I have been successful at setting up pattern matching as a catch all for
>> 98 or so numbers not in use yet and I have been successful setting up the
>> 2 numbers I want to make use of for now.
>>
>> Problem is, I can't use both at the same time!
>>
>> If I turn on the pattern matching then my greeting plays for the
>> configured number, then the message plays for the invalid number
>> (basically executing the extension with the pattern matching).
>>
>> I have read about sorting with pattern matching by using an include, I
>> did this but it's not really helping.
>>
>> I have set a response timeout after the first extension plays it's
>> greeting, I would think it should wait until it times out but it doesn't,
>> it just immediately moves to the pattern matched extension.
>>
>> I must be missing something big here..
>>
>> Any help is appreciated..
>>
>>
>> --
>> Private Label Wholesale Internet Access!
>> http://www.YourOwnISP.com
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at 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
>>
>>
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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
------------------------------------------------------------------------------
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050501/2f8cad66/attachment.htm
More information about the asterisk-users
mailing list