Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-30 Thread Leif Madsen
Andrew Latham wrote: Are you guys talking about the Asterisk Cookbook Because that could be released in the next 20 years at this point... The Asterisk Cookbook probably won't ever be released unless someone else wants to step up and start it. We (as in the authors of Asterisk: TFoT) had

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Ishfaq Malik
Philip A. Prindeville wrote: Here's a segment of my dialplan, I'm working on the freenum/ISN functionality: same = n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,freenum.org)}) same = n,GotoIf($[${isnresult} != ]?:fn-CONGESTION,1) ; set up our outgoing call state same =

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Jim Dickenson
I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean the letter n in a pattern it has a special meaning! -- Jim Dickenson mailto:dicken...@cfmc.com CfMC http://www.cfmc.com/ On Apr 29, 2010, at 1:33 AM, Ishfaq Malik wrote: Philip

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Leif Madsen
Jim Dickenson wrote: I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean the letter n in a pattern it has a special meaning! Right! Be very careful about what you're matching! When it comes to matching things like 'N', 'X', 'Z',

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Danny Nicholas
, 2010 8:39 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Issue with (pattern) matching extension Jim Dickenson wrote: I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean the letter n

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Philip Prindeville
On 4/29/10 4:22 AM, Jim Dickenson wrote: I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean the letter n in a pattern it has a special meaning! That's capital N, isn't it? Also, the prefix _stdexten-. seems to

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Danny Nicholas
...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Philip Prindeville Sent: Thursday, April 29, 2010 11:47 AM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Issue with (pattern) matching extension On 4/29/10 4:22 AM, Jim Dickenson wrote: I banged my head

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Tilghman Lesher
On Thursday 29 April 2010 11:46:39 Philip Prindeville wrote: On 4/29/10 4:22 AM, Jim Dickenson wrote: I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean the letter n in a pattern it has a special meaning! That's capital N,

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Philip A. Prindeville
On 04/29/2010 12:09 PM, Tilghman Lesher wrote: On Thursday 29 April 2010 11:46:39 Philip Prindeville wrote: On 4/29/10 4:22 AM, Jim Dickenson wrote: I banged my head with a like problem a few days ago. exten = _fn-.,1,NoOp(ISN: ${DIALSTATUS}) n does not mean

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Tilghman Lesher
On Thursday 29 April 2010 13:11:17 Philip A. Prindeville wrote: Doesn't quite make it 'deterministic' if you have to test it to see what it's going to do. The code is deterministic. The human who wrote the example is not. Are you proposing a genetic modification to make humans deterministic?

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Danny Nicholas
PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Issue with (pattern) matching extension On Thursday 29 April 2010 13:11:17 Philip A. Prindeville wrote: Doesn't quite make it 'deterministic' if you have to test it to see what it's going to do. The code

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Philip Prindeville
On 4/29/10 1:55 PM, Tilghman Lesher wrote: On Thursday 29 April 2010 13:11:17 Philip A. Prindeville wrote: Doesn't quite make it 'deterministic' if you have to test it to see what it's going to do. The code is deterministic. The human who wrote the example is not. Are you

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Leif Madsen
Danny Nicholas wrote: Good snippet, Leif. It's easier to read 100 threads on this forum than the 100 pages of the infamous Asterisk Book PDF. Infamous? Ouch :) Leif. -- _ -- Bandwidth and Colocation Provided by

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Philip A. Prindeville
On 04/29/2010 03:56 PM, Leif Madsen wrote: Danny Nicholas wrote: Good snippet, Leif. It's easier to read 100 threads on this forum than the 100 pages of the infamous Asterisk Book PDF. Infamous? Ouch :) Leif. Danny: Well, there is an effort to improve the documentation. See

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Danny Nicholas
@lists.digium.com Subject: Re: [asterisk-users] Issue with (pattern) matching extension On 04/29/2010 03:56 PM, Leif Madsen wrote: Danny Nicholas wrote: Good snippet, Leif. It's easier to read 100 threads on this forum than the 100 pages of the infamous Asterisk Book PDF. Infamous? Ouch

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Steve Howes
On 29 Apr 2010, at 22:56, Leif Madsen wrote: Danny Nicholas wrote: Good snippet, Leif. It's easier to read 100 threads on this forum than the 100 pages of the infamous Asterisk Book PDF. Infamous? Ouch :) He's insulting our holy book! Stone him! ;) S --

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Philip A. Prindeville
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Philip A. Prindeville Sent: Thursday, April 29, 2010 4:59 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Issue with (pattern) matching extension On 04/29/2010 03:56 PM, Leif Madsen wrote: Danny Nicholas wrote

Re: [asterisk-users] Issue with (pattern) matching extension

2010-04-29 Thread Andrew Latham
Are you guys talking about the Asterisk Cookbook Because that could be released in the next 20 years at this point... ~ Andrew lathama Latham lath...@gmail.com * Learn more about OSS http://en.wikipedia.org/wiki/Open-source_software * Learn more about Linux

[asterisk-users] Issue with (pattern) matching extension

2010-04-28 Thread Philip A. Prindeville
Here's a segment of my dialplan, I'm working on the freenum/ISN functionality: same = n,Set(isnresult=${ENUMLOOKUP(${EXTEN},sip,,1,freenum.org)}) same = n,GotoIf($[${isnresult} != ]?:fn-CONGESTION,1) ; set up our outgoing call state same = n,Set(SIPFROMUSER=${CALLERID(num)}) same =