RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Tzafrir Cohen [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 10:18 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan On Tue, Dec 19, 2006 at 05:19:57PM

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Andreas Sikkema
[snip] [coo1_CallStart] include = coo1_OnNet include = syst_OnNet include = syst_OffNet Instead of including your system-wide logic for offnet calling, introduce a per-company offnet and include that instead: [coo1_CallStart] include = coo1_OnNet include =

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Andreas Sikkema [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 9:08 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Match a Numer - then continue with dialplan [snip] [coo1_CallStart]

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Andreas Sikkema
Bzzt. In order to call SetVar, I have to match the extension dialled. When that happens, there is NO WAY to continue searching the dialplan after that point for another extension to match. You can't use a generic extension and search a database table for $EXTEN - callerid relation and

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Peter Bowyer
On 20/12/06, Douglas Garstang [EMAIL PROTECTED] wrote: Bzzt. In order to call SetVar, I have to match the extension dialled. When that happens, there is NO WAY to continue searching the dialplan after that point for another extension to match. Can you not use either Goto or the Local

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Andreas Sikkema [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 9:42 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Match a Numer - then continue with dialplan Bzzt. In order to call SetVar, I

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Eric \ManxPower\ Wieling
Douglas Garstang wrote: Anyone know if there's a way to match a dialplan extension, execute some code, say set a variable, and then continue with the dialplan? I want to set a variable when the dialplan flows beyond a certain context. This would be a great feature. Match dialed digits of

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Peter Bowyer [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 9:44 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan On 20/12/06, Douglas Garstang [EMAIL

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Eric \ManxPower\ Wieling
Douglas Garstang wrote: -Original Message- From: David Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 3:01 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan On 12/19/06, Douglas

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Eric ManxPower Wieling [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 10:17 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan Douglas Garstang wrote:

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Douglas Garstang Sent: Wednesday, December 20, 2006 10:54 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [asterisk-users] Match a Numer - then continue with dialplan -Original Message- From: Eric ManxPower

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Douglas Garstang
-Original Message- From: Eric ManxPower Wieling [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 10:19 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan Douglas Garstang wrote:

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-20 Thread Andreas Sikkema
If you have no statuc stuff in your dialplan, how do you use the 'include =' statement? We don't have users... we have companies. It's a hosted IPT service... and to make the problem even more insane, each company has multiple levels of organisational structure. Hardly, you're not required to

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread David Thomas
On 12/19/06, Douglas Garstang [EMAIL PROTECTED] wrote: Anyone know if there's a way to match a dialplan extension, execute some code, say set a variable, and then continue with the dialplan? I want to set a variable when the dialplan flows beyond a certain context. This would be a great

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Douglas Garstang
I just know someone is going to ask 'why would you ever want to do that?'. Here's my answer. We have two companies, each with a dialplan similar to what's below. In the event that the number being dialled does not match any number within our OWN company, we want to set the caller id to be a

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Douglas Garstang
-Original Message- From: David Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 3:01 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Match a Numer - then continue with dialplan On 12/19/06, Douglas Garstang [EMAIL

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Watkins, Bradley
Please correct me if I'm misunderstanding your requirements, but see below (inline) for what I would do: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Garstang Sent: Tuesday, December 19, 2006 5:04 PM To: Asterisk Users Mailing List -

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Douglas Garstang
-Original Message- From: Watkins, Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 4:16 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Match a Numer - then continue with dialplan Please correct me if I'm

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Leo Ann Boon
Douglas Garstang wrote: I just know someone is going to ask 'why would you ever want to do that?'. Here's my answer. We have two companies, each with a dialplan similar to what's below. In the event that the number being dialled does not match any number within our OWN company, we want to set

RE: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Douglas Garstang
Leo, sorry I completely don't follow you. I don't see how the registry (astdb) can help me here. -Original Message- From: Leo Ann Boon [mailto:[EMAIL PROTECTED] Sent: Tue 12/19/2006 6:15 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Cc: Subject:

Re: [asterisk-users] Match a Numer - then continue with dialplan

2006-12-19 Thread Tzafrir Cohen
On Tue, Dec 19, 2006 at 05:19:57PM -0700, Douglas Garstang wrote: -Original Message- From: Watkins, Bradley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 4:16 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [asterisk-users] Match a Numer -