Re: [asterisk-users] Dialplan "or" matching

2006-08-23 Thread Kevin Smith
Glad I could help. I agree, these mailing lists are a life saver. I personally have only been using Asterisk for about 5 months now, in fact I have never even delt with any PBX's before (complete newbie) but everyone here is very helpful and I am picking up a lot. Kevin David Cook wrote: Tha

Re: [asterisk-users] Dialplan "or" matching

2006-08-22 Thread David Cook
Thanks Kevin! That's what is great about these forums. I never thought of using gotoif() inside ... one of those "Doh!" moments. I included your concept in my standard [dial-ld] context with ${EXTEN}:1:3="800", etc. rather than by 2's, (so it doesn't overlap with 8XX area codes) and select my

Re: [asterisk-users] Dialplan "or" matching

2006-08-22 Thread Kevin Smith
Hey David, Yes, it can, you just have to play around with the logic and what you are comparing and when you can do the comparison. Try something like this: exten => _18XXNXX,1, NoOP() exten => _18XXNXX,n,gotoif("${EXTEN}:2:2" = "00" | "${EXTEN}:2:2" = "66" | "${EXTEN}:2:2" = "77" | "$

RE: [asterisk-users] Dialplan "or" matching

2006-08-18 Thread Rushowr
Asterisk Users Mailing List - Non-Commercial Discussion >Subject: Re: [asterisk-users] Dialplan "or" matching > >On 8/18/06, David Cook <[EMAIL PROTECTED]> wrote: >> Maybe I'm daft, but can asterisk to 'or' logic in dialplan matches >> sort of li

Re: [asterisk-users] Dialplan "or" matching

2006-08-18 Thread William Moore
On 8/18/06, David Cook <[EMAIL PROTECTED]> wrote: Maybe I'm daft, but can asterisk to 'or' logic in dialplan matches sort of like the SPA's can? Tollfree numbers for example. I can have a line for each combination: exten => _1800NXX, Dial, exten => _1866NXX, Dial, ..